/bionic/libm/upstream-freebsd/lib/msun/src/ |
H A D | s_cbrtf.c | 36 u_int32_t sign; local 40 sign=hx&0x80000000; /* sign= sign(x) */ 41 hx ^=sign; 51 SET_FLOAT_WORD(t,sign|((high&0x7fffffff)/3+B2)); 53 SET_FLOAT_WORD(t,sign|(hx/3+B1));
|
H A D | s_rintl.c | 59 int ex, sign; local 70 sign = expsign >> 15; 79 x += shift[sign]; 80 x -= shift[sign]; 83 * If the result is +-0, then it must have the same sign as x, but 84 * the above calculation doesn't always give this. Fix up the sign. 87 return (zero[sign]);
|
H A D | e_sqrtf.c | 29 int32_t sign = (int)0x80000000; local 42 if((ix&(~sign))==0) return x;/* sqrt(+-0) = +-0 */
|
H A D | e_sqrt.c | 98 int32_t sign = (int)0x80000000; local 111 if(((ix0&(~sign))|ix1)==0) return x;/* sqrt(+-0) = +-0 */ 130 ix0 += ix0 + ((ix1&sign)>>31); 136 ix0 += ix0 + ((ix1&sign)>>31); 148 ix0 += ix0 + ((ix1&sign)>>31); 153 r = sign; 159 if(((t1&sign)==sign)&&(s1&sign)==0) s0 += 1; 165 ix0 += ix0 + ((ix1&sign)>>3 [all...] |
H A D | s_cbrt.c | 45 u_int32_t sign; local 49 sign=hx&0x80000000; /* sign= sign(x) */ 50 hx ^=sign; 74 INSERT_WORDS(t,sign|((high&0x7fffffff)/3+B2),0); 76 INSERT_WORDS(t,sign|(hx/3+B1),0);
|
H A D | e_jn.c | 76 sgn = (n&1)&(hx>>31); /* even n -- 0, odd n -- sign(x) */ 220 int32_t sign; local 231 sign = 1; 234 sign = 1 - ((n&1)<<1); 237 if(n==1) return(sign*__ieee754_y1(x)); 273 if(sign>0) return b; else return -b;
|
H A D | e_jnf.c | 55 sgn = (n&1)&(hx>>31); /* even n -- 0, odd n -- sign(x) */ 176 int32_t sign; local 184 sign = 1; 187 sign = 1 - ((n&1)<<1); 190 if(n==1) return(sign*__ieee754_y1f(x)); 203 if(sign>0) return b; else return -b;
|
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/ |
H A D | ldtoa.c | 49 __ldtoa(long double *ld, int mode, int ndigits, int *decpt, int *sign, argument 70 * gdtoa doesn't know anything about the sign of the number, so 74 *sign = p->ext_sign; 113 __ldtoa(long double *ld, int mode, int ndigits, int *decpt, int *sign, argument 118 ret = dtoa((double)*ld, mode, ndigits, decpt, sign, rve);
|
H A D | hdtoa.c | 71 dorounding(char *s0, int ndigits, int sign, int *decpt) argument 85 if (sign == 0) 89 if (sign != 0) 120 * Outputs: decpt, sign, rve 123 __hdtoa(double d, const char *xdigs, int ndigits, int *decpt, int *sign, argument 131 *sign = p->dbl_sign; 220 __hldtoa(long double e, const char *xdigs, int ndigits, int *decpt, int *sign, argument 228 *sign = p->ext_sign; 326 __hldtoa(long double e, const char *xdigs, int ndigits, int *decpt, int *sign, argument 329 return (__hdtoa((double)e, xdigs, ndigits, decpt, sign, rv [all...] |
H A D | strtod.c | 94 e, e1, esign, i, j, k, nd, nd0, nf, nz, nz0, sign; local 143 sign = nz0 = nz = decpt = 0; 147 sign = 1; 182 switch((i = gethex(&s, &fpi1, &exp, &bb, sign)) & STRTOG_Retmask) { 187 sign = 0; 336 sign = 0; 375 if (sign) { 377 sign = 0; 391 if (sign) { 393 sign [all...] |
H A D | strtodg.c | 348 int j, k, nbits, nd, nd0, nf, nz, nz0, rd, rvbits, rve, rve1, sign; local 379 denorm = sign = nz0 = nz = 0; 385 sign = 1; 392 sign = 0; 412 irv = gethex(&s, fpi, exp, &rvb, sign); 417 sign = 0; 557 rd = 2 - sign; 563 rd = 1 + sign; 837 dsign = delta->sign; 838 delta->sign [all...] |
H A D | gdtoaimp.h | 476 int k, maxwds, sign, wds; member in struct:Bigint 487 #define Bcopy(x,y) memcpy_D2A(&x->sign,&y->sign,y->wds*sizeof(ULong) + 2*sizeof(int)) 489 #define Bcopy(x,y) memcpy(&x->sign,&y->sign,y->wds*sizeof(ULong) + 2*sizeof(int)) 590 int *decpt, int *sign, char **rve));
|
/bionic/libm/ |
H A D | fpmath.h | 46 unsigned int sign :1; member in struct:IEEEf2bits::__anon1051 59 unsigned int sign :1; member in struct:IEEEd2bits::__anon1052 71 unsigned int sign :1; member in struct:IEEEl2bits::__anon1053
|
/bionic/tests/ |
H A D | math_test.cpp | 1147 int sign; local 1148 ASSERT_DOUBLE_EQ(log(24.0), gamma_r(5.0, &sign)); 1149 ASSERT_EQ(1, sign); 1157 int sign; local 1158 ASSERT_FLOAT_EQ(logf(24.0f), gammaf_r(5.0f, &sign)); 1159 ASSERT_EQ(1, sign); 1178 int sign; local 1179 ASSERT_DOUBLE_EQ(log(24.0), lgamma_r(5.0, &sign)); 1180 ASSERT_EQ(1, sign); 1184 int sign; local 1195 int sign; local 1201 int sign; local 1212 int sign; local 1218 int sign; local [all...] |
H A D | math_data_test.h | 89 unsigned sign:1; member in struct:fp_u::__anon1084 100 unsigned sign:1; member in struct:fp_u::__anon1085 111 if (u.bits.sign) { 114 u.bits.sign = 1;
|
/bionic/libc/upstream-openbsd/lib/libc/time/ |
H A D | wcsftime.c | 456 wchar_t const * sign; local 462 sign = L"-"; 465 sign = L"+"; 466 pt = _add(sign, pt, ptlim);
|
/bionic/libc/tzcode/ |
H A D | strftime.c | 536 char const * sign; local 576 sign = "-"; 578 } else sign = "+"; 579 pt = _add(sign, pt, ptlim, modifier);
|
/bionic/libc/bionic/ |
H A D | libc_logging.cpp | 143 * NOTE: Does *not* handle a sign prefix. 247 char sign = '\0'; local 295 sign = c; 378 /* sign extension, if needed */ 398 if (sign != '\0' || prec != -1) { 399 __assert(__FILE__, __LINE__, "sign/precision unsupported");
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
H A D | vfprintf.c | 280 char sign; /* sign prefix (' ', '+', '-', or \0) */ local 291 * A: 'sign' holds this value if present; '\0' otherwise 515 sign = '\0'; 526 if (!sign) 527 sign = ' '; 553 sign = '+'; 664 sign = '\0'; 674 sign = '-'; 763 sign [all...] |
H A D | vfwprintf.c | 289 wchar_t sign; /* sign prefix (' ', '+', '-', or \0) */ local 298 * A: 'sign' holds this value if present; '\0' otherwise 487 sign = '\0'; 498 if (!sign) 499 sign = ' '; 525 sign = '+'; 617 sign = '\0'; 627 sign = '-'; 726 sign [all...] |