HomeSort by: relevance | last modified time | path
    Searched refs:hx (Results 1 - 25 of 105) sorted by relevancy

1 2 3 4 5

  /src/lib/libm/src/
s_isnan.c 29 int32_t hx,lx; local in function:isnan
30 EXTRACT_WORDS(hx,lx,x);
31 hx &= 0x7fffffff;
32 hx |= (u_int32_t)(lx|(-lx))>>31;
33 hx = 0x7ff00000 - hx;
34 return (int)((u_int32_t)(hx))>>31;
s_isinf.c 22 int32_t hx,lx; local in function:isinf
23 EXTRACT_WORDS(hx,lx,x);
24 hx &= 0x7fffffff;
25 hx ^= 0x7ff00000;
26 hx |= lx;
27 return (hx == 0);
e_fmodf.c 35 int32_t n,hx,hy,hz,ix,iy,sx,i; local in function:__ieee754_fmodf
37 GET_FLOAT_WORD(hx,x);
39 sx = hx&0x80000000; /* sign of x */
40 hx ^=sx; /* |x| */
44 if(hy==0||(hx>=0x7f800000)|| /* y=0,or x not finite */
47 if(hx<hy) return x; /* |x|<|y| return x */
48 if(hx==hy)
52 if(hx<0x00800000) { /* subnormal x */
53 for (ix = -126,i=(hx<<8); i>0; i<<=1) ix -=1;
54 } else ix = (hx>>23)-127
    [all...]
s_ilogbf.c 32 int32_t hx, ix; local in function:ilogbf
34 GET_FLOAT_WORD(hx, x);
35 hx &= 0x7fffffff;
36 if (hx < 0x00800000) {
37 if (hx == 0) {
41 for (ix = -126, hx <<= 8; hx > 0; hx <<= 1) ix -= 1;
45 if (hx < 0x7f800000) {
46 return (hx >> 23) - 127
    [all...]
s_nextafterf.c 27 int32_t hx,hy,ix,iy; local in function:nextafterf
29 GET_FLOAT_WORD(hx,x);
31 ix = hx&0x7fffffff; /* |x| */
43 if(hx>=0) { /* x > 0 */
44 if(hx>hy) { /* x > y, x -= ulp */
45 hx -= 1;
47 hx += 1;
50 if(hy>=0||hx>hy){ /* x < y, x -= ulp */
51 hx -= 1;
53 hx += 1
    [all...]
s_finite.c 32 int32_t hx; local in function:__weak_alias
33 GET_HIGH_WORD(hx,x);
34 return (int)((u_int32_t)((hx&0x7fffffff)-0x7ff00000)>>31);
s_frexp.c 41 int32_t hx, ix, lx; local in function:frexp
42 EXTRACT_WORDS(hx,lx,x);
43 ix = 0x7fffffff&hx;
48 GET_HIGH_WORD(hx,x);
49 ix = hx&0x7fffffff;
53 hx = (hx&0x800fffff)|0x3fe00000;
54 SET_HIGH_WORD(x,hx);
s_frexpf.c 30 int32_t hx,ix; local in function:frexpf
31 GET_FLOAT_WORD(hx,x);
32 ix = 0x7fffffff&hx;
37 GET_FLOAT_WORD(hx,x);
38 ix = hx&0x7fffffff;
42 hx = (hx&0x807fffff)|0x3f000000;
43 SET_FLOAT_WORD(x,hx);
e_log10.c 66 int32_t i,k,hx; local in function:__ieee754_log10
69 EXTRACT_WORDS(hx,lx,x);
72 if (hx < 0x00100000) { /* x < 2**-1022 */
73 if (((hx&0x7fffffff)|lx)==0)
75 if (hx<0) return (x-x)/zero; /* log(-#) = NaN */
77 GET_HIGH_WORD(hx,x);
79 if (hx >= 0x7ff00000) return x+x;
80 k += (hx>>20)-1023;
82 hx = (hx&0x000fffff)|((0x3ff-i)<<20)
    [all...]
e_log10f.c 36 int32_t i,k,hx; local in function:__ieee754_log10f
38 GET_FLOAT_WORD(hx,x);
41 if (hx < 0x00800000) { /* x < 2**-126 */
42 if ((hx&0x7fffffff)==0)
44 if (hx<0) return (x-x)/zero; /* log(-#) = NaN */
46 GET_FLOAT_WORD(hx,x);
48 if (hx >= 0x7f800000) return x+x;
49 k += (hx>>23)-127;
51 hx = (hx&0x007fffff)|((0x7f-i)<<23)
    [all...]
s_ilogb.c 39 int32_t hx, lx, ix; local in function:__strong_alias
41 GET_HIGH_WORD(hx, x);
42 hx &= 0x7fffffff;
43 if (hx < 0x00100000) {
45 if ((hx | lx) == 0) {
49 if (hx == 0) {
52 for (ix = -1022, hx <<= 11; hx > 0; hx <<= 1) ix -= 1;
57 if (hx < 0x7ff00000)
    [all...]
s_remquof.c 37 int32_t n,hx,hy,hz,ix,iy,sx,i; local in function:remquof
40 GET_FLOAT_WORD(hx,x);
42 sxy = (hx ^ hy) & 0x80000000;
43 sx = hx&0x80000000; /* sign of x */
44 hx ^=sx; /* |x| */
48 if(hy==0||hx>=0x7f800000||hy>0x7f800000) /* y=0,NaN;or x not finite */
50 if(hx<hy) {
53 } else if(hx==hy) {
59 if(hx<0x00800000) { /* subnormal x */
60 for (ix = -126,i=(hx<<8); i>0; i<<=1) ix -=1
    [all...]
e_acoshf.c 32 int32_t hx; local in function:__ieee754_acoshf
33 GET_FLOAT_WORD(hx,x);
34 if(hx<0x3f800000) { /* x < 1 */
36 } else if(hx >=0x4d800000) { /* x > 2**28 */
37 if(hx >=0x7f800000) { /* x is inf of NaN */
41 } else if (hx==0x3f800000) {
43 } else if (hx > 0x40000000) { /* 2**28 > x > 2 */
s_remquo.c 39 int32_t n,hx,hy,hz,ix,iy,sx,i; local in function:remquo
42 EXTRACT_WORDS(hx,lx,x);
44 sxy = (hx ^ hy) & 0x80000000;
45 sx = hx&0x80000000; /* sign of x */
46 hx ^=sx; /* |x| */
50 if((hy|ly)==0||(hx>=0x7ff00000)|| /* y=0,or x not finite */
53 if(hx<=hy) {
54 if((hx<hy)||(lx<ly)) {
65 if(hx<0x00100000) { /* subnormal x */
66 if(hx==0)
    [all...]
s_nextafter.c 37 int32_t hx,hy,ix,iy; local in function:__strong_alias
40 EXTRACT_WORDS(hx,lx,x);
42 ix = hx&0x7fffffff; /* |x| */
54 if(hx>=0) { /* x > 0 */
55 if(hx>hy||((hx==hy)&&(lx>ly))) { /* x > y, x -= ulp */
56 if(lx==0) hx -= 1;
60 if(lx==0) hx += 1;
63 if(hy>=0||hx>hy||((hx==hy)&&(lx>ly))){/* x < y, x -= ulp *
    [all...]
e_fmod.c 36 int32_t n,hx,hy,hz,ix,iy,sx,i; local in function:__strong_alias
39 EXTRACT_WORDS(hx,lx,x);
41 sx = hx&0x80000000; /* sign of x */
42 hx ^=sx; /* |x| */
46 if((hy|ly)==0||(hx>=0x7ff00000)|| /* y=0,or x not finite */
49 if(hx<=hy) {
50 if((hx<hy)||(lx<ly)) return x; /* |x|<|y| return x */
56 if(hx<0x00100000) { /* subnormal x */
57 if(hx==0) {
60 for (ix = -1022,i=(hx<<11); i>0; i<<=1) ix -=1
    [all...]
e_acosh.c 43 int32_t hx; local in function:__ieee754_acosh
45 EXTRACT_WORDS(hx,lx,x);
46 if(hx<0x3ff00000) { /* x < 1 */
48 } else if(hx >=0x41b00000) { /* x > 2**28 */
49 if(hx >=0x7ff00000) { /* x is inf of NaN */
53 } else if(((hx-0x3ff00000)|lx)==0) {
55 } else if (hx > 0x40000000) { /* 2**28 > x > 2 */
e_log2.c 39 int32_t k,hx,i,j; local in function:__ieee754_log2
42 EXTRACT_WORDS(hx,lx,x);
45 if (hx < 0x00100000) { /* x < 2**-1022 */
46 if (((hx&0x7fffffff)|lx)==0)
48 if (hx<0) return (x-x)/zero; /* log(-#) = NaN */
50 GET_HIGH_WORD(hx,x);
52 if (hx >= 0x7ff00000) return x+x;
53 k += (hx>>20)-1023;
54 hx &= 0x000fffff;
55 i = (hx+0x95f64)&0x100000
    [all...]
s_copysign.c 35 u_int32_t hx,hy; local in function:__strong_alias
36 GET_HIGH_WORD(hx,x);
38 SET_HIGH_WORD(x,(hx&0x7fffffff)|(hy&0x80000000));
s_cbrt.c 44 int32_t hx; local in function:cbrt
49 GET_HIGH_WORD(hx,x);
50 sign=hx&0x80000000; /* sign= sign(x) */
51 hx ^=sign;
52 if(hx>=0x7ff00000) return(x+x); /* cbrt(NaN,INF) is itself */
54 if((hx|low)==0)
57 SET_HIGH_WORD(x,hx); /* x <- |x| */
59 if(hx<0x00100000) /* subnormal number */
64 SET_HIGH_WORD(t,hx/3+B1);
s_cbrtf.c 42 int32_t hx; local in function:cbrtf
46 GET_FLOAT_WORD(hx,x);
47 sign=hx&0x80000000; /* sign= sign(x) */
48 hx ^=sign;
49 if(hx>=0x7f800000) return(x+x); /* cbrt(NaN,INF) is itself */
50 if(hx==0)
53 SET_FLOAT_WORD(x,hx); /* x <- |x| */
55 if(hx<0x00800000) /* subnormal number */
60 SET_FLOAT_WORD(t,hx/3+B1);
s_nexttowardf.c 57 int32_t hx,ix; local in function:nexttowardf
60 GET_FLOAT_WORD(hx,x);
61 ix = hx&0x7fffffff; /* |x| */
77 if((hx >= 0) ^ (x < y)) /* x -= ulp */
78 hx -= 1;
80 hx += 1;
81 ix = hx&0x7f800000;
86 SET_FLOAT_WORD(x,hx);
90 SET_FLOAT_WORD(x,hx);
s_nexttoward.c 50 int32_t hx, ix; local in function:nexttoward
53 EXTRACT_WORDS(hx, lx, x);
54 ix = hx & 0x7fffffff; /* |x| */
74 if ((hx >= 0) ^ (x < y)) { /* x -= ulp */
75 if (lx == 0) hx -= 1;
79 if (lx == 0) hx += 1;
81 ix = hx & 0x7ff00000;
86 INSERT_WORDS(y, hx, lx);
90 INSERT_WORDS(x, hx, lx);
e_remainder.c 36 int32_t hx,hp; local in function:__ieee754_remainder
40 EXTRACT_WORDS(hx,lx,x);
42 sx = hx&0x80000000;
44 hx &= 0x7fffffff;
48 if((hx>=0x7ff00000)|| /* x not finite */
55 if (((hx-hp)|(lx-lp))==0) return zero*x;
70 GET_HIGH_WORD(hx,x);
71 SET_HIGH_WORD(x,hx^sx);
e_remainderf.c 30 int32_t hx,hp; local in function:__ieee754_remainderf
34 GET_FLOAT_WORD(hx,x);
36 sx = hx&0x80000000;
38 hx &= 0x7fffffff;
42 if((hx>=0x7f800000)|| /* x not finite */
48 if ((hx-hp)==0) return zero*x;
63 GET_FLOAT_WORD(hx,x);
64 SET_FLOAT_WORD(x,hx^sx);

Completed in 103 milliseconds

1 2 3 4 5