Home
last modified time | relevance | path

Searched refs:cast (Results 1 – 25 of 54) sorted by relevance

123

/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dlopcodes.h91 ((cast(Instruction, o)<<POS_OP)&MASK1(SIZE_OP,POS_OP))))
116 #define CREATE_ABC(o,a,b,c) ((cast(Instruction, o)<<POS_OP) \
117 | (cast(Instruction, a)<<POS_A) \
118 | (cast(Instruction, b)<<POS_B) \
119 | (cast(Instruction, c)<<POS_C))
121 #define CREATE_ABx(o,a,bc) ((cast(Instruction, o)<<POS_OP) \
122 | (cast(Instruction, a)<<POS_A) \
123 | (cast(Instruction, bc)<<POS_Bx))
125 #define CREATE_Ax(o,a) ((cast(Instruction, o)<<POS_OP) \
126 | (cast(Instruction, a)<<POS_Ax))
[all …]
H A Dlmem.h25 (cast(void, \
26 (cast(size_t, (n)+1) > MAX_SIZET/(e)) ? (luaM_toobig(L), 0) : 0), \
34 #define luaM_new(L,t) cast(t *, luaM_malloc(L, sizeof(t)))
36 cast(t *, luaM_reallocv(L, NULL, 0, n, sizeof(t)))
42 ((v)=cast(t *, luaM_growaux_(L,v,&(size),sizeof(t),limit,e)))
45 ((v)=cast(t *, luaM_reallocv(L, v, oldn, n, sizeof(t))))
H A Dlfunc.h14 #define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \
15 cast(int, sizeof(TValue)*((n)-1)))
17 #define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \
18 cast(int, sizeof(TValue *)*((n)-1)))
H A Dllimits.h91 #define cast(t, exp) ((t)(exp)) macro
93 #define cast_byte(i) cast(lu_byte, (i))
94 #define cast_num(i) cast(lua_Number, (i))
95 #define cast_int(i) cast(int, (i))
96 #define cast_uchar(i) cast(unsigned char, (i))
H A Dlobject.h167 #define deadvalue(o) check_exp(ttisdeadkey(o), cast(void *, val_(o).gc))
207 val_(io).gc=cast(GCObject *, x_); settt_(io, ctb(x_->tsv.tt)); \
212 val_(io).gc=cast(GCObject *, (x)); settt_(io, ctb(LUA_TUSERDATA)); \
217 val_(io).gc=cast(GCObject *, (x)); settt_(io, ctb(LUA_TTHREAD)); \
222 val_(io).gc=cast(GCObject *, (x)); settt_(io, ctb(LUA_TLCL)); \
227 val_(io).gc=cast(GCObject *, (x)); settt_(io, ctb(LUA_TCCL)); \
232 val_(io).gc=cast(GCObject *, (x)); settt_(io, ctb(LUA_TTABLE)); \
421 #define getstr(ts) cast(const char *, (ts) + 1)
577 (check_exp((size&(size-1))==0, (cast(int, (s) & ((size)-1)))))
H A Dltable.c84 if (cast(unsigned int, i) == 0u - i) /* use unsigned to avoid overflows */ in hashnum()
282 t->node = cast(Node *, dummynode); /* use common `dummynode' */ in setnodevector()
333 luaM_freearray(L, nold, cast(size_t, twoto(oldhsize))); /* free old array */ in luaH_resize()
381 luaM_freearray(L, t->node, cast(size_t, sizenode(t))); in luaH_free()
448 if (cast(unsigned int, key-1) < cast(unsigned int, t->sizearray)) in luaH_getint()
514 return cast(TValue *, p); in luaH_set()
523 cell = cast(TValue *, p); in luaH_setint()
540 if (j > cast(unsigned int, MAX_INT)) { /* overflow? */ in unbound_search()
H A Dlobject.c118 *endptr = cast(char *, s); /* nothing is valid yet */ in lua_strx2number()
132 *endptr = cast(char *, s); /* valid up to here */ in lua_strx2number()
145 *endptr = cast(char *, s); /* valid up to here */ in lua_strx2number()
191 buff = cast(char, va_arg(argp, int)); in luaO_pushvfstring()
H A Dlstate.c49 #define luai_makeseed() cast(unsigned int, gethrtime())
75 #define fromstate(L) (cast(LX *, cast(lu_byte *, (L)) - offsetof(LX, l)))
84 { size_t t = cast(size_t, e); \
268 LG *l = cast(LG *, (*f)(ud, NULL, LUA_TTHREAD, sizeof(LG))); in lua_newstate()
H A Dltable.h22 (gkey(cast(Node *, cast(char *, (v)) - offsetof(Node, i_val))))
H A Dlgc.h76 #define resetbits(x,m) ((x) &= cast(lu_byte, ~(m)))
119 #define luaC_white(g) cast(lu_byte, (g)->currentwhite & WHITEBITS)
H A Dldebug.h14 #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1)
H A Dlstring.c52 unsigned int h = seed ^ cast(unsigned int, l); in luaS_hash()
121 if (tb->nuse >= cast(lu_int32, tb->size) && tb->size <= MAX_INT/2) in newshrstr()
H A Dlapi.c37 #define NONVALIDVALUE cast(TValue *, luaO_nilobject)
309 luaV_arith(L, o1, o1, o2, cast(TMS, op - LUA_OPADD + TM_ADD)); in lua_arith()
448 case LUA_TLCF: return cast(void *, cast(size_t, fvalue(o))); in lua_topointer()
665 setpvalue(&k, cast(void *, p)); in lua_rawgetp()
803 setpvalue(&k, cast(void *, p)); in lua_rawsetp()
921 struct CallS *c = cast(struct CallS *, ud); in f_call()
1054 lu_mem debt = cast(lu_mem, data) * 1024 - GCSTEPSIZE; in lua_gc()
H A Dllex.h34 #define NUM_RESERVED (cast(int, TK_WHILE-FIRST_RESERVED+1))
H A Dlgc.c94 #define gnodelast(h) gnode(h, cast(size_t, sizenode(h)))
215 char *raw = cast(char *, luaM_newobject(L, novariant(tt), sz)); in luaC_newobj()
453 sizeof(Node) * cast(size_t, sizenode(h)); in traversetable()
782 if (g->strt.nuse < cast(lu_int32, hs)) /* using less than that half? */ in checkSizes()
919 debt = -cast(l_mem, threshold - gettotalbytes(g)); in setpause()
1001 l_mem work = -cast(l_mem, g->GCmemtrav); /* start counting work */ in atomic()
/illumos-gate/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/
H A DProbeData.java196 Record r = Record.class.cast(o); in addDataElement()
294 printa = PrintaRecord.class.cast(record); in getLastPrinta()
526 int i1 = Integer.class.cast(v1); in compareUnsigned()
527 int i2 = Integer.class.cast(v2); in compareUnsigned()
530 long i1 = Long.class.cast(v1); in compareUnsigned()
531 long i2 = Long.class.cast(v2); in compareUnsigned()
555 byte[] a1 = byte[].class.cast(o1); in compareRecords()
556 byte[] a2 = byte[].class.cast(o2); in compareRecords()
559 Comparable v1 = Comparable.class.cast(o1); in compareRecords()
576 r1.getClass().cast(r2); in compareRecords()
[all …]
H A DTuple.java277 cmp = ProbeData.compareUnsigned(Comparable.class.cast(o1), in compareObjects()
278 Comparable.class.cast(o2)); in compareObjects()
286 byte[] a1 = byte[].class.cast(o1); in compareObjects()
287 byte[] a2 = byte[].class.cast(o2); in compareObjects()
/illumos-gate/usr/src/cmd/sgs/include/
H A Dsgs.h110 #define CAST_PTRINT(cast, value) ((cast)(uintptr_t)value) argument
112 #define CAST_PTRINT(cast, value) ((cast)value) argument
/illumos-gate/usr/src/tools/smatch/src/
H A Dexpression.c605 struct expression *cast = alloc_expression(p->pos, EXPR_CAST); in type_info_expression() local
606 cast->cast_type = expr->cast_type; in type_info_expression()
608 expr->cast_expression = cast; in type_info_expression()
609 token = initializer(&cast->cast_expression, token); in type_info_expression()
610 token = postfix_expression(token, &expr->cast_expression, cast); in type_info_expression()
715 cast->cast_type = sym; in cast_expression()
723 token = initializer(&cast->cast_expression, token); in cast_expression()
724 return postfix_expression(token, tree, cast); in cast_expression()
726 *tree = cast; in cast_expression()
728 cast->type = EXPR_FORCE_CAST; in cast_expression()
[all …]
H A Dinline.c159 struct expression *cast = expr->cast_expression; in copy_expression() local
162 expr->cast_expression = copy_expression(cast); in copy_expression()
172 struct expression *cast = copy_expression(expr->cast_expression); in copy_expression() local
173 if (cast == expr->cast_expression) in copy_expression()
176 expr->cast_expression = cast; in copy_expression()
/illumos-gate/usr/src/head/
H A Dapptrace.h65 #define ABI_CALL_REAL(lib, sym, cast) \ argument
66 (cast __abi_ ## lib ## _ ## sym ## _sym.a_real)
/illumos-gate/usr/src/uts/common/os/
H A Dprivs.awk370 cast="((const char *)"
381 print pdef[i] cast "\"" privs[i] "\")\n" > pubhfile
389 print sdef[i] cast "\"" sets[i] "\")\n" > pubhfile
/illumos-gate/usr/src/lib/libmd5/common/
H A Dmapfile-vers40 # This file declares interfaces that are cast in stone.
/illumos-gate/usr/src/lib/libaio/common/
H A Dmapfile-vers41 # This file declares interfaces that are cast in stone.
/illumos-gate/usr/src/lib/libc/sparc/sys/
H A Dsyscall.S67 sra %o0, 0, %i0 ! (int) cast

123