/bionic/libc/bionic/ |
H A D | libc_logging.cpp | 136 * NOTE: Does *not* handle a sign prefix. 240 char sign = '\0'; local 288 sign = c; 371 /* sign extension, if needed */ 391 if (sign != '\0' || prec != -1) { 392 __assert(__FILE__, __LINE__, "sign/precision unsupported");
|
/bionic/libc/tzcode/ |
H A D | strftime.c | 569 char const * sign; local 609 sign = "-"; 611 } else sign = "+"; 612 pt = _add(sign, pt, ptlim, modifier);
|
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/ |
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));
|
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 | 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 | 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...] |
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
H A D | vfprintf.c | 284 char sign; /* sign prefix (' ', '+', '-', or \0) */ local 295 * A: 'sign' holds this value if present; '\0' otherwise 511 sign = '\0'; 522 if (!sign) 523 sign = ' '; 549 sign = '+'; 655 sign = '\0'; 665 sign = '-'; 754 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 = '-'; 732 sign [all...] |
/bionic/libc/upstream-openbsd/lib/libc/time/ |
H A D | wcsftime.c | 461 wchar_t const * sign; local 467 sign = L"-"; 470 sign = L"+"; 471 pt = _add(sign, pt, ptlim);
|
/bionic/libm/ |
H A D | fpmath.h | 46 unsigned int sign :1; member in struct:IEEEf2bits::__anon929 59 unsigned int sign :1; member in struct:IEEEd2bits::__anon930 71 unsigned int sign :1; member in struct:IEEEl2bits::__anon931
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
H A D | e_jn.c | 74 sgn = (n&1)&(hx>>31); /* even n -- 0, odd n -- sign(x) */ 218 int32_t sign; local 227 sign = 1; 230 sign = 1 - ((n&1)<<1); 233 if(n==1) return(sign*__ieee754_y1(x)); 269 if(sign>0) return b; else return -b;
|
H A D | e_jnf.c | 49 sgn = (n&1)&(hx>>31); /* even n -- 0, odd n -- sign(x) */ 170 int32_t sign; local 179 sign = 1; 182 sign = 1 - ((n&1)<<1); 185 if(n==1) return(sign*__ieee754_y1f(x)); 198 if(sign>0) return b; else return -b;
|
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 | e_sqrtf.c | 29 int32_t sign = (int)0x80000000; local 42 if((ix&(~sign))==0) return x;/* sqrt(+-0) = +-0 */
|
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 | 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 | 60 int ex, sign; local 71 sign = expsign >> 15; 80 x += shift[sign]; 81 x -= shift[sign]; 84 * If the result is +-0, then it must have the same sign as x, but 85 * the above calculation doesn't always give this. Fix up the sign. 88 return (zero[sign]);
|
/bionic/tests/ |
H A D | math_test.cpp | 1155 int sign; local 1156 ASSERT_DOUBLE_EQ(log(24.0), gamma_r(5.0, &sign)); 1157 ASSERT_EQ(1, sign); 1165 int sign; local 1166 ASSERT_FLOAT_EQ(logf(24.0f), gammaf_r(5.0f, &sign)); 1167 ASSERT_EQ(1, sign); 1186 int sign; local 1187 ASSERT_DOUBLE_EQ(log(24.0), lgamma_r(5.0, &sign)); 1188 ASSERT_EQ(1, sign); 1192 int sign; local [all...] |