Home
last modified time | relevance | path

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

/bionic/libm/src/
Ds_ceilf.c28 int32_t i0,j0; in ceilf() local
31 GET_FLOAT_WORD(i0,x); in ceilf()
32 j0 = ((i0>>23)&0xff)-0x7f; in ceilf()
36 if(i0<0) {i0=0x80000000;} in ceilf()
37 else if(i0!=0) { i0=0x3f800000;} in ceilf()
41 if((i0&i)==0) return x; /* x is integral */ in ceilf()
43 if(i0>0) i0 += (0x00800000)>>j0; in ceilf()
44 i0 &= (~i); in ceilf()
51 SET_FLOAT_WORD(x,i0); in ceilf()
Ds_floorf.c37 int32_t i0,j0; in floorf() local
39 GET_FLOAT_WORD(i0,x); in floorf()
40 j0 = ((i0>>23)&0xff)-0x7f; in floorf()
44 if(i0>=0) {i0=0;} in floorf()
45 else if((i0&0x7fffffff)!=0) in floorf()
46 { i0=0xbf800000;} in floorf()
50 if((i0&i)==0) return x; /* x is integral */ in floorf()
52 if(i0<0) i0 += (0x00800000)>>j0; in floorf()
53 i0 &= (~i); in floorf()
60 SET_FLOAT_WORD(x,i0); in floorf()
Ds_floor.c34 int32_t i0,i1,j0; in floor() local
36 EXTRACT_WORDS(i0,i1,x); in floor()
37 j0 = ((i0>>20)&0x7ff)-0x3ff; in floor()
41 if(i0>=0) {i0=i1=0;} in floor()
42 else if(((i0&0x7fffffff)|i1)!=0) in floor()
43 { i0=0xbff00000;i1=0;} in floor()
47 if(((i0&i)|i1)==0) return x; /* x is integral */ in floor()
49 if(i0<0) i0 += (0x00100000)>>j0; in floor()
50 i0 &= (~i); i1=0; in floor()
60 if(i0<0) { in floor()
[all …]
Ds_ceil.c34 int32_t i0,i1,j0; in ceil() local
36 EXTRACT_WORDS(i0,i1,x); in ceil()
37 j0 = ((i0>>20)&0x7ff)-0x3ff; in ceil()
41 if(i0<0) {i0=0x80000000;i1=0;} in ceil()
42 else if((i0|i1)!=0) { i0=0x3ff00000;i1=0;} in ceil()
46 if(((i0&i)|i1)==0) return x; /* x is integral */ in ceil()
48 if(i0>0) i0 += (0x00100000)>>j0; in ceil()
49 i0 &= (~i); i1=0; in ceil()
59 if(i0>0) { in ceil()
60 if(j0==20) i0+=1; in ceil()
[all …]
Ds_rint.c39 int32_t i0,j0,sx; in rint() local
42 EXTRACT_WORDS(i0,i1,x); in rint()
43 sx = (i0>>31)&1; in rint()
44 j0 = ((i0>>20)&0x7ff)-0x3ff; in rint()
47 if(((i0&0x7fffffff)|i1)==0) return x; in rint()
48 i1 |= (i0&0x0fffff); in rint()
49 i0 &= 0xfffe0000; in rint()
50 i0 |= ((i1|-i1)>>12)&0x80000; in rint()
51 SET_HIGH_WORD(x,i0); in rint()
54 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.c33 int32_t i0,j0,sx; in rintf() local
35 GET_FLOAT_WORD(i0,x); in rintf()
36 sx = (i0>>31)&1; in rintf()
37 j0 = ((i0>>23)&0xff)-0x7f; in rintf()
40 if((i0&0x7fffffff)==0) return x; in rintf()
43 GET_FLOAT_WORD(i0,t); in rintf()
44 SET_FLOAT_WORD(t,(i0&0x7fffffff)|(sx<<31)); in rintf()
Ds_trunc.c33 int32_t i0,i1,j0; in trunc() local
35 EXTRACT_WORDS(i0,i1,x); in trunc()
36 j0 = ((i0>>20)&0x7ff)-0x3ff; in trunc()
40 i0 &= 0x80000000U; in trunc()
45 if(((i0&i)|i1)==0) return x; /* x is integral */ in trunc()
47 i0 &= (~i); i1=0; in trunc()
59 INSERT_WORDS(x,i0,i1); in trunc()
Ds_modff.c28 int32_t i0,j0; in modff() local
30 GET_FLOAT_WORD(i0,x); in modff()
31 j0 = ((i0>>23)&0xff)-0x7f; /* exponent of x */ in modff()
34 SET_FLOAT_WORD(*iptr,i0&0x80000000); /* *iptr = +-0 */ in modff()
38 if((i0&i)==0) { /* x is integral */ in modff()
45 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()
71 INSERT_WORDS(*iptr,i0,i1&(~i)); in modf()
Ds_exp2.c341 uint32_t hx, hr, ix, lx, i0; in exp2() local
365 GET_LOW_WORD(i0, t); in exp2()
366 i0 += TBLSIZE / 2; in exp2()
367 k = (i0 >> TBLBITS) << 20; in exp2()
368 i0 = (i0 & (TBLSIZE - 1)) << 1; in exp2()
373 t = tbl[i0]; /* exp2t[i0] */ in exp2()
374 z -= tbl[i0 + 1]; /* eps[i0] */ in exp2()
Ds_exp2f.c95 uint32_t hx, hr, ix, i0; in exp2f() local
118 GET_FLOAT_WORD(i0, t); in exp2f()
119 i0 += TBLSIZE / 2; in exp2f()
120 k = (i0 >> TBLBITS) << 23; in exp2f()
121 i0 &= TBLSIZE - 1; in exp2f()
126 tv = exp2ft[i0]; in exp2f()