Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/
H A Dfp_lib.h33 typedef uint32_t rep_t; typedef
41 static __inline int rep_clz(rep_t a) { return clzsi(a); } in rep_clz()
44 static __inline void wideMultiply(rep_t a, rep_t b, rep_t *hi, rep_t *lo) { in wideMultiply()
46 *hi = (rep_t)(product >> 32); in wideMultiply()
47 *lo = (rep_t)product; in wideMultiply()
54 typedef uint64_t rep_t; typedef
61 static inline int rep_clz(rep_t a) { return __builtin_clzll(a); } in rep_clz()
69 static __inline void wideMultiply(rep_t a, rep_t b, rep_t *hi, rep_t *lo) { in wideMultiply()
90 typedef __uint128_t rep_t; typedef
101 static __inline int rep_clz(rep_t a) { in rep_clz()
[all …]
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 Dfp_div_impl.inc22 // 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 …]
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 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;