Home
last modified time | relevance | path

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

1234

/bionic/libm/upstream-freebsd/lib/msun/src/
De_fmodf.c33 int32_t n,hx,hy,hz,ix,iy,sx,i; in __ieee754_fmodf() local
35 GET_FLOAT_WORD(hx,x); in __ieee754_fmodf()
37 sx = hx&0x80000000; /* sign of x */ in __ieee754_fmodf()
38 hx ^=sx; /* |x| */ in __ieee754_fmodf()
42 if(hy==0||(hx>=0x7f800000)|| /* y=0,or x not finite */ in __ieee754_fmodf()
45 if(hx<hy) return x; /* |x|<|y| return x */ in __ieee754_fmodf()
46 if(hx==hy) in __ieee754_fmodf()
50 if(hx<0x00800000) { /* subnormal x */ in __ieee754_fmodf()
51 for (ix = -126,i=(hx<<8); i>0; i<<=1) ix -=1; in __ieee754_fmodf()
52 } else ix = (hx>>23)-127; in __ieee754_fmodf()
[all …]
Ds_ilogbf.c26 int32_t hx,ix; in ilogbf() local
28 GET_FLOAT_WORD(hx,x); in ilogbf()
29 hx &= 0x7fffffff; in ilogbf()
30 if(hx<0x00800000) { in ilogbf()
31 if(hx==0) in ilogbf()
34 for (ix = -126,hx<<=8; hx>0; hx<<=1) ix -=1; in ilogbf()
37 else if (hx<0x7f800000) return (hx>>23)-127; in ilogbf()
38 else if (hx>0x7f800000) return FP_ILOGBNAN; in ilogbf()
Ds_ilogb.c30 int32_t hx,lx,ix; in ilogb() local
32 EXTRACT_WORDS(hx,lx,x); in ilogb()
33 hx &= 0x7fffffff; in ilogb()
34 if(hx<0x00100000) { in ilogb()
35 if((hx|lx)==0) in ilogb()
38 if(hx==0) { in ilogb()
41 for (ix = -1022,hx<<=11; hx>0; hx<<=1) ix -=1; in ilogb()
45 else if (hx<0x7ff00000) return (hx>>20)-1023; in ilogb()
46 else if (hx>0x7ff00000 || lx!=0) return FP_ILOGBNAN; in ilogb()
Ds_remquof.c32 int32_t n,hx,hy,hz,ix,iy,sx,i; in remquof() local
35 GET_FLOAT_WORD(hx,x); in remquof()
37 sxy = (hx ^ hy) & 0x80000000; in remquof()
38 sx = hx&0x80000000; /* sign of x */ in remquof()
39 hx ^=sx; /* |x| */ in remquof()
43 if(hy==0||hx>=0x7f800000||hy>0x7f800000) /* y=0,NaN;or x not finite */ in remquof()
45 if(hx<hy) { in remquof()
48 } else if(hx==hy) { in remquof()
54 if(hx<0x00800000) { /* subnormal x */ in remquof()
55 for (ix = -126,i=(hx<<8); i>0; i<<=1) ix -=1; in remquof()
[all …]
De_fmod.c31 int32_t n,hx,hy,hz,ix,iy,sx,i; in __ieee754_fmod() local
34 EXTRACT_WORDS(hx,lx,x); in __ieee754_fmod()
36 sx = hx&0x80000000; /* sign of x */ in __ieee754_fmod()
37 hx ^=sx; /* |x| */ in __ieee754_fmod()
41 if((hy|ly)==0||(hx>=0x7ff00000)|| /* y=0,or x not finite */ in __ieee754_fmod()
44 if(hx<=hy) { in __ieee754_fmod()
45 if((hx<hy)||(lx<ly)) return x; /* |x|<|y| return x */ in __ieee754_fmod()
51 if(hx<0x00100000) { /* subnormal x */ in __ieee754_fmod()
52 if(hx==0) { in __ieee754_fmod()
55 for (ix = -1022,i=(hx<<11); i>0; i<<=1) ix -=1; in __ieee754_fmod()
[all …]
Ds_remquo.c34 int32_t n,hx,hy,hz,ix,iy,sx,i; in remquo() local
37 EXTRACT_WORDS(hx,lx,x); in remquo()
39 sxy = (hx ^ hy) & 0x80000000; in remquo()
40 sx = hx&0x80000000; /* sign of x */ in remquo()
41 hx ^=sx; /* |x| */ in remquo()
45 if((hy|ly)==0||(hx>=0x7ff00000)|| /* y=0,or x not finite */ in remquo()
48 if(hx<=hy) { in remquo()
49 if((hx<hy)||(lx<ly)) { in remquo()
60 if(hx<0x00100000) { /* subnormal x */ in remquo()
61 if(hx==0) { in remquo()
[all …]
Ds_nextafterf.c26 int32_t hx,hy,ix,iy; in nextafterf() local
28 GET_FLOAT_WORD(hx,x); in nextafterf()
30 ix = hx&0x7fffffff; /* |x| */ in nextafterf()
42 if(hx>=0) { /* x > 0 */ in nextafterf()
43 if(hx>hy) { /* x > y, x -= ulp */ in nextafterf()
44 hx -= 1; in nextafterf()
46 hx += 1; in nextafterf()
49 if(hy>=0||hx>hy){ /* x < y, x -= ulp */ in nextafterf()
50 hx -= 1; in nextafterf()
52 hx += 1; in nextafterf()
[all …]
De_log2f.c34 int32_t i,k,hx; in __ieee754_log2f() local
36 GET_FLOAT_WORD(hx,x); in __ieee754_log2f()
39 if (hx < 0x00800000) { /* x < 2**-126 */ in __ieee754_log2f()
40 if ((hx&0x7fffffff)==0) in __ieee754_log2f()
42 if (hx<0) return (x-x)/zero; /* log(-#) = NaN */ in __ieee754_log2f()
44 GET_FLOAT_WORD(hx,x); in __ieee754_log2f()
46 if (hx >= 0x7f800000) return x+x; in __ieee754_log2f()
47 if (hx == 0x3f800000) in __ieee754_log2f()
49 k += (hx>>23)-127; in __ieee754_log2f()
50 hx &= 0x007fffff; in __ieee754_log2f()
[all …]
Ds_frexpf.c28 int32_t hx,ix; in frexpf() local
29 GET_FLOAT_WORD(hx,x); in frexpf()
30 ix = 0x7fffffff&hx; in frexpf()
35 GET_FLOAT_WORD(hx,x); in frexpf()
36 ix = hx&0x7fffffff; in frexpf()
40 hx = (hx&0x807fffff)|0x3f000000; in frexpf()
41 SET_FLOAT_WORD(x,hx); in frexpf()
Ds_nextafter.c32 int32_t hx,hy,ix,iy; in nextafter() local
35 EXTRACT_WORDS(hx,lx,x); in nextafter()
37 ix = hx&0x7fffffff; /* |x| */ in nextafter()
49 if(hx>=0) { /* x > 0 */ in nextafter()
50 if(hx>hy||((hx==hy)&&(lx>ly))) { /* x > y, x -= ulp */ in nextafter()
51 if(lx==0) hx -= 1; in nextafter()
55 if(lx==0) hx += 1; in nextafter()
58 if(hy>=0||hx>hy||((hx==hy)&&(lx>ly))){/* x < y, x -= ulp */ in nextafter()
59 if(lx==0) hx -= 1; in nextafter()
63 if(lx==0) hx += 1; in nextafter()
[all …]
De_log10f.c36 int32_t i,k,hx; in __ieee754_log10f() local
38 GET_FLOAT_WORD(hx,x); in __ieee754_log10f()
41 if (hx < 0x00800000) { /* x < 2**-126 */ in __ieee754_log10f()
42 if ((hx&0x7fffffff)==0) in __ieee754_log10f()
44 if (hx<0) return (x-x)/zero; /* log(-#) = NaN */ in __ieee754_log10f()
46 GET_FLOAT_WORD(hx,x); in __ieee754_log10f()
48 if (hx >= 0x7f800000) return x+x; in __ieee754_log10f()
49 if (hx == 0x3f800000) in __ieee754_log10f()
51 k += (hx>>23)-127; in __ieee754_log10f()
52 hx &= 0x007fffff; in __ieee754_log10f()
[all …]
Ds_frexp.c37 int32_t hx, ix, lx; in frexp() local
38 EXTRACT_WORDS(hx,lx,x); in frexp()
39 ix = 0x7fffffff&hx; in frexp()
44 GET_HIGH_WORD(hx,x); in frexp()
45 ix = hx&0x7fffffff; in frexp()
49 hx = (hx&0x800fffff)|0x3fe00000; in frexp()
50 SET_HIGH_WORD(x,hx); in frexp()
De_log2.c42 int32_t i,k,hx; in __ieee754_log2() local
45 EXTRACT_WORDS(hx,lx,x); in __ieee754_log2()
48 if (hx < 0x00100000) { /* x < 2**-1022 */ in __ieee754_log2()
49 if (((hx&0x7fffffff)|lx)==0) in __ieee754_log2()
51 if (hx<0) return (x-x)/zero; /* log(-#) = NaN */ in __ieee754_log2()
53 GET_HIGH_WORD(hx,x); in __ieee754_log2()
55 if (hx >= 0x7ff00000) return x+x; in __ieee754_log2()
56 if (hx == 0x3ff00000 && lx == 0) in __ieee754_log2()
58 k += (hx>>20)-1023; in __ieee754_log2()
59 hx &= 0x000fffff; in __ieee754_log2()
[all …]
De_remainderf.c28 int32_t hx,hp; in __ieee754_remainderf() local
32 GET_FLOAT_WORD(hx,x); in __ieee754_remainderf()
34 sx = hx&0x80000000; in __ieee754_remainderf()
36 hx &= 0x7fffffff; in __ieee754_remainderf()
40 if((hx>=0x7f800000)|| /* x not finite */ in __ieee754_remainderf()
46 if ((hx-hp)==0) return zero*x; in __ieee754_remainderf()
61 GET_FLOAT_WORD(hx,x); in __ieee754_remainderf()
62 if ((hx&0x7fffffff)==0) hx = 0; in __ieee754_remainderf()
63 SET_FLOAT_WORD(x,hx^sx); in __ieee754_remainderf()
De_log10.c42 int32_t i,k,hx; in __ieee754_log10() local
45 EXTRACT_WORDS(hx,lx,x); in __ieee754_log10()
48 if (hx < 0x00100000) { /* x < 2**-1022 */ in __ieee754_log10()
49 if (((hx&0x7fffffff)|lx)==0) in __ieee754_log10()
51 if (hx<0) return (x-x)/zero; /* log(-#) = NaN */ in __ieee754_log10()
53 GET_HIGH_WORD(hx,x); in __ieee754_log10()
55 if (hx >= 0x7ff00000) return x+x; in __ieee754_log10()
56 if (hx == 0x3ff00000 && lx == 0) in __ieee754_log10()
58 k += (hx>>20)-1023; in __ieee754_log10()
59 hx &= 0x000fffff; in __ieee754_log10()
[all …]
De_acoshf.c30 int32_t hx; in __ieee754_acoshf() local
31 GET_FLOAT_WORD(hx,x); in __ieee754_acoshf()
32 if(hx<0x3f800000) { /* x < 1 */ in __ieee754_acoshf()
34 } else if(hx >=0x4d800000) { /* x > 2**28 */ in __ieee754_acoshf()
35 if(hx >=0x7f800000) { /* x is inf of NaN */ in __ieee754_acoshf()
39 } else if (hx==0x3f800000) { in __ieee754_acoshf()
41 } else if (hx > 0x40000000) { /* 2**28 > x > 2 */ in __ieee754_acoshf()
Ds_nexttowardf.c28 int32_t hx,ix; in nexttowardf() local
30 GET_FLOAT_WORD(hx,x); in nexttowardf()
31 ix = hx&0x7fffffff; /* |x| */ in nexttowardf()
44 if(hx>=0 ^ x < y) /* x -= ulp */ in nexttowardf()
45 hx -= 1; in nexttowardf()
47 hx += 1; in nexttowardf()
48 ix = hx&0x7f800000; in nexttowardf()
53 SET_FLOAT_WORD(x,hx); in nexttowardf()
57 SET_FLOAT_WORD(x,hx); in nexttowardf()
De_acosh.c43 int32_t hx; in __ieee754_acosh() local
45 EXTRACT_WORDS(hx,lx,x); in __ieee754_acosh()
46 if(hx<0x3ff00000) { /* x < 1 */ in __ieee754_acosh()
48 } else if(hx >=0x41b00000) { /* x > 2**28 */ in __ieee754_acosh()
49 if(hx >=0x7ff00000) { /* x is inf of NaN */ in __ieee754_acosh()
53 } else if(((hx-0x3ff00000)|lx)==0) { in __ieee754_acosh()
55 } else if (hx > 0x40000000) { /* 2**28 > x > 2 */ in __ieee754_acosh()
De_remainder.c37 int32_t hx,hp; in __ieee754_remainder() local
41 EXTRACT_WORDS(hx,lx,x); in __ieee754_remainder()
43 sx = hx&0x80000000; in __ieee754_remainder()
45 hx &= 0x7fffffff; in __ieee754_remainder()
49 if((hx>=0x7ff00000)|| /* x not finite */ in __ieee754_remainder()
56 if (((hx-hp)|(lx-lp))==0) return zero*x; in __ieee754_remainder()
71 GET_HIGH_WORD(hx,x); in __ieee754_remainder()
72 if ((hx&0x7fffffff)==0) hx = 0; in __ieee754_remainder()
73 SET_HIGH_WORD(x,hx^sx); in __ieee754_remainder()
De_log.c89 int32_t k,hx,i,j; in __ieee754_log() local
92 EXTRACT_WORDS(hx,lx,x); in __ieee754_log()
95 if (hx < 0x00100000) { /* x < 2**-1022 */ in __ieee754_log()
96 if (((hx&0x7fffffff)|lx)==0) in __ieee754_log()
98 if (hx<0) return (x-x)/zero; /* log(-#) = NaN */ in __ieee754_log()
100 GET_HIGH_WORD(hx,x); in __ieee754_log()
102 if (hx >= 0x7ff00000) return x+x; in __ieee754_log()
103 k += (hx>>20)-1023; in __ieee754_log()
104 hx &= 0x000fffff; in __ieee754_log()
105 i = (hx+0x95f64)&0x100000; in __ieee754_log()
[all …]
Ds_cbrtf.c35 int32_t hx; in cbrtf() local
39 GET_FLOAT_WORD(hx,x); in cbrtf()
40 sign=hx&0x80000000; /* sign= sign(x) */ in cbrtf()
41 hx ^=sign; in cbrtf()
42 if(hx>=0x7f800000) return(x+x); /* cbrt(NaN,INF) is itself */ in cbrtf()
45 if(hx<0x00800000) { /* zero or subnormal? */ in cbrtf()
46 if(hx==0) in cbrtf()
53 SET_FLOAT_WORD(t,sign|(hx/3+B1)); in cbrtf()
Ds_nexttoward.c37 int32_t hx,ix; in nexttoward() local
40 EXTRACT_WORDS(hx,lx,x); in nexttoward()
41 ix = hx&0x7fffffff; /* |x| */ in nexttoward()
54 if(hx>0.0 ^ x < y) { /* x -= ulp */ in nexttoward()
55 if(lx==0) hx -= 1; in nexttoward()
59 if(lx==0) hx += 1; in nexttoward()
61 ix = hx&0x7ff00000; in nexttoward()
66 INSERT_WORDS(x,hx,lx); in nexttoward()
70 INSERT_WORDS(x,hx,lx); in nexttoward()
Ds_scalbn.c39 int32_t k,hx,lx; in scalbn() local
40 EXTRACT_WORDS(hx,lx,x); in scalbn()
41 k = (hx&0x7ff00000)>>20; /* extract exponent */ in scalbn()
43 if ((lx|(hx&0x7fffffff))==0) return x; /* +-0 */ in scalbn()
45 GET_HIGH_WORD(hx,x); in scalbn()
46 k = ((hx&0x7ff00000)>>20) - 54; in scalbn()
53 {SET_HIGH_WORD(x,(hx&0x800fffff)|(k<<20)); return x;} in scalbn()
59 SET_HIGH_WORD(x,(hx&0x800fffff)|(k<<20)); in scalbn()
Ds_tanf.c40 int32_t n, hx, ix; in tanf() local
42 GET_FLOAT_WORD(hx,x); in tanf()
43 ix = hx & 0x7fffffff; in tanf()
52 return __kernel_tandf(x + (hx>0 ? -t1pio2 : t1pio2), -1); in tanf()
54 return __kernel_tandf(x + (hx>0 ? -t2pio2 : t2pio2), 1); in tanf()
58 return __kernel_tandf(x + (hx>0 ? -t3pio2 : t3pio2), -1); in tanf()
60 return __kernel_tandf(x + (hx>0 ? -t4pio2 : t4pio2), 1); in tanf()
Ds_cexpf.c43 uint32_t hx, hy; in cexpf() local
54 GET_FLOAT_WORD(hx, x); in cexpf()
56 if ((hx & 0x7fffffff) == 0) in cexpf()
60 if ((hx & 0x7fffffff) != 0x7f800000) { in cexpf()
63 } else if (hx & 0x80000000) { in cexpf()
72 if (hx >= exp_ovfl && hx <= cexp_ovfl) { in cexpf()

1234