• Home
  • Raw
  • Download

Lines Matching refs:deInt32

161 DE_INLINE deInt32 deSignBit32 (deInt32 a)  in deSignBit32()
163 return (deInt32)((deUint32)a & 0x80000000u); in deSignBit32()
329 DE_INLINE deInt32 deAlign32 (deInt32 val, deInt32 align) in deAlign32()
439 DE_INLINE int deLog2Floor32 (deInt32 a) in deLog2Floor32()
450 DE_INLINE int deLog2Ceil32 (deInt32 a) in deLog2Ceil32()
509 DE_INLINE deInt32 deSafeMul32 (deInt32 a, deInt32 b) in deSafeMul32()
511 deInt32 res = a * b; in deSafeMul32()
516 DE_INLINE deInt32 deSafeAdd32 (deInt32 a, deInt32 b) in deSafeAdd32()
522 DE_INLINE deInt32 deDivRoundUp32 (deInt32 a, deInt32 b) in deDivRoundUp32()
529 DE_INLINE deInt32 deMulAsr32 (deInt32 a, deInt32 b, int shift) in deMulAsr32()
531 return (deInt32)(((deInt64)a * (deInt64)b) >> shift); in deMulAsr32()
534 DE_INLINE deInt32 deSafeMulAsr32 (deInt32 a, deInt32 b, int shift) in deSafeMulAsr32()
537 DE_ASSERT(res == (deInt64)(deInt32)res); in deSafeMulAsr32()
538 return (deInt32)res; in deSafeMulAsr32()
548 DE_INLINE deInt64 deMul32_32_64 (deInt32 a, deInt32 b) in deMul32_32_64()
568 DE_INLINE deUint32 deInt32Hash (deInt32 a) in deInt32Hash()
595 DE_INLINE deUint32 deUint16Hash (deUint16 v) { return deInt32Hash((deInt32)v); } in deUint16Hash()
596 DE_INLINE deUint32 deUint32Hash (deUint32 v) { return deInt32Hash((deInt32)v); } in deUint32Hash()
601 DE_INLINE deBool deInt32Equal (deInt32 a, deInt32 b) { return (a == b); } in deInt32Equal()
627 DE_INLINE deInt32 deInt32ModF (deInt32 n, deInt32 d) in deInt32ModF()
629 deInt32 r = n%d; in deInt32ModF()
636 return ((x >= (((deInt64)((deInt32)(-0x7FFFFFFF - 1))))) && (x <= ((1ll<<31)-1))); in deInt64InInt32Range()
666 DE_INLINE deInt32 deIntMaxValue32 (int numBits) in deIntMaxValue32()
670 return ((deInt32)1 << (numBits - 1)) - 1; in deIntMaxValue32()
678 DE_INLINE deInt32 deIntMinValue32 (int numBits) in deIntMinValue32()
682 return -((deInt32)1 << (numBits - 1)); in deIntMinValue32()
686 return (deInt32)(-0x7FFFFFFF - 1); in deIntMinValue32()
690 DE_INLINE deInt32 deSignExtendTo32 (deInt32 value, int numBits) in deSignExtendTo32()
701 return (deInt32)((deUint32)value | (signSet ? signMask : 0u)); in deSignExtendTo32()