Home
last modified time | relevance | path

Searched refs:rep_t (Results 1 – 18 of 18) sorted by relevance

/llvm-project-15.0.7/compiler-rt/lib/builtins/
H A Dfp_lib.h44 typedef uint32_t rep_t; typedef
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
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
158 static __inline void wideMultiply(rep_t a, rep_t b, rep_t *hi, rep_t *lo) { in wideMultiply()
228 rep_t i; in toRep()
236 rep_t i; in fromRep()
247 static __inline void wideLeftShift(rep_t *hi, rep_t *lo, int count) { in wideLeftShift()
252 static __inline void wideRightShiftWithSticky(rep_t *hi, rep_t *lo, in wideRightShiftWithSticky()
[all …]
H A Dfloatsisf.c29 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()
H A Dfloatunsisf.c30 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()
H A Dfloatditf.c28 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()
H A Dfloatsitf.c28 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()
H A Dfloatsidf.c29 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()
H A Dfp_div_impl.inc26 // Half the bit-size of rep_t
49 const rep_t aAbs = toRep(a) & absMask;
232 rep_t x_UQ0 = (rep_t)x_UQ0_hw << HW;
238 rep_t x_UQ0 = C - b_UQ1;
263 rep_t blo = b_UQ1 & loMask;
272 rep_t corr_UQ1 = 0U - ( (rep_t)x_UQ0_hw * b_UQ1_hw
275 rep_t lo_corr = corr_UQ1 & loMask;
276 rep_t hi_corr = corr_UQ1 >> HW;
339 rep_t quotient_UQ1, dummy;
345 rep_t residualLo;
[all …]
H A Dfp_add_impl.inc18 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;
H A Dfloatunsitf.c29 rep_t result; in __floatunsitf()
33 result = (rep_t)a << shift ^ implicitBit; in __floatunsitf()
36 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatunsitf()
H A Dfloatunditf.c29 rep_t result; in __floatunditf()
33 result = (rep_t)a << shift ^ implicitBit; in __floatunditf()
36 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatunditf()
H A Dfloatunsidf.c30 rep_t result; in __floatunsidf()
34 result = (rep_t)a << shift ^ implicitBit; in __floatunsidf()
37 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatunsidf()
H A Dfp_mul_impl.inc19 const rep_t productSign = (toRep(a) ^ toRep(b)) & signBit;
21 rep_t aSignificand = toRep(a) & significandMask;
22 rep_t bSignificand = toRep(b) & significandMask;
29 const rep_t aAbs = toRep(a) & absMask;
30 const rep_t bAbs = toRep(b) & absMask;
81 rep_t productHi, productLo;
114 productHi |= (rep_t)productExponent << significandBits;
H A Dfp_compare_impl.inc47 const rep_t aAbs = aInt & absMask;
48 const rep_t bAbs = bInt & absMask;
91 const rep_t aAbs = aInt & absMask;
92 const rep_t bAbs = bInt & absMask;
116 const rep_t aAbs = toRep(a) & absMask;
117 const rep_t bAbs = toRep(b) & absMask;
H A Dfp_fixuint_impl.inc18 const rep_t aRep = toRep(a);
19 const rep_t aAbs = aRep & absMask;
22 const rep_t significand = (aAbs & significandMask) | implicitBit;
H A Dfp_fixint_impl.inc20 const rep_t aRep = toRep(a);
21 const rep_t aAbs = aRep & absMask;
24 const rep_t significand = (aAbs & significandMask) | implicitBit;
/llvm-project-15.0.7/compiler-rt/test/builtins/Unit/
H A Dcompiler_rt_logbf_test.c43 rep_t x = signBit; in main()
H A Dcompiler_rt_logb_test.c49 rep_t x = signBit; in main()
H A Dcompiler_rt_logbl_test.c54 rep_t x = signBit; in main()