Home
last modified time | relevance | path

Searched refs:bits (Results 1 – 25 of 69) sorted by relevance

123

/picolibc-3.5.0-3.4.0/newlib/libm/ld/ld80/
De_fmodl.c52 struct ieee_ext bits; in fmodl() member
61 sx = ux.bits.ext_sign; in fmodl()
72 if(ux.bits.ext_exp<=uy.bits.ext_exp) { in fmodl()
73 if((ux.bits.ext_exp<uy.bits.ext_exp) || in fmodl()
74 (ux.bits.ext_frach<=uy.bits.ext_frach && in fmodl()
75 (ux.bits.ext_frach<uy.bits.ext_frach || in fmodl()
76 ux.bits.ext_fracl<uy.bits.ext_fracl))) { in fmodl()
79 if(ux.bits.ext_frach==uy.bits.ext_frach && in fmodl()
80 ux.bits.ext_fracl==uy.bits.ext_fracl) { in fmodl()
86 if(ux.bits.ext_exp == 0) { /* subnormal x */ in fmodl()
[all …]
Ds_nanl.c34 uint32_t bits[3]; in nanl() member
37 __scan_nan(u.bits, 3, s); in nanl()
38 u.ieee.bits.exp = 0x7fff; in nanl()
39 u.ieee.bits.manh |= 0xc0000000; /* make it a quiet NaN */ in nanl()
Di386_fpmath.h37 } bits; member
46 #define mask_nbit_l(u) ((u).bits.manh &= ~LDBL_NBIT)
52 (a)[0] = (uint32_t)(u).bits.manl; \
53 (a)[1] = (uint32_t)(u).bits.manh; \
/picolibc-3.5.0-3.4.0/newlib/libm/ld/common/
De_sqrtl.c37 if (++u.bits.manl == 0) { in inc()
38 if (++u.bits.manh == 0) { in inc()
39 u.bits.exp++; in inc()
40 u.bits.manh |= LDBL_NBIT; in inc()
53 if (u.bits.manl-- == 0) { in dec()
54 if (u.bits.manh-- == LDBL_NBIT) { in dec()
55 u.bits.exp--; in dec()
56 u.bits.manh |= LDBL_NBIT; in dec()
88 if (u.bits.exp == LDBL_INF_NAN_EXP) { in sqrtl()
95 if ((u.bits.manh | u.bits.manl | u.bits.exp) == 0) in sqrtl()
[all …]
Ds_ilogbl.c25 if (u.bits.exp == 0) { in ilogbl()
26 if ((u.bits.manl | u.bits.manh) == 0) { in ilogbl()
32 if (u.bits.manh == 0) { in ilogbl()
34 for (b = LDBL_MANH_SIZE; !(u.bits.manl & m); m >>= 1) in ilogbl()
40 for (b = 0; !(u.bits.manh & m); m >>= 1) in ilogbl()
47 } else if (u.bits.exp < (LDBL_MAX_EXP << 1) - 1) in ilogbl()
48 return (u.bits.exp - LDBL_MAX_EXP + 1); in ilogbl()
49 else if (u.bits.manl != 0 || u.bits.manh != 0) { in ilogbl()
Ds_fmaxl.c46 if (u[0].bits.exp == LDBL_INF_NAN_EXP && (u[0].bits.manh | u[0].bits.manl) != 0) in fmaxl()
48 if (u[1].bits.exp == LDBL_INF_NAN_EXP && (u[1].bits.manh | u[1].bits.manl) != 0) in fmaxl()
52 if (u[0].bits.sign != u[1].bits.sign) in fmaxl()
53 return (u[0].bits.sign ? y : x); in fmaxl()
Ds_fminl.c46 if (u[0].bits.exp == LDBL_INF_NAN_EXP && (u[0].bits.manh | u[0].bits.manl) != 0) in fminl()
48 if (u[1].bits.exp == LDBL_INF_NAN_EXP && (u[1].bits.manh | u[1].bits.manl) != 0) in fminl()
52 if (u[0].bits.sign != u[1].bits.sign) in fminl()
53 return (u[1].bits.sign ? y : x); in fminl()
Ds_logbl.c22 if (u.bits.exp == 0) { in logbl()
23 if ((u.bits.manl | u.bits.manh) == 0) { /* x == 0 */ in logbl()
24 u.bits.sign = 1; in logbl()
29 if (u.bits.manh == 0) { in logbl()
31 for (b = LDBL_MANH_SIZE; !(u.bits.manl & m); m >>= 1) in logbl()
37 for (b = 0; !(u.bits.manh & m); m >>= 1) in logbl()
45 if (u.bits.exp < (LDBL_MAX_EXP << 1) - 1) /* normal */ in logbl()
46 return ((long double)(u.bits.exp - LDBL_MAX_EXP + 1)); in logbl()
Ds_frexpl.c40 switch (u.bits.exp) { in frexpl()
42 if ((u.bits.manl | u.bits.manh) == 0) { in frexpl()
46 *ex = u.bits.exp - 0x4200; in frexpl()
47 u.bits.exp = 0x3ffe; in frexpl()
53 *ex = u.bits.exp - 0x3ffe; in frexpl()
54 u.bits.exp = 0x3ffe; in frexpl()
Ds_scalbnl.c35 k = u.bits.exp; /* extract exponent */ in scalbnl()
37 if ((u.bits.manh|u.bits.manl)==0) return x; /* +-0 */ in scalbnl()
39 k = u.bits.exp - 128; in scalbnl()
40 if (n< -50000) return __math_uflowl(u.bits.sign); in scalbnl()
45 return __math_oflowl(u.bits.sign); /*overflow*/ in scalbnl()
48 if (k >= 0x7fff) return __math_oflowl(u.bits.sign); /* overflow */ in scalbnl()
50 {u.bits.exp = k; return u.e;} in scalbnl()
52 return __math_uflowl(u.bits.sign); /*underflow*/ in scalbnl()
54 u.bits.exp = k; in scalbnl()
De_atan2l.c46 ((ux.bits.manh&~LDBL_NBIT)|ux.bits.manl)!=0) || /* x is NaN */ in atan2l()
48 ((uy.bits.manh&~LDBL_NBIT)|uy.bits.manl)!=0)) /* y is NaN */ in atan2l()
50 if (expsignx==BIAS && ((ux.bits.manh&~LDBL_NBIT)|ux.bits.manl)==0) in atan2l()
55 if(expty==0 && ((uy.bits.manh&~LDBL_NBIT)|uy.bits.manl)==0) { in atan2l()
64 if(exptx==0 && ((ux.bits.manh&~LDBL_NBIT)|ux.bits.manl)==0) in atan2l()
Ds_fabsl.c39 u.bits.signl ^= u.bits.sign; in fabsl()
41 u.bits.sign = 0; in fabsl()
Ds_isinfl.c34 return (u.bits.exp == LDBL_INF_NAN_EXP && (u.bits.manl == 0 && u.bits.manh == 0)); in isinfl()
Ds_isnanl.c36 return (u.bits.exp == LDBL_INF_NAN_EXP && (u.bits.manl != 0 || u.bits.manh != 0)); in isnanl()
Ds_tanl.c53 s = z.bits.sign; in tanl()
54 z.bits.sign = 0; in tanl()
57 if (z.bits.exp == 0) in tanl()
61 if (z.bits.exp == 32767) in tanl()
Ds_sinl.c45 s = z.bits.sign; in sinl()
46 z.bits.sign = 0; in sinl()
49 if (z.bits.exp == 0) { in sinl()
56 if (z.bits.exp == 32767) in sinl()
De_asinl.c39 if(expt==BIAS && ((u.bits.manh&~LDBL_NBIT)|u.bits.manl)==0) in asinl()
59 if(u.bits.manh>=THRESH) { /* if |x| is close to 1 */ in asinl()
64 u.bits.manl = 0; in asinl()
/picolibc-3.5.0-3.4.0/newlib/libc/stdlib/
Dstrtorx.c61 ULtox(L, bits, exp, k) __UShort *L; __ULong *bits; Long exp; int k; in ULtox() argument
63 ULtox(__UShort *L, __ULong *bits, Long exp, int k)
80 L[_4] = (__UShort)bits[0];
81 L[_3] = (__UShort)(bits[0] >> 16);
82 L[_2] = (__UShort)bits[1];
83 L[_1] = (__UShort)(bits[1] >> 16);
110 __ULong bits[2]; local
120 k = _strtodg_l(s, sp, fpi, &exp, bits, loc);
121 ULtox((__UShort*)L, bits, exp, k);
Dgdtoa-ldtoa.c68 uint32_t bits[(LDBL_MANT_DIG + 31) / 32]; in _ldtoa_r() local
69 void *vbits = bits; in _ldtoa_r()
90 EXT_TO_ARRAY32(p, bits); in _ldtoa_r()
96 bits[LDBL_MANT_DIG / 32] |= 1 << ((LDBL_MANT_DIG - 1) % 32); in _ldtoa_r()
/picolibc-3.5.0-3.4.0/newlib/libm/ld/ld128/
Ds_nanl.c36 uint32_t bits[4]; in nanl() member
39 __scan_nan(u.bits, 4, s); in nanl()
40 u.ieee.bits.exp = 0x7fff; in nanl()
41 u.ieee.bits.manh |= 1ULL << 47; /* make it a quiet NaN */ in nanl()
/picolibc-3.5.0-3.4.0/newlib/libc/tinystdio/ryu/
Dcommon.h64 uint32_t bits = 0; in float_to_bits() local
65 memcpy(&bits, &f, sizeof(float)); in float_to_bits()
66 return bits; in float_to_bits()
70 uint64_t bits = 0; in double_to_bits() local
71 memcpy(&bits, &d, sizeof(double)); in double_to_bits()
72 return bits; in double_to_bits()
/picolibc-3.5.0-3.4.0/newlib/libm/common/
Dfdlibm.h211 uint64_t bits; member
225 uint64_t bits; member
240 ew_u.bits = asuint64(d); \
250 gh_u.bits = asuint64(d); \
259 gl_u.bits = asuint64(d); \
270 (d) = asdouble(iw_u.bits); \
278 sh_u.bits = asuint64(d); \
280 (d) = asdouble(sh_u.bits); \
288 sl_u.bits = asuint64(d); \
290 (d) = asdouble(sl_u.bits); \
/picolibc-3.5.0-3.4.0/newlib/libm/ld/
Ds_nanl.c45 __scan_nan(uint32_t *bits, int len, const char *s) in __scan_nan() argument
48 memset(bits, 0, sizeof(*bits) * len); in __scan_nan()
Dmath_private_openbsd.h146 } bits; member
173 (a)[0] = (uint32_t)(u).bits.manl; \
174 (a)[1] = (uint32_t)((u).bits.manl >> 32); \
175 (a)[2] = (uint32_t)(u).bits.manh; \
176 (a)[3] = (uint32_t)((u).bits.manh >> 32); \
317 } bits; member
333 #define mask_nbit_l(u) ((u).bits.manh &= ~LDBL_NBIT)
342 (a)[0] = (uint32_t)(u).bits.manl; \
343 (a)[1] = (uint32_t)(u).bits.manh; \
515 } bits; member
[all …]
/picolibc-3.5.0-3.4.0/semihost/
Dgetentropy.c46 uintptr_t bits = sys_semihost_time(); in getentropy() local
50 memcpy(b, &bits, this_time); in getentropy()

123