Home
last modified time | relevance | path

Searched refs:sign (Results 1 – 25 of 48) sorted by relevance

12

/bionic/libm/upstream-freebsd/lib/msun/src/
Ds_rintl.c60 int ex, sign; in rintl() local
71 sign = expsign >> 15; in rintl()
80 x += shift[sign]; in rintl()
81 x -= shift[sign]; in rintl()
88 return (zero[sign]); in rintl()
De_sqrt.c98 int32_t sign = (int)0x80000000; in __ieee754_sqrt() local
111 if(((ix0&(~sign))|ix1)==0) return x;/* sqrt(+-0) = +-0 */ in __ieee754_sqrt()
130 ix0 += ix0 + ((ix1&sign)>>31); in __ieee754_sqrt()
136 ix0 += ix0 + ((ix1&sign)>>31); in __ieee754_sqrt()
148 ix0 += ix0 + ((ix1&sign)>>31); in __ieee754_sqrt()
153 r = sign; in __ieee754_sqrt()
159 if(((t1&sign)==sign)&&(s1&sign)==0) s0 += 1; in __ieee754_sqrt()
165 ix0 += ix0 + ((ix1&sign)>>31); in __ieee754_sqrt()
185 if ((q&1)==1) ix1 |= sign; in __ieee754_sqrt()
Ds_cbrtf.c36 u_int32_t sign; in cbrtf() local
40 sign=hx&0x80000000; /* sign= sign(x) */ in cbrtf()
41 hx ^=sign; in cbrtf()
51 SET_FLOAT_WORD(t,sign|((high&0x7fffffff)/3+B2)); in cbrtf()
53 SET_FLOAT_WORD(t,sign|(hx/3+B1)); in cbrtf()
Ds_fminf.c49 if (u[0].bits.sign != u[1].bits.sign) in fminf()
50 return (u[u[1].bits.sign].f); in fminf()
Ds_fmaxf.c49 if (u[0].bits.sign != u[1].bits.sign) in fmaxf()
50 return (u[u[0].bits.sign].f); in fmaxf()
Ds_cbrt.c45 u_int32_t sign; in cbrt() local
49 sign=hx&0x80000000; /* sign= sign(x) */ in cbrt()
50 hx ^=sign; in cbrt()
74 INSERT_WORDS(t,sign|((high&0x7fffffff)/3+B2),0); in cbrt()
76 INSERT_WORDS(t,sign|(hx/3+B1),0); in cbrt()
Ds_fmax.c49 if (u[0].bits.sign != u[1].bits.sign) in fmax()
50 return (u[u[0].bits.sign].d); in fmax()
Ds_fmin.c49 if (u[0].bits.sign != u[1].bits.sign) in fmin()
50 return (u[u[1].bits.sign].d); in fmin()
Ds_fmaxl.c51 if (u[0].bits.sign != u[1].bits.sign) in fmaxl()
52 return (u[0].bits.sign ? y : x); in fmaxl()
Ds_fminl.c51 if (u[0].bits.sign != u[1].bits.sign) in fminl()
52 return (u[1].bits.sign ? y : x); in fminl()
Ds_copysignl.c40 ux.bits.sign = uy.bits.sign; in copysignl()
Ds_modfl.c67 *iptr = zero[ux.bits.sign]; in modfl()
73 return (zero[ux.bits.sign]); in modfl()
87 return (zero[ux.bits.sign]); in modfl()
92 return (zero[ux.bits.sign]); in modfl()
Ds_tanl.c60 s = z.bits.sign; in tanl()
61 z.bits.sign = 0; in tanl()
Ds_fabsl.c41 u.bits.sign = 0; in fabsl()
Ds_sinl.c54 s = z.bits.sign; in sinl()
55 z.bits.sign = 0; in sinl()
Ds_remquol.c78 sx = ux.bits.sign; in remquol()
79 sxy = sx ^ uy.bits.sign; in remquol()
80 ux.bits.sign = 0; /* |x| */ in remquol()
81 uy.bits.sign = 0; /* |y| */ in remquol()
157 ux.bits.sign = 0; in remquol()
172 ux.bits.sign ^= sx; in remquol()
De_jnf.c170 int32_t sign; in __ieee754_ynf() local
179 sign = 1; in __ieee754_ynf()
182 sign = 1 - ((n&1)<<1); in __ieee754_ynf()
185 if(n==1) return(sign*__ieee754_y1f(x)); in __ieee754_ynf()
198 if(sign>0) return b; else return -b; in __ieee754_ynf()
Ds_floorl.c65 u.e = u.bits.sign ? -1.0 : 0.0; in floorl()
70 if (u.bits.sign) { in floorl()
87 if (u.bits.sign) { in floorl()
Ds_ceill.c65 u.e = u.bits.sign ? -0.0 : 1.0; in ceill()
70 if (!u.bits.sign) { in ceill()
87 if (!u.bits.sign) { in ceill()
De_sqrtf.c29 int32_t sign = (int)0x80000000; in __ieee754_sqrtf() local
42 if((ix&(~sign))==0) return x;/* sqrt(+-0) = +-0 */ in __ieee754_sqrtf()
/bionic/libm/
Dsignbit.c38 return (u.bits.sign); in __signbit()
46 return (u.bits.sign); in __signbitf()
55 return (u.bits.sign); in __signbitl()
Dfpmath.h46 unsigned int sign :1; member
59 unsigned int sign :1; member
71 unsigned int sign :1; member
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/
Dldtoa.c49 __ldtoa(long double *ld, int mode, int ndigits, int *decpt, int *sign, in __ldtoa() argument
74 *sign = p->ext_sign; in __ldtoa()
113 __ldtoa(long double *ld, int mode, int ndigits, int *decpt, int *sign, in __ldtoa() argument
118 ret = dtoa((double)*ld, mode, ndigits, decpt, sign, rve); in __ldtoa()
Dhdtoa.c71 dorounding(char *s0, int ndigits, int sign, int *decpt) in dorounding() argument
85 if (sign == 0) in dorounding()
89 if (sign != 0) in dorounding()
123 __hdtoa(double d, const char *xdigs, int ndigits, int *decpt, int *sign, in __hdtoa() argument
131 *sign = p->dbl_sign; in __hdtoa()
220 __hldtoa(long double e, const char *xdigs, int ndigits, int *decpt, int *sign, in __hldtoa() argument
228 *sign = p->ext_sign; in __hldtoa()
326 __hldtoa(long double e, const char *xdigs, int ndigits, int *decpt, int *sign, in __hldtoa() argument
329 return (__hdtoa((double)e, xdigs, ndigits, decpt, sign, rve)); in __hldtoa()
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)
159 if (sign)
163 if (!sign)
180 if (!sign)
184 if (sign)
283 if (!sign)
287 if (sign) {
329 up = 1 - sign;
[all …]

12