Home
last modified time | relevance | path

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

/bionic/libm/upstream-freebsd/lib/msun/src/
Ds_ceilf.c27 int32_t i0,j0; in ceilf() local
30 GET_FLOAT_WORD(i0,x); in ceilf()
31 j0 = ((i0>>23)&0xff)-0x7f; in ceilf()
35 if(i0<0) {i0=0x80000000;} in ceilf()
36 else if(i0!=0) { i0=0x3f800000;} in ceilf()
40 if((i0&i)==0) return x; /* x is integral */ in ceilf()
42 if(i0>0) i0 += (0x00800000)>>j0; in ceilf()
43 i0 &= (~i); in ceilf()
50 SET_FLOAT_WORD(x,i0); in ceilf()
Ds_floorf.c36 int32_t i0,j0; in floorf() local
38 GET_FLOAT_WORD(i0,x); in floorf()
39 j0 = ((i0>>23)&0xff)-0x7f; in floorf()
43 if(i0>=0) {i0=0;} in floorf()
44 else if((i0&0x7fffffff)!=0) in floorf()
45 { i0=0xbf800000;} in floorf()
49 if((i0&i)==0) return x; /* x is integral */ in floorf()
51 if(i0<0) i0 += (0x00800000)>>j0; in floorf()
52 i0 &= (~i); in floorf()
59 SET_FLOAT_WORD(x,i0); in floorf()
Ds_floor.c35 int32_t i0,i1,j0; in floor() local
37 EXTRACT_WORDS(i0,i1,x); in floor()
38 j0 = ((i0>>20)&0x7ff)-0x3ff; in floor()
42 if(i0>=0) {i0=i1=0;} in floor()
43 else if(((i0&0x7fffffff)|i1)!=0) in floor()
44 { i0=0xbff00000;i1=0;} in floor()
48 if(((i0&i)|i1)==0) return x; /* x is integral */ in floor()
50 if(i0<0) i0 += (0x00100000)>>j0; in floor()
51 i0 &= (~i); i1=0; in floor()
61 if(i0<0) { in floor()
[all …]
Ds_ceil.c35 int32_t i0,i1,j0; in ceil() local
37 EXTRACT_WORDS(i0,i1,x); in ceil()
38 j0 = ((i0>>20)&0x7ff)-0x3ff; in ceil()
42 if(i0<0) {i0=0x80000000;i1=0;} in ceil()
43 else if((i0|i1)!=0) { i0=0x3ff00000;i1=0;} in ceil()
47 if(((i0&i)|i1)==0) return x; /* x is integral */ in ceil()
49 if(i0>0) i0 += (0x00100000)>>j0; in ceil()
50 i0 &= (~i); i1=0; in ceil()
60 if(i0>0) { in ceil()
61 if(j0==20) i0+=1; in ceil()
[all …]
Ds_rint.c40 int32_t i0,j0,sx; in rint() local
43 EXTRACT_WORDS(i0,i1,x); in rint()
44 sx = (i0>>31)&1; in rint()
45 j0 = ((i0>>20)&0x7ff)-0x3ff; in rint()
48 if(((i0&0x7fffffff)|i1)==0) return x; in rint()
49 i1 |= (i0&0x0fffff); in rint()
50 i0 &= 0xfffe0000; in rint()
51 i0 |= ((i1|-i1)>>12)&0x80000; in rint()
52 SET_HIGH_WORD(x,i0); in rint()
55 GET_HIGH_WORD(i0,t); in rint()
[all …]
Ds_truncf.c33 int32_t i0,j0; in truncf() local
35 GET_FLOAT_WORD(i0,x); in truncf()
36 j0 = ((i0>>23)&0xff)-0x7f; in truncf()
40 i0 &= 0x80000000; in truncf()
43 if((i0&i)==0) return x; /* x is integral */ in truncf()
45 i0 &= (~i); in truncf()
51 SET_FLOAT_WORD(x,i0); in truncf()
Ds_rintf.c34 int32_t i0,j0,sx; in rintf() local
36 GET_FLOAT_WORD(i0,x); in rintf()
37 sx = (i0>>31)&1; in rintf()
38 j0 = ((i0>>23)&0xff)-0x7f; in rintf()
41 if((i0&0x7fffffff)==0) return x; in rintf()
44 GET_FLOAT_WORD(i0,t); in rintf()
45 SET_FLOAT_WORD(t,(i0&0x7fffffff)|(sx<<31)); in rintf()
Ds_trunc.c35 int32_t i0,i1,j0; in trunc() local
37 EXTRACT_WORDS(i0,i1,x); in trunc()
38 j0 = ((i0>>20)&0x7ff)-0x3ff; in trunc()
42 i0 &= 0x80000000U; in trunc()
47 if(((i0&i)|i1)==0) return x; /* x is integral */ in trunc()
49 i0 &= (~i); i1=0; in trunc()
61 INSERT_WORDS(x,i0,i1); in trunc()
Ds_modff.c27 int32_t i0,j0; in modff() local
29 GET_FLOAT_WORD(i0,x); in modff()
30 j0 = ((i0>>23)&0xff)-0x7f; /* exponent of x */ in modff()
33 SET_FLOAT_WORD(*iptr,i0&0x80000000); /* *iptr = +-0 */ in modff()
37 if((i0&i)==0) { /* x is integral */ in modff()
44 SET_FLOAT_WORD(*iptr,i0&(~i)); in modff()
Ds_modf.c35 int32_t i0,i1,j0; in modf() local
37 EXTRACT_WORDS(i0,i1,x); in modf()
38 j0 = ((i0>>20)&0x7ff)-0x3ff; /* exponent of x */ in modf()
41 INSERT_WORDS(*iptr,i0&0x80000000,0); /* *iptr = +-0 */ in modf()
45 if(((i0&i)|i1)==0) { /* x is integral */ in modf()
52 INSERT_WORDS(*iptr,i0&(~i),0); in modf()
75 INSERT_WORDS(*iptr,i0,i1&(~i)); in modf()
Ds_exp2.c344 uint32_t hx, ix, lx, i0; in exp2() local
368 GET_LOW_WORD(i0, t); in exp2()
369 i0 += TBLSIZE / 2; in exp2()
370 k = (i0 >> TBLBITS) << 20; in exp2()
371 i0 = (i0 & (TBLSIZE - 1)) << 1; in exp2()
376 t = tbl[i0]; /* exp2t[i0] */ in exp2()
377 z -= tbl[i0 + 1]; /* eps[i0] */ in exp2()
Ds_exp2f.c98 uint32_t hx, ix, i0; in exp2f() local
121 GET_FLOAT_WORD(i0, t); in exp2f()
122 i0 += TBLSIZE / 2; in exp2f()
123 k = (i0 >> TBLBITS) << 20; in exp2f()
124 i0 &= TBLSIZE - 1; in exp2f()
130 tv = exp2ft[i0]; in exp2f()