Lines Matching refs:CAST
70 #define OFFSET_OOB(n, o, i) ((n) < CAST(uint32_t, (o)) || (i) > ((n) - (o)))
72 (CAST(uint64_t, (p)->hq[0])<<56)| \
73 (CAST(uint64_t, (p)->hq[1])<<48)| \
74 (CAST(uint64_t, (p)->hq[2])<<40)| \
75 (CAST(uint64_t, (p)->hq[3])<<32)| \
76 (CAST(uint64_t, (p)->hq[4])<<24)| \
77 (CAST(uint64_t, (p)->hq[5])<<16)| \
78 (CAST(uint64_t, (p)->hq[6])<<8)| \
79 (CAST(uint64_t, (p)->hq[7])))
81 (CAST(uint64_t, (p)->hq[7])<<56)| \
82 (CAST(uint64_t, (p)->hq[6])<<48)| \
83 (CAST(uint64_t, (p)->hq[5])<<40)| \
84 (CAST(uint64_t, (p)->hq[4])<<32)| \
85 (CAST(uint64_t, (p)->hq[3])<<24)| \
86 (CAST(uint64_t, (p)->hq[2])<<16)| \
87 (CAST(uint64_t, (p)->hq[1])<<8)| \
88 (CAST(uint64_t, (p)->hq[0])))
90 (CAST(uint32_t, (p)->hl[3])<<24)| \
91 (CAST(uint32_t, (p)->hl[2])<<16)| \
92 (CAST(uint32_t, (p)->hl[1])<<8)| \
93 (CAST(uint32_t, (p)->hl[0])))
95 (CAST(uint32_t, (p)->hl[0])<<24)| \
96 (CAST(uint32_t, (p)->hl[1])<<16)| \
97 (CAST(uint32_t, (p)->hl[2])<<8)| \
98 (CAST(uint32_t, (p)->hl[3])))
100 (CAST(uint32_t, (p)->hl[1])<<24)| \
101 (CAST(uint32_t, (p)->hl[0])<<16)| \
102 (CAST(uint32_t, (p)->hl[3])<<8)| \
103 (CAST(uint32_t, (p)->hl[2])))
105 #define BE16(p) ((CAST(uint16_t, (p)->hs[0])<<8)|(CAST(uint16_t, (p)->hs[1])))
106 #define LE16(p) ((CAST(uint16_t, (p)->hs[1])<<8)|(CAST(uint16_t, (p)->hs[0])))
108 CAST(intmax_t, CAST(int##v##_t, p)) : \
109 CAST(intmax_t, CAST(uint##v##_t, p)))
260 switch (mget(ms, m, b, CAST(const unsigned char *, bb.fbuf), in match()
369 switch (mget(ms, m, b, CAST(const unsigned char *, in match()
525 if ((copy = CAST(char *, emalloc(len + 1))) == NULL) in strndup()
540 l = CAST(size_t, ptr - sptr); in varexpand()
604 v = file_signextend(ms, m, CAST(uint64_t, value)); \ in mprint()
611 CAST(utype, v)); \ in mprint()
614 CAST(stype, v)); \ in mprint()
622 CAST(utype, v)) == -1) \ in mprint()
626 CAST(stype, v)) == -1) \ in mprint()
848 o = CAST(int32_t, (ms->offset + sizeof(char))); in moffset()
860 o = CAST(int32_t, (ms->offset + sizeof(short))); in moffset()
867 o = CAST(int32_t, (ms->offset + sizeof(int32_t))); in moffset()
873 o = CAST(int32_t, (ms->offset + sizeof(int64_t))); in moffset()
888 o = CAST(uint32_t, (ms->offset + strlen(p->s))); in moffset()
893 o += CAST(uint32_t, l); in moffset()
902 o = CAST(int32_t, (ms->offset + sizeof(uint32_t))); in moffset()
909 o = CAST(int32_t, (ms->offset + sizeof(uint32_t))); in moffset()
915 o = CAST(int32_t, (ms->offset + sizeof(uint64_t))); in moffset()
921 o = CAST(int32_t, (ms->offset + sizeof(uint64_t))); in moffset()
927 o = CAST(int32_t, (ms->offset + sizeof(float))); in moffset()
933 o = CAST(int32_t, (ms->offset + sizeof(double))); in moffset()
938 o = CAST(int32_t, ms->search.offset); in moffset()
940 o = CAST(int32_t, in moffset()
946 o = CAST(int32_t, ms->search.offset); in moffset()
948 o = CAST(int32_t, (ms->search.offset + m->vallen)); in moffset()
961 if (o == -1 || CAST(size_t, o) > nbytes) { in moffset()
973 o = CAST(int32_t, (ms->offset + 2 * sizeof(uint64_t))); in moffset()
981 if (CAST(size_t, o) > nbytes) { in moffset()
1058 p->fld &= CAST(type, m->num_mask); \
1061 p->fld |= CAST(type, m->num_mask); \
1064 p->fld ^= CAST(type, m->num_mask); \
1067 p->fld += CAST(type, m->num_mask); \
1070 p->fld -= CAST(type, m->num_mask); \
1073 p->fld *= CAST(type, m->num_mask); \
1076 if (CAST(type, m->num_mask) == 0) \
1078 p->fld /= CAST(type, m->num_mask); \
1081 if (CAST(type, m->num_mask) == 0) \
1083 p->fld %= CAST(type, m->num_mask); \
1121 p->fld += CAST(type, m->num_mask); \
1124 p->fld -= CAST(type, m->num_mask); \
1127 p->fld *= CAST(type, m->num_mask); \
1130 if (CAST(type, m->num_mask) == 0) \
1132 p->fld /= CAST(type, m->num_mask); \
1225 p->h = CAST(short, BE16(p)); in mconvert()
1232 p->l = CAST(int32_t, BE32(p)); in mconvert()
1240 p->q = CAST(uint64_t, BE64(p)); in mconvert()
1245 p->h = CAST(short, LE16(p)); in mconvert()
1252 p->l = CAST(int32_t, LE32(p)); in mconvert()
1260 p->q = CAST(uint64_t, LE64(p)); in mconvert()
1267 p->l = CAST(int32_t, ME32(p)); in mconvert()
1340 offset = CAST(uint32_t, nbytes); in mcopy()
1377 ((b = CAST(const char *, in mcopy()
1378 memchr(c = b, '\n', CAST(size_t, (end - b))))) in mcopy()
1379 || (b = CAST(const char *, in mcopy()
1380 memchr(c, '\r', CAST(size_t, (end - c)))))); in mcopy()
1496 return CAST(uint32_t, offset); in do_ops()
1523 if (CAST(size_t, m->offset) > b->elen) in msetoffset()
1526 ms->eoffset = ms->offset = CAST(int32_t, b->elen - m->offset); in msetoffset()
1555 ms->c.li = CAST(struct level_info *, emalloc(len)); in save_cont()
1603 CAST(uint32_t, offset + o), CAST(uint32_t, nbytes), m) == -1) in mget()
1623 const union VALUETYPE *q = CAST(const union VALUETYPE *, in mget()
1719 lhs = cvt_id3(ms, CAST(uint32_t, lhs)); in mget()
1728 lhs = cvt_id3(ms, CAST(uint32_t, lhs)); in mget()
1853 offset += CAST(uint32_t, o); in mget()
2183 v = file_strncmp(m->value.s, p->s, CAST(size_t, m->vallen), in magiccheck()
2190 v = file_strncmp16(m->value.s, p->s, CAST(size_t, m->vallen), in magiccheck()
2210 found = CAST(const char *, php_memnstr(ms->search.s, in magiccheck()
2343 "u == *any* = 1\n", CAST(unsigned long long, v)); in magiccheck()
2352 CAST(unsigned long long, v), in magiccheck()
2353 CAST(unsigned long long, l), matched); in magiccheck()
2361 CAST(unsigned long long, v), in magiccheck()
2362 CAST(unsigned long long, l), matched); in magiccheck()
2371 CAST(unsigned long long, v), in magiccheck()
2372 CAST(unsigned long long, l), matched); in magiccheck()
2375 matched = CAST(int64_t, v) > CAST(int64_t, l); in magiccheck()
2379 CAST(long long, v), in magiccheck()
2380 CAST(long long, l), matched); in magiccheck()
2390 CAST(unsigned long long, v), in magiccheck()
2391 CAST(unsigned long long, l), matched); in magiccheck()
2394 matched = CAST(int64_t, v) < CAST(int64_t, l); in magiccheck()
2398 CAST(long long, v), in magiccheck()
2399 CAST(long long, l), matched); in magiccheck()
2408 "x) = %d\n", CAST(unsigned long long, v), in magiccheck()
2409 CAST(unsigned long long, l), in magiccheck()
2410 CAST(unsigned long long, l), in magiccheck()
2419 "x) = %d\n", CAST(unsigned long long, v), in magiccheck()
2420 CAST(unsigned long long, l), in magiccheck()
2421 CAST(unsigned long long, l), matched); in magiccheck()