Home
last modified time | relevance | path

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

123

/bionic/libm/upstream-freebsd/lib/msun/src/
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_rintl.c61 int ex, sign; in rintl() local
72 sign = expsign >> 15; in rintl()
81 x += shift[sign]; in rintl()
82 x -= shift[sign]; in rintl()
89 return (zero[sign]); in rintl()
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_cbrt.c46 u_int32_t sign; in cbrt() local
50 sign=hx&0x80000000; /* sign= sign(x) */ in cbrt()
51 hx ^=sign; in cbrt()
75 INSERT_WORDS(t,sign|((high&0x7fffffff)/3+B2),0); in cbrt()
77 INSERT_WORDS(t,sign|(hx/3+B1),0); in cbrt()
Ds_fminf.c51 if (u[0].bits.sign != u[1].bits.sign) in fminf()
52 return (u[u[1].bits.sign].f); in fminf()
Ds_fmaxf.c51 if (u[0].bits.sign != u[1].bits.sign) in fmaxf()
52 return (u[u[0].bits.sign].f); in fmaxf()
Ds_fmax.c52 if (u[0].bits.sign != u[1].bits.sign) in fmax()
53 return (u[u[0].bits.sign].d); in fmax()
Ds_fmin.c52 if (u[0].bits.sign != u[1].bits.sign) in fmin()
53 return (u[u[1].bits.sign].d); in fmin()
Ds_fmaxl.c53 if (u[0].bits.sign != u[1].bits.sign) in fmaxl()
54 return (u[0].bits.sign ? y : x); in fmaxl()
Ds_fminl.c53 if (u[0].bits.sign != u[1].bits.sign) in fminl()
54 return (u[1].bits.sign ? y : x); in fminl()
Ds_modfl.c69 *iptr = zero[ux.bits.sign]; in modfl()
75 return (zero[ux.bits.sign]); in modfl()
89 return (zero[ux.bits.sign]); in modfl()
94 return (zero[ux.bits.sign]); in modfl()
Ds_copysignl.c42 ux.bits.sign = uy.bits.sign; in copysignl()
De_jnf.c176 int32_t sign; in __ieee754_ynf() local
184 sign = 1; in __ieee754_ynf()
187 sign = 1 - ((n&1)<<1); in __ieee754_ynf()
190 if(n==1) return(sign*__ieee754_y1f(x)); in __ieee754_ynf()
203 if(sign>0) return b; else return -b; in __ieee754_ynf()
Ds_tanl.c62 s = z.bits.sign; in tanl()
63 z.bits.sign = 0; in tanl()
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()
168 ux.bits.sign ^= sx; in remquol()
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()
Ds_sinl.c56 s = z.bits.sign; in sinl()
57 z.bits.sign = 0; in sinl()
De_jn.c219 int32_t sign; in __ieee754_yn() local
230 sign = 1; in __ieee754_yn()
233 sign = 1 - ((n&1)<<1); in __ieee754_yn()
236 if(n==1) return(sign*__ieee754_y1(x)); in __ieee754_yn()
273 if(sign>0) return b; else return -b; in __ieee754_yn()
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/
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()
221 __hldtoa(long double e, const char *xdigs, int ndigits, int *decpt, int *sign, in __hldtoa() argument
230 *sign = p->ext_sign; in __hldtoa()
330 __hldtoa(long double e, const char *xdigs, int ndigits, int *decpt, int *sign, in __hldtoa() argument
333 return (__hdtoa((double)e, xdigs, ndigits, decpt, sign, rve)); in __hldtoa()
Dldtoa.c47 __ldtoa(long double *ld, int mode, int ndigits, int *decpt, int *sign, in __ldtoa() argument
72 *sign = p->ext_sign; in __ldtoa()
112 __ldtoa(long double *ld, int mode, int ndigits, int *decpt, int *sign, in __ldtoa() argument
117 ret = dtoa((double)*ld, mode, ndigits, decpt, sign, rve); in __ldtoa()
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)
156 if (sign)
160 if (!sign)
177 if (!sign)
181 if (sign)
280 if (!sign)
284 if (sign) {
326 up = 1 - sign;
[all …]
/bionic/libm/
Dfpmath.h45 unsigned int sign :1; member
58 unsigned int sign :1; member
70 unsigned int sign :1; member
/bionic/libc/stdio/
Dvfwprintf.cpp49 CHAR_TYPE sign; /* sign prefix (' ', '+', '-', or \0) */ in FUNCTION_NAME() local
167 sign = '\0'; in FUNCTION_NAME()
180 if (!sign) sign = ' '; in FUNCTION_NAME()
204 sign = '+'; in FUNCTION_NAME()
305 sign = '\0'; in FUNCTION_NAME()
315 sign = '-'; in FUNCTION_NAME()
394 if (signflag) sign = '-'; in FUNCTION_NAME()
498 sign = '\0'; in FUNCTION_NAME()
520 sign = '\0'; in FUNCTION_NAME()
580 sign = '\0'; in FUNCTION_NAME()
[all …]
Dvfprintf.cpp49 CHAR_TYPE sign; /* sign prefix (' ', '+', '-', or \0) */ in FUNCTION_NAME() local
178 sign = '\0'; in FUNCTION_NAME()
191 if (!sign) sign = ' '; in FUNCTION_NAME()
215 sign = '+'; in FUNCTION_NAME()
327 sign = '\0'; in FUNCTION_NAME()
337 sign = '-'; in FUNCTION_NAME()
408 if (signflag) sign = '-'; in FUNCTION_NAME()
509 sign = '\0'; in FUNCTION_NAME()
531 sign = '\0'; in FUNCTION_NAME()
591 sign = '\0'; in FUNCTION_NAME()
[all …]

123