Searched defs:sign (Results 1 - 20 of 20) sorted by relevance

/bionic/libm/upstream-freebsd/lib/msun/src/
H A Ds_cbrtf.c36 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 Ds_rintl.c59 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 De_sqrtf.c29 int32_t sign = (int)0x80000000; local
42 if((ix&(~sign))==0) return x;/* sqrt(+-0) = +-0 */
H A De_sqrt.c98 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 Ds_cbrt.c45 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 De_jn.c76 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 De_jnf.c55 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 Dldtoa.c49 __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 Dhdtoa.c71 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 Dstrtod.c94 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 Dstrtodg.c348 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 Dgdtoaimp.h476 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 Dfpmath.h46 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 Dmath_test.cpp1147 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 Dmath_data_test.h89 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 Dwcsftime.c456 wchar_t const * sign; local
462 sign = L"-";
465 sign = L"+";
466 pt = _add(sign, pt, ptlim);
/bionic/libc/tzcode/
H A Dstrftime.c536 char const * sign; local
576 sign = "-";
578 } else sign = "+";
579 pt = _add(sign, pt, ptlim, modifier);
/bionic/libc/bionic/
H A Dlibc_logging.cpp143 * 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 Dvfprintf.c280 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 Dvfwprintf.c289 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...]

Completed in 517 milliseconds