Lines Matching refs:uint64_t
202 void setUnsignedBitfield(unsigned char *p, uint64_t offset, uint64_t bits, uint64_t value) { in setUnsignedBitfield()
203 uint64_t byte, bit, byteval, bitval, j; in setUnsignedBitfield()
206 bitval = (value & ((uint64_t)1<<(bits-1-j))) != 0; in setUnsignedBitfield()
217 void setSignedBitfield(unsigned char *p, uint64_t offset, uint64_t bits, int64_t value) { in setSignedBitfield()
218 uint64_t uv = value; /* Casting will add UINT64_MAX + 1 if v is negative. */ in setSignedBitfield()
222 uint64_t getUnsignedBitfield(unsigned char *p, uint64_t offset, uint64_t bits) { in getUnsignedBitfield()
223 uint64_t byte, bit, byteval, bitval, j, value = 0; in getUnsignedBitfield()
236 int64_t getSignedBitfield(unsigned char *p, uint64_t offset, uint64_t bits) { in getSignedBitfield()
238 union {uint64_t u; int64_t i;} conv; in getSignedBitfield()
253 if (value & ((uint64_t)1 << (bits-1))) in getSignedBitfield()
254 value |= ((uint64_t)-1) << bits; in getSignedBitfield()
281 int checkUnsignedBitfieldOverflow(uint64_t value, int64_t incr, uint64_t bits, int owtype, uint64_t… in checkUnsignedBitfieldOverflow()
282 uint64_t max = (bits == 64) ? UINT64_MAX : (((uint64_t)1<<bits)-1); in checkUnsignedBitfieldOverflow()
309 uint64_t mask = ((uint64_t)-1) << bits; in checkUnsignedBitfieldOverflow()
310 uint64_t res = value+incr; in checkUnsignedBitfieldOverflow()
318 int checkSignedBitfieldOverflow(int64_t value, int64_t incr, uint64_t bits, int owtype, int64_t *li… in checkSignedBitfieldOverflow()
352 uint64_t mask = ((uint64_t)-1) << bits; in checkSignedBitfieldOverflow()
353 uint64_t msb = (uint64_t)1 << (bits-1); in checkSignedBitfieldOverflow()
354 uint64_t a = value, b = incr, c; in checkSignedBitfieldOverflow()
895 uint64_t offset; /* Bitfield offset. */
1041 uint64_t oldval, newval, wrapped, retval; in bitfieldCommand()
1100 uint64_t val = getUnsignedBitfield(buf,thisop->offset-(byte*8), in bitfieldCommand()