Home
last modified time | relevance | path

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

123

/f-stack/app/redis-5.0.5/deps/lua/src/
H A Dlopcodes.h82 ((cast(Instruction, o)<<POS_OP)&MASK1(SIZE_OP,POS_OP))))
86 ((cast(Instruction, u)<<POS_A)&MASK1(SIZE_A,POS_A))))
90 ((cast(Instruction, b)<<POS_B)&MASK1(SIZE_B,POS_B))))
94 ((cast(Instruction, b)<<POS_C)&MASK1(SIZE_C,POS_C))))
98 ((cast(Instruction, b)<<POS_Bx)&MASK1(SIZE_Bx,POS_Bx))))
105 | (cast(Instruction, a)<<POS_A) \
106 | (cast(Instruction, b)<<POS_B) \
107 | (cast(Instruction, c)<<POS_C))
110 | (cast(Instruction, a)<<POS_A) \
111 | (cast(Instruction, bc)<<POS_Bx))
[all …]
H A Dllimits.h74 #ifndef cast
75 #define cast(t, exp) ((t)(exp)) macro
78 #define cast_byte(i) cast(lu_byte, (i))
79 #define cast_num(i) cast(lua_Number, (i))
80 #define cast_int(i) cast(int, (i))
H A Dlmem.h20 ((cast(size_t, (n)+1) <= MAX_SIZET/(e)) ? /* +1 to avoid warnings */ \
29 #define luaM_new(L,t) cast(t *, luaM_malloc(L, sizeof(t)))
31 cast(t *, luaM_reallocv(L, NULL, 0, n, sizeof(t)))
35 ((v)=cast(t *, luaM_growaux_(L,v,&(size),sizeof(t),limit,e)))
38 ((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 Dlstring.c56 ts = cast(TString *, luaM_malloc(L, (l+1)*sizeof(char)+sizeof(TString))); in newlstr()
69 if (tb->nuse > cast(lu_int32, tb->size) && tb->size <= MAX_INT/2) in newlstr()
77 unsigned int h = cast(unsigned int, l); /* seed */ in luaS_newlstr()
81 h = h ^ ((h<<5)+(h>>2)+cast(unsigned char, str[l1-1])); in luaS_newlstr()
100 u = cast(Udata *, luaM_malloc(L, s + sizeof(Udata))); in luaS_newudata()
H A Dlobject.h130 i_o->value.gc=cast(GCObject *, (x)); i_o->tt=LUA_TSTRING; \
135 i_o->value.gc=cast(GCObject *, (x)); i_o->tt=LUA_TUSERDATA; \
140 i_o->value.gc=cast(GCObject *, (x)); i_o->tt=LUA_TTHREAD; \
145 i_o->value.gc=cast(GCObject *, (x)); i_o->tt=LUA_TFUNCTION; \
150 i_o->value.gc=cast(GCObject *, (x)); i_o->tt=LUA_TTABLE; \
155 i_o->value.gc=cast(GCObject *, (x)); i_o->tt=LUA_TPROTO; \
210 #define getstr(ts) cast(const char *, (ts) + 1)
356 (check_exp((size&(size-1))==0, (cast(int, (s) & ((size)-1)))))
H A Dlzio.h20 #define char2int(c) cast(int, cast(unsigned char, (c)))
H A Dltable.c275 t->node = cast(Node *, dummynode); /* use common `dummynode' */ in setnodevector()
367 t->node = cast(Node *, dummynode); in luaH_new()
437 if (cast(unsigned int, key-1) < cast(unsigned int, t->sizearray)) in luaH_getnum()
498 return cast(TValue *, p); in luaH_set()
511 return cast(TValue *, p); in luaH_setnum()
523 return cast(TValue *, p); in luaH_setstr()
539 if (j > cast(unsigned int, MAX_INT)) { /* overflow? */ in unbound_search()
/f-stack/freebsd/contrib/openzfs/module/
H A DMakefile.bsd324 CFLAGS.lapi.c= -Wno-cast-qual
328 CFLAGS.lvm.c= -Wno-cast-qual
333 CFLAGS.abd.c= -Wno-cast-qual
342 CFLAGS.ddt.c= -Wno-cast-qual
343 CFLAGS.dmu.c= -Wno-cast-qual
348 CFLAGS.fm.c= -Wno-cast-qual
349 CFLAGS.lz4.c= -Wno-cast-qual
350 CFLAGS.spa.c= -Wno-cast-qual
362 CFLAGS.zcp.c= -Wno-cast-qual
365 CFLAGS.zil.c= -Wno-cast-qual
[all …]
/f-stack/freebsd/contrib/openzfs/module/lua/
H A Dlopcodes.h92 ((cast(Instruction, o)<<POS_OP)&MASK1(SIZE_OP,POS_OP))))
117 #define CREATE_ABC(o,a,b,c) ((cast(Instruction, o)<<POS_OP) \
118 | (cast(Instruction, a)<<POS_A) \
119 | (cast(Instruction, b)<<POS_B) \
120 | (cast(Instruction, c)<<POS_C))
122 #define CREATE_ABx(o,a,bc) ((cast(Instruction, o)<<POS_OP) \
123 | (cast(Instruction, a)<<POS_A) \
124 | (cast(Instruction, bc)<<POS_Bx))
126 #define CREATE_Ax(o,a) ((cast(Instruction, o)<<POS_OP) \
127 | (cast(Instruction, a)<<POS_Ax))
[all …]
H A Dlmem.h24 (cast(void, \
25 (cast(size_t, (n)+1) > MAX_SIZET/(e)) ? (luaM_toobig(L), 0) : 0), \
33 #define luaM_new(L,t) cast(t *, luaM_malloc(L, sizeof(t)))
35 cast(t *, luaM_reallocv(L, NULL, 0, n, sizeof(t)))
41 ((v)=cast(t *, luaM_growaux_(L,v,&(size),sizeof(t),limit,e)))
44 ((v)=cast(t *, luaM_reallocv(L, v, oldn, n, sizeof(t))))
H A Dlfunc.h15 #define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \
16 cast(int, sizeof(TValue)*((n)-1)))
18 #define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \
19 cast(int, sizeof(TValue *)*((n)-1)))
H A Dllimits.h90 #define cast(t, exp) ((t)(exp)) macro
92 #define cast_byte(i) cast(lu_byte, (i))
93 #define cast_num(i) cast(lua_Number, (i))
94 #define cast_int(i) cast(int, (i))
95 #define cast_uchar(i) cast(unsigned char, (i))
H A Dlobject.h166 #define deadvalue(o) check_exp(ttisdeadkey(o), cast(void *, val_(o).gc))
206 val_(io).gc=cast(GCObject *, x_); settt_(io, ctb(x_->tsv.tt)); \
211 val_(io).gc=cast(GCObject *, (x)); settt_(io, ctb(LUA_TUSERDATA)); \
216 val_(io).gc=cast(GCObject *, (x)); settt_(io, ctb(LUA_TTHREAD)); \
221 val_(io).gc=cast(GCObject *, (x)); settt_(io, ctb(LUA_TLCL)); \
226 val_(io).gc=cast(GCObject *, (x)); settt_(io, ctb(LUA_TCCL)); \
231 val_(io).gc=cast(GCObject *, (x)); settt_(io, ctb(LUA_TTABLE)); \
420 #define getstr(ts) cast(const char *, (ts) + 1)
576 (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()
450 if (cast(unsigned int, key-1) < cast(unsigned int, t->sizearray)) in luaH_getint()
516 return cast(TValue *, p); in luaH_set()
525 cell = cast(TValue *, p); in luaH_setint()
542 if (j > cast(unsigned int, MAX_INT)) { /* overflow? */ in unbound_search()
H A Dlobject.c117 *endptr = cast(char *, s); /* nothing is valid yet */ in lua_strx2number()
131 *endptr = cast(char *, s); /* valid up to here */ in lua_strx2number()
144 *endptr = cast(char *, s); /* valid up to here */ in lua_strx2number()
190 buff = cast(char, va_arg(argp, int)); in luaO_pushvfstring()
H A Dlstate.c48 #define luai_makeseed() cast(unsigned int, gethrtime())
74 #define fromstate(L) (cast(LX *, cast(lu_byte *, (L)) - offsetof(LX, l)))
83 { 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.h23 (gkey(cast(Node *, cast(char *, (v)) - offsetof(Node, i_val))))
/f-stack/dpdk/drivers/common/iavf/
H A Dmeson.build6 if cc.has_argument('-Wno-pointer-to-int-cast')
7 cflags += '-Wno-pointer-to-int-cast'
/f-stack/dpdk/drivers/common/dpaax/
H A Dmeson.build14 if cc.has_argument('-Wno-cast-qual')
15 cflags += '-Wno-cast-qual'
/f-stack/dpdk/drivers/raw/octeontx2_dma/
H A Dmeson.build11 extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast']
/f-stack/dpdk/drivers/bus/dpaa/
H A Dmeson.build22 if cc.has_argument('-Wno-cast-qual')
23 cflags += '-Wno-cast-qual'
/f-stack/dpdk/drivers/net/hinic/base/
H A Dmeson.build21 extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast']
/f-stack/tools/compat/include/sys/
H A Dmalloc.h156 #define MALLOC(space, cast, size, type, flags) \ argument
157 ((space) = (cast)malloc((u_long)(size), (type), (flags)))
/f-stack/dpdk/drivers/net/bnx2x/
H A Decore_sp.h252 #define ECORE_LIST_FIRST_ENTRY(_list, cast, _link) \ argument
253 (cast *)((_list)->head)
256 #define ECORE_LIST_NEXT(_elem, _link, cast) \ argument
257 (cast *)((&((_elem)->_link))->next)
334 #define ECORE_LIST_FOR_EACH_ENTRY(pos, _list, _link, cast) \ argument
335 for (pos = ECORE_LIST_FIRST_ENTRY(_list, cast, _link); \
337 pos = ECORE_LIST_NEXT(pos, _link, cast))
340 #define ECORE_LIST_FOR_EACH_ENTRY_SAFE(pos, n, _list, _link, cast) \ argument
342 n = (pos) ? ECORE_LIST_NEXT(pos, _link, cast) : NULL; \
344 pos = (cast *)n, \
[all …]

123