/haiku-fatelf/src/system/libroot/posix/glibc/arch/generic/ |
H A D | s_ilogbf.c | 31 int32_t hx,ix; local 33 GET_FLOAT_WORD(hx,x); 34 hx &= 0x7fffffff; 35 if(hx<0x00800000) { 36 if(hx==0) 39 for (ix = -126,hx<<=8; hx>0; hx<<=1) ix -=1; 42 else if (hx<0x7f800000) return (hx>>2 [all...] |
H A D | s_fpclassify.c | 29 u_int32_t hx, lx; local 32 EXTRACT_WORDS (hx, lx, x); 33 lx |= hx & 0xfffff; 34 hx &= 0x7ff00000; 35 if ((hx | lx) == 0) 37 else if (hx == 0) 39 else if (hx == 0x7ff00000)
|
H A D | s_signbit.c | 28 int32_t hx; local 30 GET_HIGH_WORD (hx, x); 31 return hx & 0x80000000;
|
H A D | s_signbitf.c | 28 int32_t hx; local 30 GET_FLOAT_WORD (hx, x); 31 return hx & 0x80000000;
|
H A D | e_fmodf.c | 42 int32_t n,hx,hy,hz,ix,iy,sx,i; local 44 GET_FLOAT_WORD(hx,x); 46 sx = hx&0x80000000; /* sign of x */ 47 hx ^=sx; /* |x| */ 51 if(hy==0||(hx>=0x7f800000)|| /* y=0,or x not finite */ 54 if(hx<hy) return x; /* |x|<|y| return x */ 55 if(hx==hy) 59 if(hx<0x00800000) { /* subnormal x */ 60 for (ix = -126,i=(hx<<8); i>0; i<<=1) ix -=1; 61 } else ix = (hx>>2 [all...] |
H A D | s_isnan.c | 32 int32_t hx,lx; local 33 EXTRACT_WORDS(hx,lx,x); 34 hx &= 0x7fffffff; 35 hx |= (u_int32_t)(lx|(-lx))>>31; 36 hx = 0x7ff00000 - hx; 37 return (int)(((u_int32_t)hx)>>31);
|
H A D | s_ilogb.c | 35 int32_t hx,lx,ix; local 37 GET_HIGH_WORD(hx,x); 38 hx &= 0x7fffffff; 39 if(hx<0x00100000) { 41 if((hx|lx)==0) 44 if(hx==0) { 47 for (ix = -1022,hx<<=11; hx>0; hx<<=1) ix -=1; 51 else if (hx< [all...] |
H A D | e_gammaf_r.c | 31 int32_t hx; local 33 GET_FLOAT_WORD (hx, x); 35 if ((hx & 0x7fffffff) == 0) 41 if (hx < 0 && (u_int32_t) hx < 0xff800000 && __rintf (x) == x) 47 if (hx == 0xff800000)
|
H A D | s_frexpf.c | 37 int32_t hx,ix; local 38 GET_FLOAT_WORD(hx,x); 39 ix = 0x7fffffff&hx; 44 GET_FLOAT_WORD(hx,x); 45 ix = hx&0x7fffffff; 49 hx = (hx&0x807fffff)|0x3f000000; 50 SET_FLOAT_WORD(x,hx);
|
H A D | e_log10f.c | 47 int32_t i,k,hx; local 49 GET_FLOAT_WORD(hx,x); 52 if (hx < 0x00800000) { /* x < 2**-126 */ 53 if ((hx&0x7fffffff)==0) 55 if (hx<0) return (x-x)/(x-x); /* log(-#) = NaN */ 57 GET_FLOAT_WORD(hx,x); 59 if (hx >= 0x7f800000) return x+x; 60 k += (hx>>23)-127; 62 hx = (hx [all...] |
H A D | s_isinf.c | 22 int32_t hx,lx; local 23 EXTRACT_WORDS(hx,lx,x); 24 lx |= (hx & 0x7fffffff) ^ 0x7ff00000; 26 return ~(lx >> 31) & (hx >> 30);
|
H A D | e_fmod.c | 39 int32_t n,hx,hy,hz,ix,iy,sx,i; local 42 EXTRACT_WORDS(hx,lx,x); 44 sx = hx&0x80000000; /* sign of x */ 45 hx ^=sx; /* |x| */ 49 if((hy|ly)==0||(hx>=0x7ff00000)|| /* y=0,or x not finite */ 52 if(hx<=hy) { 53 if((hx<hy)||(lx<ly)) return x; /* |x|<|y| return x */ 59 if(hx<0x00100000) { /* subnormal x */ 60 if(hx==0) { 63 for (ix = -1022,i=(hx<<1 [all...] |
H A D | e_gamma_r.c | 31 int32_t hx; local 34 EXTRACT_WORDS (hx, lx, x); 36 if (((hx & 0x7fffffff) | lx) == 0) 42 if (hx < 0 && (u_int32_t) hx < 0xfff00000 && __rint (x) == x) 48 if ((unsigned int) hx == 0xfff00000 && lx==0)
|
H A D | s_nextafterf.c | 31 int32_t hx,hy,ix,iy; local 33 GET_FLOAT_WORD(hx,x); 35 ix = hx&0x7fffffff; /* |x| */ 47 if(hx>=0) { /* x > 0 */ 48 if(hx>hy) { /* x > y, x -= ulp */ 49 hx -= 1; 51 hx += 1; 54 if(hy>=0||hx>hy){ /* x < y, x -= ulp */ 55 hx -= 1; 57 hx [all...] |
H A D | s_frexp.c | 44 int32_t hx, ix, lx; local 45 EXTRACT_WORDS(hx,lx,x); 46 ix = 0x7fffffff&hx; 51 GET_HIGH_WORD(hx,x); 52 ix = hx&0x7fffffff; 56 hx = (hx&0x800fffff)|0x3fe00000; 57 SET_HIGH_WORD(x,hx);
|
H A D | s_finite.c | 32 int32_t hx; local 33 GET_HIGH_WORD(hx,x); 34 return (int)((u_int32_t)((hx&0x7fffffff)-0x7ff00000)>>31);
|
H A D | s_nextafter.c | 39 int32_t hx,hy,ix,iy; local 42 EXTRACT_WORDS(hx,lx,x); 44 ix = hx&0x7fffffff; /* |x| */ 56 if(hx>=0) { /* x > 0 */ 57 if(hx>hy||((hx==hy)&&(lx>ly))) { /* x > y, x -= ulp */ 58 if(lx==0) hx -= 1; 62 if(lx==0) hx += 1; 65 if(hy>=0||hx>hy||((hx [all...] |
H A D | e_gammal_r.c | 31 u_int32_t es, hx, lx; local 33 GET_LDOUBLE_WORDS (es, hx, lx, x); 35 if (((es & 0x7fff) | hx | lx) == 0) 41 if (es == 0xffffffff && ((hx & 0x7fffffff) | lx) == 0) 47 if ((es & 0x7fff) == 0x7fff && ((hx & 0x7fffffff) | lx) != 0)
|
/haiku-fatelf/src/system/libroot/posix/glibc/arch/x86_64/ |
H A D | s_nextafterl.c | 39 u_int32_t hx,hy,ix,iy; local 43 GET_LDOUBLE_WORDS(esx,hx,lx,x); 50 if(((ix==0x7fff)&&(((hx&0x7fffffff)|lx)!=0)) || /* x is nan */ 54 if((ix|hx|lx)==0) { /* x == 0 */ 63 if(esx>esy||((esx==esy) && (hx>hy||((hx==hy)&&(lx>ly))))) { 66 if (hx <= 0x80000000) { 68 --hx; 71 hx = hx [all...] |
H A D | s_fpclassifyl.c | 29 u_int32_t ex, hx, lx; local 32 GET_LDOUBLE_WORDS (ex, hx, lx, x); 34 if ((ex | lx | hx) == 0) 36 else if (ex == 0 && (hx & 0x80000000) == 0) 39 retval = ((hx & 0x7fffffff) | lx) != 0 ? FP_NAN : FP_INFINITE;
|
/haiku-fatelf/src/system/libroot/posix/glibc/arch/m68k/ |
H A D | s_nextafterl.c | 40 u_int32_t hx,hy,lx,ly; local 42 GET_LDOUBLE_WORDS(esx,hx,lx,x); 47 if(((ix==0x7fff)&&((hx&0x7fffffff)|lx)!=0) || /* x is nan */ 51 if((ix|hx|lx)==0) { /* x == 0 */ 57 if(esx>esy||((esx==esy) && (hx>hy||((hx==hy)&&(lx>ly))))) { 60 if (ix != 0 && hx == 0x80000000) hx = 0; 61 if (hx==0) esx -= 1; 62 hx [all...] |
H A D | s_fpclassifyl.c | 30 u_int32_t ex, hx, lx; local 33 GET_LDOUBLE_WORDS (ex, hx, lx, x); 35 if ((ex | hx | lx) == 0) 37 else if (ex == 0 && (hx & 0x80000000) == 0) 40 retval = ((hx & 0x7fffffff) | lx) != 0 ? FP_NAN : FP_INFINITE;
|
/haiku-fatelf/src/system/libroot/posix/glibc/arch/x86/ |
H A D | s_nextafterl.c | 39 u_int32_t hx,hy,ix,iy; local 43 GET_LDOUBLE_WORDS(esx,hx,lx,x); 50 if(((ix==0x7fff)&&(((hx&0x7fffffff)|lx)!=0)) || /* x is nan */ 54 if((ix|hx|lx)==0) { /* x == 0 */ 60 if(esx>esy||((esx==esy) && (hx>hy||((hx==hy)&&(lx>ly))))) { 63 if (hx <= 0x80000000) { 65 --hx; 68 hx = hx [all...] |
H A D | s_fpclassifyl.c | 29 u_int32_t ex, hx, lx; local 32 GET_LDOUBLE_WORDS (ex, hx, lx, x); 34 if ((ex | lx | hx) == 0) 36 else if (ex == 0 && (hx & 0x80000000) == 0) 39 retval = ((hx & 0x7fffffff) | lx) != 0 ? FP_NAN : FP_INFINITE;
|
H A D | s_nexttoward.c | 40 int32_t hx,ix,iy; local 43 EXTRACT_WORDS(hx,lx,x); 45 ix = hx&0x7fffffff; /* |x| */ 60 if(hx>=0) { /* x > 0 */ 63 && (((hx<<11)|(lx>>21))>(hy&0x7fffffff) 64 || (((hx<<11)|(lx>>21))==(hy&0x7fffffff) 66 if(lx==0) hx -= 1; 70 if(lx==0) hx += 1; 75 && (((hx<<11)|(lx>>21))>(hy&0x7fffffff) 76 || (((hx<<1 [all...] |