| /netbsd-src/lib/libm/src/ |
| H A D | e_sqrtf.c | 31 int32_t ix,s,q,m,t,i; in __ieee754_sqrtf() local 34 GET_FLOAT_WORD(ix,x); in __ieee754_sqrtf() 37 if((ix&0x7f800000)==0x7f800000) { in __ieee754_sqrtf() 42 if(ix<=0) { in __ieee754_sqrtf() 43 if((ix&(~sign))==0) return x;/* sqrt(+-0) = +-0 */ in __ieee754_sqrtf() 44 else if(ix<0) in __ieee754_sqrtf() 48 m = (ix>>23); in __ieee754_sqrtf() 50 for(i=0;(ix&0x00800000)==0;i++) ix<<=1; in __ieee754_sqrtf() 54 ix = (ix&0x007fffff)|0x00800000; in __ieee754_sqrtf() 56 ix += ix; in __ieee754_sqrtf() [all …]
|
| H A D | s_cospif.c | 51 uint32_t ix, jj0; in cospif() local 53 GET_FLOAT_WORD(ix, x); in cospif() 54 ix = ix & 0x7fffffff; in cospif() 55 SET_FLOAT_WORD(ax, ix); in cospif() 57 if (ix < 0x3f800000) { /* |x| < 1 */ in cospif() 58 if (ix < 0x3e800000) { /* |x| < 0.25 */ in cospif() 59 if (ix < 0x38800000) { /* |x| < 0x1p-14 */ in cospif() 67 if (ix < 0x3f000000) /* |x| < 0.5 */ in cospif() 69 else if (ix < 0x3f400000) { /* |x| < 0.75 */ in cospif() 70 if (ix == 0x3f000000) in cospif() [all …]
|
| H A D | s_cospi.c | 85 uint32_t hx, ix, jj0, lx; in cospi() local 88 ix = hx & 0x7fffffff; in cospi() 89 INSERT_WORDS(ax, ix, lx); in cospi() 91 if (ix < 0x3ff00000) { /* |x| < 1 */ in cospi() 92 if (ix < 0x3fd00000) { /* |x| < 0.25 */ in cospi() 93 if (ix < 0x3e200000) { /* |x| < 0x1p-29 */ in cospi() 100 if (ix < 0x3fe00000) /* |x| < 0.5 */ in cospi() 102 else if (ix < 0x3fe80000){ /* |x| < 0.75 */ in cospi() 111 if (ix < 0x43300000) { /* 1 <= |x| < 0x1p52 */ in cospi() 112 FFLOOR(x, jj0, ix, lx); /* Integer part of ax. */ in cospi() [all …]
|
| H A D | e_j0f.c | 48 int32_t hx,ix; in __ieee754_j0f() local 51 ix = hx&0x7fffffff; in __ieee754_j0f() 52 if(ix>=0x7f800000) return one/(x*x); in __ieee754_j0f() 54 if(ix >= 0x40000000) { /* |x| >= 2.0 */ in __ieee754_j0f() 59 if(ix<0x7f000000) { /* make sure x+x not overflow */ in __ieee754_j0f() 69 if(ix>0x80000000) z = (invsqrtpi*cc)/sqrtf(x); in __ieee754_j0f() 78 if(ix<0x39000000) { /* |x| < 2**-13 */ in __ieee754_j0f() 80 if(ix<0x32000000) return one; /* |x|<2**-27 */ in __ieee754_j0f() 87 if(ix < 0x3F800000) { /* |x| < 1.00 */ in __ieee754_j0f() 112 int32_t hx,ix; in __ieee754_y0f() local [all …]
|
| H A D | e_j0.c | 90 int32_t hx,ix; in __ieee754_j0() local 93 ix = hx&0x7fffffff; in __ieee754_j0() 94 if(ix>=0x7ff00000) return one/(x*x); in __ieee754_j0() 96 if(ix >= 0x40000000) { /* |x| >= 2.0 */ in __ieee754_j0() 101 if(ix<0x7fe00000) { /* make sure x+x not overflow */ in __ieee754_j0() 110 if(ix>0x48000000) z = (invsqrtpi*cc)/sqrt(x); in __ieee754_j0() 117 if(ix<0x3f200000) { /* |x| < 2**-13 */ in __ieee754_j0() 119 if(ix<0x3e400000) return one; /* |x|<2**-27 */ in __ieee754_j0() 126 if(ix < 0x3FF00000) { /* |x| < 1.00 */ in __ieee754_j0() 151 int32_t hx,ix,lx; in __ieee754_y0() local [all …]
|
| H A D | s_tanpif.c | 66 uint32_t hx, ix, jj0; in tanpif() local 69 ix = hx & 0x7fffffff; in tanpif() 70 SET_FLOAT_WORD(ax, ix); in tanpif() 72 if (ix < 0x3f800000) { /* |x| < 1 */ in tanpif() 73 if (ix < 0x3f000000) { /* |x| < 0.5 */ in tanpif() 74 if (ix < 0x38800000) { /* |x| < 0x1p-14 */ in tanpif() 75 if (ix == 0) in tanpif() 85 } else if (ix == 0x3f000000) in tanpif() 92 if (ix < 0x4b000000) { /* 1 <= |x| < 0x1p23 */ in tanpif() 93 FFLOORF(x, jj0, ix); /* Integer part of ax. */ in tanpif() [all …]
|
| H A D | e_j1f.c | 49 int32_t hx,ix; in __ieee754_j1f() local 52 ix = hx&0x7fffffff; in __ieee754_j1f() 53 if(ix>=0x7f800000) return one/x; in __ieee754_j1f() 55 if(ix >= 0x40000000) { /* |x| >= 2.0 */ in __ieee754_j1f() 60 if(ix<0x7f000000) { /* make sure y+y not overflow */ in __ieee754_j1f() 70 if(ix>0x80000000) z = (invsqrtpi*cc)/sqrtf(y); in __ieee754_j1f() 80 if(ix<0x32000000) { /* |x|<2**-27 */ in __ieee754_j1f() 109 int32_t hx,ix; in __ieee754_y1f() local 112 ix = 0x7fffffff&hx; in __ieee754_y1f() 114 if(ix>=0x7f800000) return one/(x+x*x); in __ieee754_y1f() [all …]
|
| H A D | e_j1.c | 91 int32_t hx,ix; in __ieee754_j1() local 94 ix = hx&0x7fffffff; in __ieee754_j1() 95 if(ix>=0x7ff00000) return one/x; in __ieee754_j1() 97 if(ix >= 0x40000000) { /* |x| >= 2.0 */ in __ieee754_j1() 102 if(ix<0x7fe00000) { /* make sure y+y not overflow */ in __ieee754_j1() 111 if(ix>0x48000000) z = (invsqrtpi*cc)/sqrt(y); in __ieee754_j1() 119 if(ix<0x3e400000) { /* |x|<2**-27 */ in __ieee754_j1() 148 int32_t hx,ix,lx; in __ieee754_y1() local 151 ix = 0x7fffffff&hx; in __ieee754_y1() 153 if(ix>=0x7ff00000) return one/(x+x*x); in __ieee754_y1() [all …]
|
| H A D | s_sinpif.c | 57 uint32_t hx, ix, j0; in sinpif() local 60 ix = hx & 0x7fffffff; in sinpif() 61 SET_FLOAT_WORD(ax, ix); in sinpif() 63 if (ix < 0x3f800000) { /* |x| < 1 */ in sinpif() 64 if (ix < 0x3e800000) { /* |x| < 0.25 */ in sinpif() 65 if (ix < 0x38800000) { /* |x| < 0x1p-14 */ in sinpif() 80 if (ix < 0x3f000000) /* |x| < 0.5 */ in sinpif() 82 else if (ix < 0x3f400000) /* |x| < 0.75 */ in sinpif() 89 if (ix < 0x4b000000) { /* 1 <= |x| < 0x1p23 */ in sinpif() 90 FFLOORF(x, j0, ix); /* Integer part of ax. */ in sinpif() [all …]
|
| H A D | s_sinpi.c | 87 uint32_t hx, ix, j0, lx; in sinpi() local 90 ix = hx & 0x7fffffff; in sinpi() 91 INSERT_WORDS(ax, ix, lx); in sinpi() 93 if (ix < 0x3ff00000) { /* |x| < 1 */ in sinpi() 94 if (ix < 0x3fd00000) { /* |x| < 0.25 */ in sinpi() 95 if (ix < 0x3e200000) { /* |x| < 0x1p-29 */ in sinpi() 115 if (ix < 0x3fe00000) /* |x| < 0.5 */ in sinpi() 117 else if (ix < 0x3fe80000) /* |x| < 0.75 */ in sinpi() 124 if (ix < 0x43300000) { /* 1 <= |x| < 0x1p52 */ in sinpi() 125 FFLOOR(x, j0, ix, lx); /* Integer part of ax. */ in sinpi() [all …]
|
| H A D | e_log2f.c | 41 int32_t k,ix,i,j; in __ieee754_log2f() local 43 GET_FLOAT_WORD(ix,x); in __ieee754_log2f() 46 if (ix < 0x00800000) { /* x < 2**-126 */ in __ieee754_log2f() 47 if ((ix&0x7fffffff)==0) in __ieee754_log2f() 49 if (ix<0) return (x-x)/zero; /* log(-#) = NaN */ in __ieee754_log2f() 51 GET_FLOAT_WORD(ix,x); in __ieee754_log2f() 53 if (ix >= 0x7f800000) return x+x; in __ieee754_log2f() 54 k += (ix>>23)-127; in __ieee754_log2f() 55 ix &= 0x007fffff; in __ieee754_log2f() 56 i = (ix+(0x95f64<<3))&0x800000; in __ieee754_log2f() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/libquadmath/math/ |
| H A D | casinhq_kernel.c | 31 __float128 rx, ix; in __quadmath_kernel_casinhq() local 36 ix = fabsq (__imag__ x); in __quadmath_kernel_casinhq() 38 if (rx >= 1 / FLT128_EPSILON || ix >= 1 / FLT128_EPSILON) in __quadmath_kernel_casinhq() 45 __imag__ y = ix; in __quadmath_kernel_casinhq() 57 else if (rx >= 0.5Q && ix < FLT128_EPSILON / 8) in __quadmath_kernel_casinhq() 65 __imag__ res = atan2q (ix, s); in __quadmath_kernel_casinhq() 67 else if (rx < FLT128_EPSILON / 8 && ix >= 1.5Q) in __quadmath_kernel_casinhq() 69 __float128 s = sqrtq ((ix + 1) * (ix - 1)); in __quadmath_kernel_casinhq() 71 __real__ res = logq (ix + s); in __quadmath_kernel_casinhq() 77 else if (ix > 1 && ix < 1.5Q && rx < 0.5Q) in __quadmath_kernel_casinhq() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libquadmath/math/ |
| H A D | casinhq_kernel.c | 31 __float128 rx, ix; in __quadmath_kernel_casinhq() local 36 ix = fabsq (__imag__ x); in __quadmath_kernel_casinhq() 38 if (rx >= 1 / FLT128_EPSILON || ix >= 1 / FLT128_EPSILON) in __quadmath_kernel_casinhq() 45 __imag__ y = ix; in __quadmath_kernel_casinhq() 57 else if (rx >= 0.5Q && ix < FLT128_EPSILON / 8) in __quadmath_kernel_casinhq() 65 __imag__ res = atan2q (ix, s); in __quadmath_kernel_casinhq() 67 else if (rx < FLT128_EPSILON / 8 && ix >= 1.5Q) in __quadmath_kernel_casinhq() 69 __float128 s = sqrtq ((ix + 1) * (ix - 1)); in __quadmath_kernel_casinhq() 71 __real__ res = logq (ix + s); in __quadmath_kernel_casinhq() 77 else if (ix > 1 && ix < 1.5Q && rx < 0.5Q) in __quadmath_kernel_casinhq() [all …]
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/ |
| H A D | bn_fast_mp_montgomery_reduce.c | 30 int ix, res, olduse; in fast_mp_montgomery_reduce() local 57 for (ix = 0; ix < x->used; ix++) { in fast_mp_montgomery_reduce() 62 for (; ix < n->used * 2 + 1; ix++) { in fast_mp_montgomery_reduce() 70 for (ix = 0; ix < n->used; ix++) { in fast_mp_montgomery_reduce() 78 mu = (mp_digit) (((W[ix] & MP_MASK) * rho) & MP_MASK); in fast_mp_montgomery_reduce() 103 _W = W + ix; in fast_mp_montgomery_reduce() 112 W[ix + 1] += W[ix] >> ((mp_word) DIGIT_BIT); in fast_mp_montgomery_reduce() 126 _W1 = W + ix; in fast_mp_montgomery_reduce() 129 _W = W + ++ix; in fast_mp_montgomery_reduce() 131 for (; ix <= n->used * 2 + 1; ix++) { in fast_mp_montgomery_reduce() [all …]
|
| H A D | bn_fast_s_mp_sqr.c | 32 int olduse, res, pa, ix, iz; in fast_s_mp_sqr() local 46 for (ix = 0; ix < pa; ix++) { in fast_s_mp_sqr() 55 ty = MIN(a->used-1, ix); in fast_s_mp_sqr() 56 tx = ix - ty; in fast_s_mp_sqr() 82 if ((ix&1) == 0) { in fast_s_mp_sqr() 83 _W += ((mp_word)a->dp[ix>>1])*((mp_word)a->dp[ix>>1]); in fast_s_mp_sqr() 87 W[ix] = (mp_digit)(_W & MP_MASK); in fast_s_mp_sqr() 100 for (ix = 0; ix < pa; ix++) { in fast_s_mp_sqr() 101 *tmpb++ = W[ix] & MP_MASK; in fast_s_mp_sqr() 105 for (; ix < olduse; ix++) { in fast_s_mp_sqr()
|
| /netbsd-src/external/gpl3/binutils/dist/opcodes/ |
| H A D | s390-mkopc.c | 93 int ix, k; in insertOpcode() local 103 for (ix = 0; ix < 16; ix++) in insertOpcode() 117 sort_value <<= 4*(16 - ix); in insertOpcode() 119 no_nibbles = ix; in insertOpcode() 120 for (ix = 0; ix < no_ops; ix++) in insertOpcode() 121 if (sort_value > op_array[ix].sort_value) in insertOpcode() 123 for (k = no_ops; k > ix; k--) in insertOpcode() 125 strncpy (op_array[ix].opcode, opcode, MAX_OPCODE_LEN); in insertOpcode() 126 op_array[ix].opcode[MAX_OPCODE_LEN] = '\0'; in insertOpcode() 127 strncpy (op_array[ix].mnemonic, mnemonic, MAX_MNEMONIC_LEN); in insertOpcode() [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/opcodes/ |
| H A D | s390-mkopc.c | 61 int ix, k; in insertOpcode() local 71 for (ix = 0; ix < 16; ix++) in insertOpcode() 85 sort_value <<= 4*(16 - ix); in insertOpcode() 87 no_nibbles = ix; in insertOpcode() 88 for (ix = 0; ix < no_ops; ix++) in insertOpcode() 89 if (sort_value > op_array[ix].sort_value) in insertOpcode() 91 for (k = no_ops; k > ix; k--) in insertOpcode() 93 strcpy(op_array[ix].opcode, opcode); in insertOpcode() 94 strcpy(op_array[ix].mnemonic, mnemonic); in insertOpcode() 95 strcpy(op_array[ix].format, format); in insertOpcode() [all …]
|
| /netbsd-src/external/bsd/bc/dist/ |
| H A D | storage.c | 376 unsigned int ix, ix1; in get_array_num() local 398 ix = idx >> NODE_SHIFT; in get_array_num() 400 while (ix > 0 || log < a_var->a_depth) in get_array_num() 402 sub[log] = ix & NODE_MASK; in get_array_num() 403 ix >>= NODE_SHIFT; in get_array_num() 414 for (ix=1; ix < NODE_SIZE; ix++) in get_array_num() 415 temp->n_items.n_down[ix] = NULL; in get_array_num() 419 for (ix=0; ix < NODE_SIZE; ix++) in get_array_num() 420 temp->n_items.n_num[ix] = bc_copy_num(_zero_); in get_array_num() 436 for (ix=0; ix < NODE_SIZE; ix++) in get_array_num() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/ |
| H A D | bitmap.cc | 649 unsigned ix; in bitmap_tree_listify_from() local 650 FOR_EACH_VEC_ELT (sorted_elements, ix, n) in bitmap_tree_listify_from() 1117 for (unsigned ix = 0; ix != BITMAP_ELEMENT_WORDS; ix++) in bitmap_count_bits_in_word() local 1122 count += __builtin_popcountl (bits[ix]); in bitmap_count_bits_in_word() 1124 count += bitmap_popcount (bits[ix]); in bitmap_count_bits_in_word() 1171 for (unsigned ix = 0; ix != BITMAP_ELEMENT_WORDS; ix++) in bitmap_count_unique_bits() local 1172 bits[ix] = elt_a->bits[ix] | elt_b->bits[ix]; in bitmap_count_unique_bits() 1189 unsigned ix; in bitmap_single_bit_set_p() local 1202 for (ix = 0; ix != BITMAP_ELEMENT_WORDS; ix++) in bitmap_single_bit_set_p() 1207 count += __builtin_popcountl (elt->bits[ix]); in bitmap_single_bit_set_p() [all …]
|
| H A D | tree-streamer.cc | 107 unsigned ix, tree t, hashval_t hash) in streamer_tree_cache_add_to_node_array() argument 112 if (cache->nodes.length () == ix) in streamer_tree_cache_add_to_node_array() 115 cache->nodes[ix] = t; in streamer_tree_cache_add_to_node_array() 119 if (cache->hashes.length () == ix) in streamer_tree_cache_add_to_node_array() 122 cache->hashes[ix] = hash; in streamer_tree_cache_add_to_node_array() 146 unsigned int &ix = cache->node_map->get_or_insert (t, &existed_p); in streamer_tree_cache_insert_1() local 151 ix = cache->next_idx++; in streamer_tree_cache_insert_1() 153 ix = *ix_p; in streamer_tree_cache_insert_1() 155 streamer_tree_cache_add_to_node_array (cache, ix, t, hash); in streamer_tree_cache_insert_1() 159 if (!insert_at_next_slot_p && ix != *ix_p) in streamer_tree_cache_insert_1() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/ |
| H A D | bitmap.c | 649 unsigned ix; in bitmap_tree_listify_from() local 650 FOR_EACH_VEC_ELT (sorted_elements, ix, n) in bitmap_tree_listify_from() 1035 for (unsigned ix = 0; ix != BITMAP_ELEMENT_WORDS; ix++) in bitmap_count_bits_in_word() local 1040 count += __builtin_popcountl (bits[ix]); in bitmap_count_bits_in_word() 1042 count += bitmap_popcount (bits[ix]); in bitmap_count_bits_in_word() 1089 for (unsigned ix = 0; ix != BITMAP_ELEMENT_WORDS; ix++) in bitmap_count_unique_bits() local 1090 bits[ix] = elt_a->bits[ix] | elt_b->bits[ix]; in bitmap_count_unique_bits() 1107 unsigned ix; in bitmap_single_bit_set_p() local 1120 for (ix = 0; ix != BITMAP_ELEMENT_WORDS; ix++) in bitmap_single_bit_set_p() 1125 count += __builtin_popcountl (elt->bits[ix]); in bitmap_single_bit_set_p() [all …]
|
| H A D | tree-streamer.c | 107 unsigned ix, tree t, hashval_t hash) in streamer_tree_cache_add_to_node_array() argument 112 if (cache->nodes.length () == ix) in streamer_tree_cache_add_to_node_array() 115 cache->nodes[ix] = t; in streamer_tree_cache_add_to_node_array() 119 if (cache->hashes.length () == ix) in streamer_tree_cache_add_to_node_array() 122 cache->hashes[ix] = hash; in streamer_tree_cache_add_to_node_array() 146 unsigned int &ix = cache->node_map->get_or_insert (t, &existed_p); in streamer_tree_cache_insert_1() local 151 ix = cache->next_idx++; in streamer_tree_cache_insert_1() 153 ix = *ix_p; in streamer_tree_cache_insert_1() 155 streamer_tree_cache_add_to_node_array (cache, ix, t, hash); in streamer_tree_cache_insert_1() 159 if (!insert_at_next_slot_p && ix != *ix_p) in streamer_tree_cache_insert_1() [all …]
|
| /netbsd-src/games/trek/ |
| H A D | visual.c | 73 int ix, iy; in visual() local 82 ix = Ship.sectx + v->x; in visual() 84 if (ix < 0 || ix >= NSECTS || iy < 0 || iy >= NSECTS) in visual() 87 co = Sect[ix][iy]; in visual() 88 printf("%d,%d %c ", ix, iy, co); in visual() 90 ix = Ship.sectx + v->x; in visual() 92 if (ix < 0 || ix >= NSECTS || iy < 0 || iy >= NSECTS) in visual() 95 co = Sect[ix][iy]; in visual() 98 ix = Ship.sectx + v->x; in visual() 100 if (ix < 0 || ix >= NSECTS || iy < 0 || iy >= NSECTS) in visual() [all …]
|
| /netbsd-src/lib/libm/ld80/ |
| H A D | s_cospil.c | 51 uint16_t hx, ix; in cospil() local 54 ix = hx & 0x7fff; in cospil() 55 INSERT_LDBL80_WORDS(ax, ix, lx); in cospil() 59 if (ix < 0x3fff) { /* |x| < 1 */ in cospil() 60 if (ix < 0x3ffd) { /* |x| < 0.25 */ in cospil() 61 if (ix < 0x3fdd) { /* |x| < 0x1p-34 */ in cospil() 68 if (ix < 0x3ffe) /* |x| < 0.5 */ in cospil() 79 if (ix < 0x403e) { /* 1 <= |x| < 0x1p63 */ in cospil() 80 FFLOORL80(x, j0, ix, lx); /* Integer part of ax. */ in cospil() 82 EXTRACT_LDBL80_WORDS(ix, lx, ax); in cospil() [all …]
|
| H A D | s_sinpil.c | 53 uint16_t hx, ix; in sinpil() local 56 ix = hx & 0x7fff; in sinpil() 57 INSERT_LDBL80_WORDS(ax, ix, lx); in sinpil() 61 if (ix < 0x3fff) { /* |x| < 1 */ in sinpil() 62 if (ix < 0x3ffd) { /* |x| < 0.25 */ in sinpil() 63 if (ix < 0x3fdd) { /* |x| < 0x1p-34 */ in sinpil() 78 if (ix < 0x3ffe) /* |x| < 0.5 */ in sinpil() 87 if (ix < 0x403e) { /* 1 <= |x| < 0x1p63 */ in sinpil() 88 FFLOORL80(x, j0, ix, lx); /* Integer part of ax. */ in sinpil() 90 EXTRACT_LDBL80_WORDS(ix, lx, ax); in sinpil() [all …]
|