Searched refs:sign (Results 1 - 25 of 50) sorted by relevance

12

/bionic/libm/
H A Dsignbit.c38 return (u.bits.sign);
46 return (u.bits.sign);
55 return (u.bits.sign);
H A Dfpmath.h46 unsigned int sign :1; member in struct:IEEEf2bits::__anon973
59 unsigned int sign :1; member in struct:IEEEd2bits::__anon974
71 unsigned int sign :1; member in struct:IEEEl2bits::__anon975
/bionic/libm/upstream-freebsd/lib/msun/src/
H A Ds_fabsl.c41 u.bits.sign = 0;
H A Ds_copysignl.c40 ux.bits.sign = uy.bits.sign;
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 Ds_fmax.c49 if (u[0].bits.sign != u[1].bits.sign)
50 return (u[u[0].bits.sign].d);
H A Ds_fmaxf.c49 if (u[0].bits.sign != u[1].bits.sign)
50 return (u[u[0].bits.sign].f);
H A Ds_fmaxl.c51 if (u[0].bits.sign != u[1].bits.sign)
52 return (u[0].bits.sign ? y : x);
H A Ds_fmin.c49 if (u[0].bits.sign != u[1].bits.sign)
50 return (u[u[1].bits.sign].d);
H A Ds_fminf.c49 if (u[0].bits.sign != u[1].bits.sign)
50 return (u[u[1].bits.sign].f);
H A Ds_fminl.c51 if (u[0].bits.sign != u[1].bits.sign)
52 return (u[1].bits.sign ? y : x);
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 Ds_modfl.c67 *iptr = zero[ux.bits.sign];
73 return (zero[ux.bits.sign]);
87 return (zero[ux.bits.sign]);
92 return (zero[ux.bits.sign]);
H A Ds_sinl.c54 s = z.bits.sign;
55 z.bits.sign = 0;
H A Ds_tanl.c60 s = z.bits.sign;
61 z.bits.sign = 0;
H A De_sqrtf.c29 int32_t sign = (int)0x80000000; local
42 if((ix&(~sign))==0) return x;/* sqrt(+-0) = +-0 */
H A De_jnf.c49 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 Ds_ceill.c65 u.e = u.bits.sign ? -0.0 : 1.0;
70 if (!u.bits.sign) {
87 if (!u.bits.sign) {
H A Ds_floorl.c65 u.e = u.bits.sign ? -1.0 : 0.0;
70 if (u.bits.sign) {
87 if (u.bits.sign) {
H A Ds_cosl.c59 z.bits.sign = 0;
/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 Dgethex.c40 gethex(sp, fpi, exp, bp, sign)
41 CONST char **sp; FPI *fpi; Long *exp; Bigint **bp; int sign;
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...]

Completed in 144 milliseconds

12