Searched refs:ix (Results 1 - 25 of 305) sorted by relevance

1234567891011>>

/openbsd-current/lib/libm/src/
H A Ds_logbf.c22 int32_t ix; local
23 GET_FLOAT_WORD(ix,x);
24 ix &= 0x7fffffff; /* high |x| */
25 if(ix==0) return (float)-1.0/fabsf(x);
26 if(ix>=0x7f800000) return x*x;
27 if((ix>>=23)==0) /* IEEE 754 logb */
30 return (float) (ix-127);
H A Ds_logb.c25 int32_t lx,ix; local
26 EXTRACT_WORDS(ix,lx,x);
27 ix &= 0x7fffffff; /* high |x| */
28 if((ix|lx)==0) return -1.0/fabs(x);
29 if(ix>=0x7ff00000) return x*x;
30 if((ix>>=20)==0) /* IEEE 754 logb */
33 return (double) (ix-1023);
H A Ds_fabsf.c26 u_int32_t ix; local
27 GET_FLOAT_WORD(ix,x);
28 SET_FLOAT_WORD(x,ix&0x7fffffff);
H A De_sqrtf.c26 int32_t ix,s,q,m,t,i; local
29 GET_FLOAT_WORD(ix,x);
32 if((ix&0x7f800000)==0x7f800000) {
37 if(ix<=0) {
38 if((ix&(~sign))==0) return x;/* sqrt(+-0) = +-0 */
39 else if(ix<0)
43 m = (ix>>23);
45 for(i=0;(ix&0x00800000)==0;i++) ix<<=1;
49 ix
[all...]
H A Ds_frexpf.c25 int32_t hx,ix; local
27 ix = 0x7fffffff&hx;
29 if(ix>=0x7f800000||(ix==0)) return x; /* 0,inf,nan */
30 if (ix<0x00800000) { /* subnormal */
33 ix = hx&0x7fffffff;
36 *eptr += (ix>>23)-126;
H A Ds_tanf.c23 int32_t n, ix; local
25 GET_FLOAT_WORD(ix,x);
28 ix &= 0x7fffffff;
29 if(ix <= 0x3f490fda) return __kernel_tanf(x,z,1);
32 else if (ix>=0x7f800000) return x-x; /* NaN */
H A Ds_ilogbf.c22 int32_t hx,ix; local
30 for (ix = -126,hx<<=8; hx>0; hx<<=1) ix -=1;
31 return ix;
H A De_atanhf.c26 int32_t hx,ix; local
28 ix = hx&0x7fffffff;
29 if (ix>0x3f800000) /* |x|>1 */
31 if(ix==0x3f800000)
33 if(ix<0x31800000&&(huge+x)>zero) return x; /* x<2**-28 */
34 SET_FLOAT_WORD(x,ix);
35 if(ix<0x3f000000) { /* x < 0.5 */
H A Ds_tan.c52 int32_t n, ix; local
55 GET_HIGH_WORD(ix,x);
58 ix &= 0x7fffffff;
59 if(ix <= 0x3fe921fb) return __kernel_tan(x,z,1);
62 else if (ix>=0x7ff00000) return x-x; /* NaN */
H A De_coshf.c26 int32_t ix; local
28 GET_FLOAT_WORD(ix,x);
29 ix &= 0x7fffffff;
32 if(ix>=0x7f800000) return x*x;
35 if(ix<0x3eb17218) {
38 if (ix<0x24000000) return w; /* cosh(tiny) = 1 */
43 if (ix < 0x41b00000) {
49 if (ix < 0x42b17180) return half*expf(fabsf(x));
52 if (ix<=0x42b2d4fc) {
H A Ds_ilogb.c28 int32_t hx,lx,ix; local
38 for (ix = -1043; lx>0; lx<<=1) ix -=1;
40 for (ix = -1022,hx<<=11; hx>0; hx<<=1) ix -=1;
42 return ix;
H A Ds_cos.c53 int32_t n, ix; local
56 GET_HIGH_WORD(ix,x);
59 ix &= 0x7fffffff;
60 if(ix <= 0x3fe921fb) {
61 if(ix<0x3e46a09e) /* if x < 2**-27 * sqrt(2) */
67 else if (ix>=0x7ff00000) return x-x;
H A Ds_cosf.c23 int32_t n,ix; local
25 GET_FLOAT_WORD(ix,x);
28 ix &= 0x7fffffff;
29 if(ix <= 0x3f490fd8) {
30 if(ix<0x39800000) /* if x < 2**-12 */
37 else if (ix>=0x7f800000) return x-x;
H A Ds_sinf.c23 int32_t n, ix; local
25 GET_FLOAT_WORD(ix,x);
28 ix &= 0x7fffffff;
29 if(ix <= 0x3f490fd8) {
30 if(ix<0x39800000) /* if x < 2**-12 */
36 else if (ix>=0x7f800000) return x-x;
H A Ds_sin.c53 int32_t n, ix; local
56 GET_HIGH_WORD(ix,x);
59 ix &= 0x7fffffff;
60 if(ix <= 0x3fe921fb) {
61 if(ix<0x3e400000) /* |x| < 2**-27 */
67 else if (ix>=0x7ff00000) return x-x;
H A De_sinhf.c25 int32_t ix,jx; local
28 ix = jx&0x7fffffff;
31 if(ix>=0x7f800000) return x+x;
36 if (ix < 0x41b00000) { /* |x|<22 */
37 if (ix<0x31800000) /* |x|<2**-28 */
40 if(ix<0x3f800000) return h*((float)2.0*t-t*t/(t+one));
45 if (ix < 0x42b17180) return h*expf(fabsf(x));
48 if (ix<=0x42b2d4fc) {
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/
H A DWunreachable-6.c11 int ix; /* { dg-bogus "will never be executed" } */ local
12 ix = printf("hello\n");
13 printf("%d\n", ix);
H A DWunreachable-7.c11 int ix; /* { dg-bogus "will never be executed" } */ local
12 ix = printf("hello\n");
13 printf("%d\n", ix);
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.misc-tests/
H A Dgcov-8.c39 int ix; local
41 for (ix = 0; ix != 1000; ix++)
42 t += foo (ix) + baz (ix);
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.dg/init/
H A Darray15.C21 for (unsigned ix = sizeof (buffer); ix--;)
22 if (buffer[ix])
36 for (unsigned ix = sizeof (heap); ix--;)
37 heap[ix] = ix;
/openbsd-current/lib/libm/src/ld80/
H A Ds_ilogbl.c31 int32_t esx,hx,lx,ix; local
40 for (ix = -16414; lx>0; lx<<=1) ix -=1;
42 for (ix = -16382; hx>0; hx<<=1) ix -=1;
44 return ix;
/openbsd-current/gnu/usr.bin/perl/ext/XS-APItest/t/
H A Dsavestack.t9 my %ix;
11 diag join ", ", map { $ix{$_} > 1 ? "$_ x $ix{$_}" : $_ } sort { $a <=> $b } keys %ix;
17 $str=~/^($pat)(??{ $ix{get_savestack_ix()}++; "(?!)" })/;
18 my $keys= 0+keys %ix;
19 cmp_ok($keys,">",0, "We expect at least one key in %ix for (??{ ... }) test");
20 cmp_ok($keys,"<=", 2, "We expect no more than two keys in %ix if (??{ ... }) does not leak")
23 %ix= ();
24 $str=~/^($pat)(?{ $ix{m
[all...]
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A Dloop-13.c7 int i, ix; local
10 for (i = 0, ix = 0; i < n; i++, ix += 2)
13 tmpr = *alpha * x[ix];
14 tmpi = *alpha * x[ix + 1];
15 x[ix] = tmpr;
16 x[ix + 1] = tmpi;
/openbsd-current/games/trek/
H A Dvisual.c66 int ix, iy, co; local
74 ix = Ship.sectx + v->x;
76 if (ix < 0 || ix >= NSECTS || iy < 0 || iy >= NSECTS)
79 co = Sect[ix][iy];
80 printf("%d,%d %c ", ix, iy, co);
82 ix = Ship.sectx + v->x;
84 if (ix < 0 || ix >= NSECTS || iy < 0 || iy >= NSECTS)
87 co = Sect[ix][i
[all...]
/openbsd-current/lib/libm/src/ld128/
H A Ds_ilogbl.c32 int32_t ix; local
41 for (ix = -16431; lx>0; lx<<=1) ix -=1;
43 for (ix = -16382, hx<<=15; hx>0; hx<<=1) ix -=1;
45 return ix;

Completed in 270 milliseconds

1234567891011>>