Home
last modified time | relevance | path

Searched refs:exp (Results 1 – 25 of 60) sorted by relevance

123

/bionic/libm/upstream-freebsd/lib/msun/src/
De_fmodl.c78 if((uy.bits.exp|uy.bits.manh|uy.bits.manl)==0 || /* y=0 */ in fmodl()
79 (ux.bits.exp == BIAS + LDBL_MAX_EXP) || /* or x not finite */ in fmodl()
80 (uy.bits.exp == BIAS + LDBL_MAX_EXP && in fmodl()
83 if(ux.bits.exp<=uy.bits.exp) { in fmodl()
84 if((ux.bits.exp<uy.bits.exp) || in fmodl()
96 if(ux.bits.exp == 0) { /* subnormal x */ in fmodl()
98 ix = ux.bits.exp - (BIAS + 512); in fmodl()
100 ix = ux.bits.exp - BIAS; in fmodl()
104 if(uy.bits.exp == 0) { /* subnormal y */ in fmodl()
106 iy = uy.bits.exp - (BIAS + 512); in fmodl()
[all …]
De_sqrtl.c47 u.bits.exp++; in inc()
63 u.bits.exp--; in dec()
90 if (u.bits.exp == LDBL_MAX_EXP * 2 - 1) in sqrtl()
94 if ((u.bits.manh | u.bits.manl | u.bits.exp) == 0) in sqrtl()
103 if (u.bits.exp == 0) { in sqrtl()
114 if ((u.bits.exp - 0x3ffe) & 1) { /* n is odd. */ in sqrtl()
115 k += u.bits.exp - 0x3fff; /* 2k = n - 1. */ in sqrtl()
116 u.bits.exp = 0x3fff; /* u.e in [1,2). */ in sqrtl()
118 k += u.bits.exp - 0x4000; /* 2k = n - 2. */ in sqrtl()
119 u.bits.exp = 0x4000; /* u.e in [2,4). */ in sqrtl()
[all …]
Ds_remquol.c84 if((uy.bits.exp|uy.bits.manh|uy.bits.manl)==0 || /* y=0 */ in remquol()
85 (ux.bits.exp == BIAS + LDBL_MAX_EXP) || /* or x not finite */ in remquol()
86 (uy.bits.exp == BIAS + LDBL_MAX_EXP && in remquol()
89 if(ux.bits.exp<=uy.bits.exp) { in remquol()
90 if((ux.bits.exp<uy.bits.exp) || in remquol()
104 if(ux.bits.exp == 0) { /* subnormal x */ in remquol()
106 ix = ux.bits.exp - (BIAS + 512); in remquol()
108 ix = ux.bits.exp - BIAS; in remquol()
112 if(uy.bits.exp == 0) { /* subnormal y */ in remquol()
114 iy = uy.bits.exp - (BIAS + 512); in remquol()
[all …]
Ds_frexpl.c46 switch (u.bits.exp) { in frexpl()
52 *ex = u.bits.exp - 0x4200; in frexpl()
53 u.bits.exp = 0x3ffe; in frexpl()
59 *ex = u.bits.exp - 0x3ffe; in frexpl()
60 u.bits.exp = 0x3ffe; in frexpl()
Ds_nextafterl.c42 if ((ux.bits.exp == 0x7fff && in nextafterl()
44 (uy.bits.exp == 0x7fff && in nextafterl()
58 ux.bits.exp -= 1; in nextafterl()
67 ux.bits.exp += 1; in nextafterl()
70 if(ux.bits.exp==0x7fff) return x+x; /* overflow */ in nextafterl()
71 if(ux.bits.exp==0) { /* underflow */ in nextafterl()
Ds_scalbnl.c48 k = u.bits.exp; /* extract exponent */ in scalbnl()
52 k = u.bits.exp - 128; in scalbnl()
59 {u.bits.exp = k; return u.e;} in scalbnl()
67 u.bits.exp = k; in scalbnl()
Ds_floorl.c38 u.bits.exp++; \
46 u.bits.exp++; \
58 int e = u.bits.exp - LDBL_MAX_EXP + 1; in floorl()
63 if (u.bits.exp > 0 || in floorl()
73 u.bits.exp++; in floorl()
Ds_ceill.c38 u.bits.exp++; \
46 u.bits.exp++; \
58 int e = u.bits.exp - LDBL_MAX_EXP + 1; in ceill()
63 if (u.bits.exp > 0 || in ceill()
73 u.bits.exp++; in ceill()
Ds_logbl.c30 if (u.bits.exp == 0) { in logbl()
50 if (u.bits.exp < (LDBL_MAX_EXP << 1) - 1) /* normal */ in logbl()
51 return ((long double)(u.bits.exp - LDBL_MAX_EXP + 1)); in logbl()
Ds_ilogbl.c30 if (u.bits.exp == 0) { 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()
De_hypotl.c37 #define DESW(exp) (exp) /* delta expsign word */ argument
38 #define ESW(exp) (MAX_EXP - 1 + (exp)) /* expsign word */ argument
Ds_fmaxf.c45 if (u[0].bits.exp == 255 && u[0].bits.man != 0) in fmaxf()
47 if (u[1].bits.exp == 255 && u[1].bits.man != 0) in fmaxf()
Ds_fminf.c45 if (u[0].bits.exp == 255 && u[0].bits.man != 0) in fminf()
47 if (u[1].bits.exp == 255 && u[1].bits.man != 0) in fminf()
Ds_fmin.c46 if (u[0].bits.exp == 2047 && (u[0].bits.manh | u[0].bits.manl) != 0) in fmin()
48 if (u[1].bits.exp == 2047 && (u[1].bits.manh | u[1].bits.manl) != 0) in fmin()
Ds_fmax.c46 if (u[0].bits.exp == 2047 && (u[0].bits.manh | u[0].bits.manl) != 0) in fmax()
48 if (u[1].bits.exp == 2047 && (u[1].bits.manh | u[1].bits.manl) != 0) in fmax()
Ds_fminl.c47 if (u[0].bits.exp == 32767 && (u[0].bits.manh | u[0].bits.manl) != 0) in fminl()
49 if (u[1].bits.exp == 32767 && (u[1].bits.manh | u[1].bits.manl) != 0) in fminl()
Ds_fmaxl.c47 if (u[0].bits.exp == 32767 && (u[0].bits.manh | u[0].bits.manl) != 0) in fmaxl()
49 if (u[1].bits.exp == 32767 && (u[1].bits.manh | u[1].bits.manl) != 0) in fmaxl()
Ds_cosl.c64 if (z.bits.exp == 0) in cosl()
68 if (z.bits.exp == 32767) in cosl()
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/
Dstrtord.c36 ULtod(L, bits, exp, k) ULong *L; ULong *bits; Long exp; int k; in ULtod() argument
38 ULtod(ULong *L, ULong *bits, Long exp, int k)
55 L[_0] = (bits[1] & ~0x100000) | ((exp + 0x3ff + 52) << 20);
84 Long exp; local
93 k = strtodg(s, sp, fpi, &exp, bits);
94 ULtod((ULong*)d, bits, exp, k);
DstrtorQ.c54 ULtoQ(L, bits, exp, k) ULong *L; ULong *bits; Long exp; int k; in ULtoQ() argument
56 ULtoQ(ULong *L, ULong *bits, Long exp, int k)
70 L[_0] = (bits[3] & ~0x10000) | ((exp + 0x3fff + 112) << 16);
108 Long exp; local
117 k = strtodg(s, sp, fpi, &exp, bits);
118 ULtoQ((ULong*)L, bits, exp, k);
Dstrtof.c43 Long exp; local
52 k = strtodg(s, sp, fpi, &exp, bits);
61 u.L[0] = (bits[0] & 0x7fffff) | ((exp + 0x7f + 23) << 23);
Dstrtodg.c178 (d, fpi, exp, bits, exact, rd, irv) in rvOK() argument
179 U *d; FPI *fpi; Long *exp; ULong *bits; int exact, rd, *irv; in rvOK()
181 (U *d, FPI *fpi, Long *exp, ULong *bits, int exact, int rd, int *irv)
304 *exp = e;
339 (s00, se, fpi, exp, bits) in strtodg() argument
340 CONST char *s00; char **se; FPI *fpi; Long *exp; ULong *bits; in strtodg()
342 (CONST char *s00, char **se, FPI *fpi, Long *exp, ULong *bits)
409 irv = gethex(&s, fpi, exp, &rvb, sign);
534 *exp = fpi->emax + 1;
577 if (rvOK(&rv, fpi, exp, bits, 1, rd, &irv)) {
[all …]
Dgethex.c40 gethex(sp, fpi, exp, bp, sign) in gethex() argument
41 CONST char **sp; FPI *fpi; Long *exp; Bigint **bp; int sign; in gethex()
43 gethex( CONST char **sp, FPI *fpi, Long *exp, Bigint **bp, int sign)
199 *exp = fpi->emin;
289 *exp = fpi->emin;
355 *exp = e;
/bionic/libm/
Dfpmath.h44 unsigned int exp :8; member
57 unsigned int exp :11; member
69 unsigned int exp :15; member
/bionic/libc/stdio/
Dprintf_common.h122 static int exponent(CharT* p0, int exp, int fmtch) { in exponent() argument
125 if (exp < 0) { in exponent()
126 exp = -exp; in exponent()
134 if (exp > 9) { in exponent()
136 *--t = to_char(exp % 10); in exponent()
137 } while ((exp /= 10) > 9); in exponent()
138 *--t = to_char(exp); in exponent()
148 *p++ = to_char(exp); in exponent()

123