/external/compiler-rt/lib/builtins/ |
D | divtf3.c | 27 const rep_t quotientSign = (toRep(a) ^ toRep(b)) & signBit; in __divtf3() 29 rep_t aSignificand = toRep(a) & significandMask; in __divtf3() 30 rep_t bSignificand = toRep(b) & significandMask; in __divtf3() 36 const rep_t aAbs = toRep(a) & absMask; in __divtf3() 37 const rep_t bAbs = toRep(b) & absMask; in __divtf3() 92 correction64 = -((rep_t)recip64 * q63b >> 64); in __divtf3() 93 recip64 = (rep_t)recip64 * correction64 >> 63; in __divtf3() 94 correction64 = -((rep_t)recip64 * q63b >> 64); in __divtf3() 95 recip64 = (rep_t)recip64 * correction64 >> 63; in __divtf3() 96 correction64 = -((rep_t)recip64 * q63b >> 64); in __divtf3() [all …]
|
D | fp_lib.h | 43 typedef uint32_t rep_t; typedef 49 static __inline int rep_clz(rep_t a) { in rep_clz() 54 static __inline void wideMultiply(rep_t a, rep_t b, rep_t *hi, rep_t *lo) { in wideMultiply() 63 typedef uint64_t rep_t; typedef 69 static __inline int rep_clz(rep_t a) { in rep_clz() 86 static __inline void wideMultiply(rep_t a, rep_t b, rep_t *hi, rep_t *lo) { in wideMultiply() 107 typedef __uint128_t rep_t; typedef 115 static __inline int rep_clz(rep_t a) { in rep_clz() 151 static __inline void wideMultiply(rep_t a, rep_t b, rep_t *hi, rep_t *lo) { in wideMultiply() 216 #define typeWidth (sizeof(rep_t)*CHAR_BIT) [all …]
|
D | floatsisf.c | 33 rep_t sign = 0; in ARM_EABI_FNALIAS() 41 rep_t result; in ARM_EABI_FNALIAS() 46 result = (rep_t)a << shift ^ implicitBit; in ARM_EABI_FNALIAS() 49 result = (rep_t)a >> shift ^ implicitBit; in ARM_EABI_FNALIAS() 50 rep_t round = (rep_t)a << (typeWidth - shift); in ARM_EABI_FNALIAS() 56 result += (rep_t)(exponent + exponentBias) << significandBits; in ARM_EABI_FNALIAS()
|
D | divsf3.c | 29 const rep_t quotientSign = (toRep(a) ^ toRep(b)) & signBit; in ARM_EABI_FNALIAS() 31 rep_t aSignificand = toRep(a) & significandMask; in ARM_EABI_FNALIAS() 32 rep_t bSignificand = toRep(b) & significandMask; in ARM_EABI_FNALIAS() 38 const rep_t aAbs = toRep(a) & absMask; in ARM_EABI_FNALIAS() 39 const rep_t bAbs = toRep(b) & absMask; in ARM_EABI_FNALIAS() 121 rep_t quotient = (uint64_t)reciprocal*(aSignificand << 1) >> 32; in ARM_EABI_FNALIAS() 136 rep_t residual; in ARM_EABI_FNALIAS() 161 rep_t absResult = quotient & significandMask; in ARM_EABI_FNALIAS() 163 absResult |= (rep_t)writtenExponent << significandBits; in ARM_EABI_FNALIAS()
|
D | floatunsisf.c | 33 rep_t result; in ARM_EABI_FNALIAS() 38 result = (rep_t)a << shift ^ implicitBit; in ARM_EABI_FNALIAS() 41 result = (rep_t)a >> shift ^ implicitBit; in ARM_EABI_FNALIAS() 42 rep_t round = (rep_t)a << (typeWidth - shift); in ARM_EABI_FNALIAS() 48 result += (rep_t)(exponent + exponentBias) << significandBits; in ARM_EABI_FNALIAS()
|
D | divdf3.c | 29 const rep_t quotientSign = (toRep(a) ^ toRep(b)) & signBit; in ARM_EABI_FNALIAS() 31 rep_t aSignificand = toRep(a) & significandMask; in ARM_EABI_FNALIAS() 32 rep_t bSignificand = toRep(b) & significandMask; in ARM_EABI_FNALIAS() 38 const rep_t aAbs = toRep(a) & absMask; in ARM_EABI_FNALIAS() 39 const rep_t bAbs = toRep(b) & absMask; in ARM_EABI_FNALIAS() 135 rep_t quotient, quotientLo; in ARM_EABI_FNALIAS() 151 rep_t residual; in ARM_EABI_FNALIAS() 176 rep_t absResult = quotient & significandMask; in ARM_EABI_FNALIAS() 178 absResult |= (rep_t)writtenExponent << significandBits; in ARM_EABI_FNALIAS()
|
D | comparetf2.c | 55 const rep_t aAbs = aInt & absMask; in __letf2() 56 const rep_t bAbs = bInt & absMask; in __letf2() 98 const rep_t aAbs = aInt & absMask; in __getf2() 99 const rep_t bAbs = bInt & absMask; in __getf2() 115 const rep_t aAbs = toRep(a) & absMask; in __unordtf2() 116 const rep_t bAbs = toRep(b) & absMask; in __unordtf2()
|
D | comparesf2.c | 55 const rep_t aAbs = aInt & absMask; in __lesf2() 56 const rep_t bAbs = bInt & absMask; in __lesf2() 100 const rep_t aAbs = aInt & absMask; in __gesf2() 101 const rep_t bAbs = bInt & absMask; in __gesf2() 120 const rep_t aAbs = toRep(a) & absMask; in ARM_EABI_FNALIAS() 121 const rep_t bAbs = toRep(b) & absMask; in ARM_EABI_FNALIAS()
|
D | comparedf2.c | 55 const rep_t aAbs = aInt & absMask; in __ledf2() 56 const rep_t bAbs = bInt & absMask; in __ledf2() 100 const rep_t aAbs = aInt & absMask; in __gedf2() 101 const rep_t bAbs = bInt & absMask; in __gedf2() 120 const rep_t aAbs = toRep(a) & absMask; in ARM_EABI_FNALIAS() 121 const rep_t bAbs = toRep(b) & absMask; in ARM_EABI_FNALIAS()
|
D | floatsitf.c | 29 rep_t sign = 0; in __floatsitf() 38 rep_t result; in __floatsitf() 42 result = (rep_t)aAbs << shift ^ implicitBit; in __floatsitf() 45 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatsitf()
|
D | floatsidf.c | 33 rep_t sign = 0; in ARM_EABI_FNALIAS() 41 rep_t result; in ARM_EABI_FNALIAS() 47 result = (rep_t)(unsigned int)a << shift ^ implicitBit; in ARM_EABI_FNALIAS() 50 result += (rep_t)(exponent + exponentBias) << significandBits; in ARM_EABI_FNALIAS()
|
D | floatditf.c | 29 rep_t sign = 0; in __floatditf() 38 rep_t result; in __floatditf() 42 result = (rep_t)aAbs << shift ^ implicitBit; in __floatditf() 45 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatditf()
|
D | fp_add_impl.inc | 18 rep_t aRep = toRep(a); 19 rep_t bRep = toRep(b); 20 const rep_t aAbs = aRep & absMask; 21 const rep_t bAbs = bRep & absMask; 54 const rep_t temp = aRep; 62 rep_t aSignificand = aRep & significandMask; 63 rep_t bSignificand = bRep & significandMask; 71 const rep_t resultSign = aRep & signBit; 133 rep_t result = aSignificand >> 3 & significandMask; 136 result |= (rep_t)aExponent << significandBits;
|
D | floatunsitf.c | 29 rep_t result; in __floatunsitf() 33 result = (rep_t)a << shift ^ implicitBit; in __floatunsitf() 36 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatunsitf()
|
/external/llvm-project/compiler-rt/lib/builtins/ |
D | fp_lib.h | 44 typedef uint32_t rep_t; typedef 52 static __inline int rep_clz(rep_t a) { return clzsi(a); } in rep_clz() 55 static __inline void wideMultiply(rep_t a, rep_t b, rep_t *hi, rep_t *lo) { in wideMultiply() 65 typedef uint64_t rep_t; typedef 72 static __inline int rep_clz(rep_t a) { in rep_clz() 89 static __inline void wideMultiply(rep_t a, rep_t b, rep_t *hi, rep_t *lo) { in wideMultiply() 111 typedef __uint128_t rep_t; typedef 120 static __inline int rep_clz(rep_t a) { in rep_clz() 158 static __inline void wideMultiply(rep_t a, rep_t b, rep_t *hi, rep_t *lo) { in wideMultiply() 210 #define typeWidth (sizeof(rep_t) * CHAR_BIT) [all …]
|
D | floatsisf.c | 29 rep_t sign = 0; in __floatsisf() 37 rep_t result; in __floatsisf() 42 result = (rep_t)a << shift ^ implicitBit; in __floatsisf() 45 result = (rep_t)a >> shift ^ implicitBit; in __floatsisf() 46 rep_t round = (rep_t)a << (typeWidth - shift); in __floatsisf() 54 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatsisf()
|
D | floatunsisf.c | 30 rep_t result; in __floatunsisf() 35 result = (rep_t)a << shift ^ implicitBit; in __floatunsisf() 38 result = (rep_t)a >> shift ^ implicitBit; in __floatunsisf() 39 rep_t round = (rep_t)a << (typeWidth - shift); in __floatunsisf() 47 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatunsisf()
|
D | comparetf2.c | 49 const rep_t aAbs = aInt & absMask; in __letf2() 50 const rep_t bAbs = bInt & absMask; in __letf2() 102 const rep_t aAbs = aInt & absMask; in __getf2() 103 const rep_t bAbs = bInt & absMask; in __getf2() 129 const rep_t aAbs = toRep(a) & absMask; in COMPILER_RT_ALIAS() 130 const rep_t bAbs = toRep(b) & absMask; in COMPILER_RT_ALIAS()
|
D | floatsitf.c | 28 rep_t sign = 0; in __floatsitf() 37 rep_t result; in __floatsitf() 41 result = (rep_t)aAbs << shift ^ implicitBit; in __floatsitf() 44 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatsitf()
|
D | comparesf2.c | 48 const rep_t aAbs = aInt & absMask; in __lesf2() 49 const rep_t bAbs = bInt & absMask; in __lesf2() 103 const rep_t aAbs = aInt & absMask; in __gesf2() 104 const rep_t bAbs = bInt & absMask; in __gesf2() 131 const rep_t aAbs = toRep(a) & absMask; in COMPILER_RT_ALIAS() 132 const rep_t bAbs = toRep(b) & absMask; in COMPILER_RT_ALIAS()
|
D | comparedf2.c | 48 const rep_t aAbs = aInt & absMask; in __ledf2() 49 const rep_t bAbs = bInt & absMask; in __ledf2() 103 const rep_t aAbs = aInt & absMask; in __gedf2() 104 const rep_t bAbs = bInt & absMask; in __gedf2() 131 const rep_t aAbs = toRep(a) & absMask; in COMPILER_RT_ALIAS() 132 const rep_t bAbs = toRep(b) & absMask; in COMPILER_RT_ALIAS()
|
D | floatditf.c | 28 rep_t sign = 0; in __floatditf() 37 rep_t result; in __floatditf() 41 result = (rep_t)aAbs << shift ^ implicitBit; in __floatditf() 44 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatditf()
|
D | floatsidf.c | 29 rep_t sign = 0; in __floatsidf() 37 rep_t result; in __floatsidf() 43 result = (rep_t)(su_int)a << shift ^ implicitBit; in __floatsidf() 46 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatsidf()
|
D | fp_div_impl.inc | 22 // operations (w.r.t rep_t size) can be performed faster for some hardware but 26 // Half the bit-size of rep_t 28 // rep_t-sized bitmask with lower half of bits set to ones 39 const rep_t quotientSign = (toRep(a) ^ toRep(b)) & signBit; 41 rep_t aSignificand = toRep(a) & significandMask; 42 rep_t bSignificand = toRep(b) & significandMask; 49 const rep_t aAbs = toRep(a) & absMask; 50 const rep_t bAbs = toRep(b) & absMask; 101 const rep_t b_UQ1 = bSignificand << (typeWidth - significandBits - 1); 117 // implicit bit set). Corresponds to rep_t-sized b_UQ1 represented in [all …]
|
D | fp_add_impl.inc | 18 rep_t aRep = toRep(a); 19 rep_t bRep = toRep(b); 20 const rep_t aAbs = aRep & absMask; 21 const rep_t bAbs = bRep & absMask; 62 const rep_t temp = aRep; 70 rep_t aSignificand = aRep & significandMask; 71 rep_t bSignificand = bRep & significandMask; 82 const rep_t resultSign = aRep & signBit; 145 rep_t result = aSignificand >> 3 & significandMask; 148 result |= (rep_t)aExponent << significandBits;
|