• Home
  • Raw
  • Download

Lines Matching refs:deInt32

172 DE_INLINE deInt32 deSignBit32 (deInt32 a)  in deSignBit32()
174 return (deInt32)((deUint32)a & 0x80000000u); in deSignBit32()
340 DE_INLINE deInt32 deAlign32 (deInt32 val, deInt32 align) in deAlign32()
450 DE_INLINE int deLog2Floor32 (deInt32 a) in deLog2Floor32()
461 DE_INLINE int deLog2Ceil32 (deInt32 a) in deLog2Ceil32()
520 DE_INLINE deInt32 deSafeMul32 (deInt32 a, deInt32 b) in deSafeMul32()
522 deInt32 res = a * b; in deSafeMul32()
527 DE_INLINE deInt32 deSafeAdd32 (deInt32 a, deInt32 b) in deSafeAdd32()
533 DE_INLINE deInt32 deDivRoundUp32 (deInt32 a, deInt32 b) in deDivRoundUp32()
540 DE_INLINE deInt32 deMulAsr32 (deInt32 a, deInt32 b, int shift) in deMulAsr32()
542 return (deInt32)(((deInt64)a * (deInt64)b) >> shift); in deMulAsr32()
545 DE_INLINE deInt32 deSafeMulAsr32 (deInt32 a, deInt32 b, int shift) in deSafeMulAsr32()
548 DE_ASSERT(res == (deInt64)(deInt32)res); in deSafeMulAsr32()
549 return (deInt32)res; in deSafeMulAsr32()
559 DE_INLINE deInt64 deMul32_32_64 (deInt32 a, deInt32 b) in deMul32_32_64()
579 DE_INLINE deUint32 deInt32Hash (deInt32 a) in deInt32Hash()
606 DE_INLINE deUint32 deUint16Hash (deUint16 v) { return deInt32Hash((deInt32)v); } in deUint16Hash()
607 DE_INLINE deUint32 deUint32Hash (deUint32 v) { return deInt32Hash((deInt32)v); } in deUint32Hash()
612 DE_INLINE deBool deInt32Equal (deInt32 a, deInt32 b) { return (a == b); } in deInt32Equal()
638 DE_INLINE deInt32 deInt32ModF (deInt32 n, deInt32 d) in deInt32ModF()
640 deInt32 r = n%d; in deInt32ModF()
647 return ((x >= (((deInt64)((deInt32)(-0x7FFFFFFF - 1))))) && (x <= ((1ll<<31)-1))); in deInt64InInt32Range()
677 DE_INLINE deInt32 deIntMaxValue32 (int numBits) in deIntMaxValue32()
681 return ((deInt32)1 << (numBits - 1)) - 1; in deIntMaxValue32()
689 DE_INLINE deInt32 deIntMinValue32 (int numBits) in deIntMinValue32()
693 return -((deInt32)1 << (numBits - 1)); in deIntMinValue32()
697 return (deInt32)(-0x7FFFFFFF - 1); in deIntMinValue32()
701 DE_INLINE deInt32 deSignExtendTo32 (deInt32 value, int numBits) in deSignExtendTo32()
712 return (deInt32)((deUint32)value | (signSet ? signMask : 0u)); in deSignExtendTo32()