Home
last modified time | relevance | path

Searched refs:hx (Results 1 – 12 of 12) sorted by relevance

/device/google/contexthub/firmware/lib/libm/
Def_fmod.c37 __int32_t n,hx,hy,hz,ix,iy,sx,i; local
39 GET_FLOAT_WORD(hx,x);
41 sx = hx&0x80000000; /* sign of x */
42 hx ^=sx; /* |x| */
47 !FLT_UWORD_IS_FINITE(hx)||
50 if(hx<hy) return x; /* |x|<|y| return x */
51 if(hx==hy)
57 if(FLT_UWORD_IS_SUBNORMAL(hx)) { /* subnormal x */
58 for (ix = -126,i=(hx<<8); i>0; i<<=1) ix -=1;
59 } else ix = (hx>>23)-127;
[all …]
Def_exp.c51 __uint32_t hx; local
55 hx = sx & 0x7fffffff; /* high word of |x| */
58 if(FLT_UWORD_IS_NAN(hx))
60 if(FLT_UWORD_IS_INFINITE(hx))
64 if(sx < 0 && hx > FLT_UWORD_LOG_MIN)
68 if(hx > 0x3eb17218) { /* if |x| > 0.5 ln2 */
69 if(hx < 0x3F851592) { /* and |x| < 1.5 ln2 */
79 else if(hx < 0x31800000) { /* when |x|<2**-28 */
Dsf_scalbn.c44 __uint32_t hx; local
47 hx = ix&0x7fffffff;
48 k = hx>>23; /* extract exponent */
49 if (FLT_UWORD_IS_ZERO(hx))
51 if (!FLT_UWORD_IS_FINITE(hx))
53 if (FLT_UWORD_IS_SUBNORMAL(hx)) {
Def_atan2.c39 __int32_t k,m,hx,hy,ix,iy; local
41 GET_FLOAT_WORD(hx,x);
42 ix = hx&0x7fffffff;
48 if(hx==0x3f800000) return atanf(y); /* x=1.0 */
49 m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */
87 else if(hx<0&&k<-60) z=0.0; /* |y|/x < -2**60 */
Def_pow.c69 __int32_t hx,hy,ix,iy,is; local
71 GET_FLOAT_WORD(hx,x);
73 ix = hx&0x7fffffff; iy = hy&0x7fffffff;
91 if(hx<0) {
114 if(hx>=0) /* x >= +0 */
123 if(hx<0) {
133 if(((((__uint32_t)hx>>31)-1)|yisint)==0) return (x-x)/(x-x);
204 if(((((__uint32_t)hx>>31)-1)|(yisint-1))==0)
Def_rem_pio2.c107 __int32_t i,j,n,ix,hx; local
110 GET_FLOAT_WORD(hx,x);
111 ix = hx&0x7fffffff;
115 if(hx>0) {
171 if(hx<0) {y[0] = -y[0]; y[1] = -y[1]; return -n;}
191 if(hx<0) {y[0] = -y[0]; y[1] = -y[1]; return -n;}
Def_sqrt.c32 __uint32_t r,hx; local
36 hx = ix&0x7fffffff;
39 if(!FLT_UWORD_IS_FINITE(hx))
43 if(FLT_UWORD_IS_ZERO(hx)) return x;/* sqrt(+-0) = +-0 */
48 if(FLT_UWORD_IS_SUBNORMAL(hx)) { /* subnormal x */
Dsf_atan.c75 __int32_t ix,hx,id; local
77 GET_FLOAT_WORD(hx,x);
78 ix = hx&0x7fffffff;
82 if(hx>0) return atanhi[3]+atanlo[3];
113 return (hx<0)? -z:z;
Def_asin.c48 __int32_t hx,ix; local
49 GET_FLOAT_WORD(hx,x);
50 ix = hx&0x7fffffff;
87 if(hx>0) return t; else return -t;
/device/google/contexthub/firmware/external/freebsd/lib/msun/src/
De_expf.c50 u_int32_t hx; in __ieee754_expf() local
52 GET_FLOAT_WORD(hx,x); in __ieee754_expf()
53 xsb = (hx>>31)&1; /* sign bit of x */ in __ieee754_expf()
54 hx &= 0x7fffffff; /* high word of |x| */ in __ieee754_expf()
57 if(hx >= 0x42b17218) { /* if |x|>=88.721... */ in __ieee754_expf()
58 if(hx>0x7f800000) in __ieee754_expf()
60 if(hx==0x7f800000) in __ieee754_expf()
67 if(hx > 0x3eb17218) { /* if |x| > 0.5 ln2 */ in __ieee754_expf()
68 if(hx < 0x3F851592) { /* and |x| < 1.5 ln2 */ in __ieee754_expf()
78 else if(hx < 0x39000000) { /* when |x|<2**-14 */ in __ieee754_expf()
De_atan2f.c36 int32_t k,m,hx,hy,ix,iy; in __ieee754_atan2f() local
38 GET_FLOAT_WORD(hx,x); in __ieee754_atan2f()
39 ix = hx&0x7fffffff; in __ieee754_atan2f()
45 if(hx==0x3f800000) return atanf(y); /* x=1.0 */ in __ieee754_atan2f()
46 m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */ in __ieee754_atan2f()
87 else if(k<-26&&hx<0) z=0.0; /* 0 > |y|/x > -2**-26 */ in __ieee754_atan2f()
Ds_atanf.c52 int32_t ix,hx,id; in atanf() local
54 GET_FLOAT_WORD(hx,x); in atanf()
55 ix = hx&0x7fffffff; in atanf()
59 if(hx>0) return atanhi[3]+*(volatile float *)&atanlo[3]; in atanf()
90 return (hx<0)? -z:z; in atanf()