/picolibc-latest/newlib/libm/machine/spu/headers/ |
D | ilogb.h | 54 vec_uint4 v, exp, exp_0, mant, mask, count; in _ilogb() local 63 exp = spu_and(spu_rlmask(v, -20), mask); in _ilogb() 73 flg_exp_0 = spu_cmpeq(exp, 0); in _ilogb() 74 flg_exp_max = spu_cmpeq(exp, mask); in _ilogb() 76 exp = spu_add(exp, -1023); in _ilogb() 80 exp_0 = spu_sel(spu_sub(spu_add(exp, 12), count), VEC_SPLAT_U32(FP_ILOGB0), spu_cmpeq(count, 64)); in _ilogb() 82 exp = spu_sel(spu_sel(exp, VEC_SPLAT_U32(FP_ILOGBNAN), flg_exp_max), exp_0, flg_exp_0); in _ilogb() 84 return (spu_extract((vec_int4)(exp), 0)); in _ilogb()
|
D | ldexpd2.h | 61 vec_int4 exp; in _ldexpd2() local 70 exp = (vec_int4)spu_shuffle(llexp, llexp, odd_to_even); in _ldexpd2() 75 cmp_min = spu_cmpgt(exp, min); in _ldexpd2() 76 cmp_max = spu_cmpgt(exp, max); in _ldexpd2() 77 exp = spu_sel(min, exp, cmp_min); in _ldexpd2() 78 exp = spu_sel(exp, max, cmp_max); in _ldexpd2() 82 e1 = spu_rlmaska(exp, -1); in _ldexpd2() 83 e2 = spu_sub(exp, e1); in _ldexpd2()
|
D | roundf.h | 44 vec_int4 exp; in _roundf() local 52 exp = spu_sub(125, spu_and(spu_rlmask((vec_int4)in, -23), 0xFF)); in _roundf() 54 addend = spu_and(spu_rlmask(VEC_SPLAT_U32(0x1000000), exp), in _roundf() 55 spu_cmpgt((vec_uint4)exp, -31)); in _roundf() 61 exp = spu_sub(127, spu_and(spu_rlmask((vec_int4)in, -23), 0xFF)); in _roundf() 63 or_mask = spu_cmpgt(exp, 0); in _roundf() 64 and_mask = spu_rlmask(VEC_SPLAT_U32(0x7FFFFF), exp); in _roundf() 66 mask = spu_or(spu_and(and_mask, spu_cmpgt(exp, -31)), or_mask); in _roundf()
|
D | ilogbf.h | 46 vec_uint4 v, exp; in _ilogbf() local 49 exp = spu_and(spu_rlmask(v, -23), 0xFF); in _ilogbf() 50 exp = spu_sel(spu_add(exp, -127), VEC_SPLAT_U32(FP_ILOGB0), spu_cmpeq(exp, 0)); in _ilogbf() 51 return (spu_extract((vec_int4)(exp), 0)); in _ilogbf()
|
D | frexpf.h | 43 vec_int4 exp; in _frexpf() local 57 exp = spu_and(spu_rlmask((vec_int4)in, -23), 0xFF); in _frexpf() 58 mask = spu_cmpeq(exp, 0); in _frexpf() 64 exp = spu_andc(spu_add(exp, -126), (vec_int4)mask); in _frexpf() 65 *pexp = spu_extract(exp, 0); in _frexpf()
|
D | cbrt.h | 53 vec_int4 exp, bias; in _cbrt() local 78 exp = spu_and(spu_rlmask((vec_int4)in, -20), 0x7FF); in _cbrt() 83 mask = (vec_ullong2)spu_cmpeq(exp, 0); in _cbrt() 85 exp = spu_add(exp, -1022); in _cbrt() 99 bias = spu_rlmask(spu_rlmaska(exp, -15), -16); in _cbrt() 100 e_div_3 = (vec_uint4)spu_rlmaska(spu_madd((vec_short8)exp, VEC_SPLAT_S16(0x5556), bias), -16); in _cbrt() 102 e_mod_3 = (vec_uint4)spu_sub((vec_int4)(exp), spu_mulo((vec_short8)e_div_3, VEC_SPLAT_S16(3))); in _cbrt() 124 exp = spu_rl(spu_add((vec_int4)e_div_3, 1023), 20); in _cbrt() 125 exp = spu_andc(exp, (vec_int4)mant_mask); in _cbrt() 126 out = spu_sel((vec_double2)exp, in, VEC_SPLAT_U64(0x8000000000000000ULL)); in _cbrt()
|
D | frexp.h | 46 vec_int4 exp; in _frexp() local 60 exp = spu_and(spu_rlmask((vec_int4)in, -20), 0x7FF); in _frexp() 61 denorm = spu_cmpeq(exp, 0); in _frexp() 68 exp = spu_andc(spu_add(exp, -1022), (vec_int4)mask); in _frexp() 70 *pexp = spu_extract(exp, 0); in _frexp()
|
D | cbrtf.h | 52 vec_int4 exp, bias; in _cbrtf() local 73 exp = spu_and(spu_rlmask((vec_int4)in, -23), 0xFF); in _cbrtf() 78 mask = spu_cmpeq(exp, 0); in _cbrtf() 79 exp = spu_add(exp, -126); in _cbrtf() 92 bias = spu_rlmask(spu_rlmaska(exp, -15), -16); in _cbrtf() 93 e_div_3 = (vec_uint4)spu_rlmaska(spu_madd((vec_short8)exp, VEC_SPLAT_S16(0x5556), bias), -16); in _cbrtf() 95 e_mod_3 = (vec_uint4)spu_sub((vec_int4)(exp), spu_mulo((vec_short8)e_div_3, VEC_SPLAT_S16(3))); in _cbrtf() 121 exp = spu_rl(spu_add((vec_int4)e_div_3, 127), 23); in _cbrtf() 122 out = spu_sel((vec_float4)exp, in, VEC_SPLAT_U32(0x80000000)); in _cbrtf()
|
D | lround.h | 47 vec_int4 exp; in _lround() local 56 exp = spu_and(spu_rlmask((vec_int4)in, -20), 0x7FF); in _lround() 57 exp = spu_add(exp, -979); in _lround() 58 shift = spu_extract(exp, 0); in _lround() 60 mask = spu_cmpgt(exp, 0); in _lround()
|
D | truncf4.h | 58 vec_int4 exp; in _truncf4() local 65 exp = spu_sub(127, spu_and(spu_rlmask((vec_int4) x, -23), 0xFF)); in _truncf4() 68 or_mask = spu_rlmask(spu_cmpgt(exp, 0),-1); in _truncf4() 70 and_mask = spu_rlmask(spu_splats((unsigned int)0x7FFFFF), exp); in _truncf4() 71 mask = spu_or(spu_and(and_mask, spu_cmpgt(exp, -31)), or_mask); in _truncf4()
|
D | truncf.h | 41 vec_int4 exp; in _truncf() local 51 exp = spu_sub(127, spu_and(spu_rlmask((vec_int4)in, -23), 0xFF)); in _truncf() 53 or_mask = spu_cmpgt(exp, 0); in _truncf() 54 and_mask = spu_rlmask(VEC_SPLAT_U32(0x7FFFFF), exp); in _truncf() 56 mask = spu_or(spu_and(and_mask, spu_cmpgt(exp, -31)), or_mask); in _truncf()
|
D | divd2.h | 62 vec_int4 exp, exp_bias; in _divd2() local 184 exp = spu_rlmaska(spu_sub((vec_int4)exp_a, (vec_int4)exp_b), -20); in _divd2() 185 …exp = spu_add(exp, (vec_int4)spu_add(spu_and((vec_int4)a_denorm, -0x34), spu_and((vec_int4)b_denor… in _divd2() 196 exp_bias = spu_xor(spu_rlmaska(exp, -31), 64); in _divd2() 199 exp = spu_sub(exp, exp_bias); in _divd2() 206 exp = spu_add(exp, 0x3FF); in _divd2() 207 no_underflow = spu_cmpgt(exp, 0); in _divd2() 208 overflow = spu_cmpgt(exp, 0x7FF); in _divd2() 209 exp = spu_and(spu_sl(exp, 20), (vec_int4)no_underflow); in _divd2() 210 exp = spu_and(exp, (vec_int4)exp_mask); in _divd2() [all …]
|
D | llrint.h | 42 vec_int4 exp; in _llrint() local 57 exp = spu_and(spu_rlmask((vec_int4)mant, -20), 0x7FF); in _llrint() 58 exp = spu_add(exp, -1011); in _llrint() 59 shift = spu_extract(exp, 0); in _llrint() 61 mask = spu_cmpgt(exp, 0); in _llrint()
|
/picolibc-latest/newlib/libm/common/ |
D | sf_trunc.c | 19 int exp; in truncf() local 21 exp = _exponent32(ix) - 127; in truncf() 23 if (unlikely(exp == 128)) in truncf() 27 if (exp < 0) in truncf() 32 if (exp >= 32) in truncf() 33 exp = 31; in truncf() 34 mask = ~(0x007fffff >> exp); in truncf()
|
D | frexpl.c | 43 __uint32_t exp:11; member 48 __uint32_t exp:11; member 53 __uint32_t exp:11; member 69 __uint32_t exp:15; member 76 __uint32_t exp:15; member 79 __uint32_t exp:15; member 99 __uint32_t exp:11; member 108 __uint32_t exp:11; member 129 __uint32_t exp:15; member 135 __uint32_t exp:15; member [all …]
|
D | s_trunc.c | 50 int exp; in trunc64() local 53 exp = _exponent64(ix) - 1023; in trunc64() 56 if (unlikely(exp == 1024)) in trunc64() 60 if (exp < 0) in trunc64() 65 if (exp >= 64) in trunc64() 66 exp = 63; in trunc64() 67 mask = ~(0x000fffffffffffffLL >> exp); in trunc64()
|
/picolibc-latest/newlib/libc/xdr/ |
D | xdr_float_vax.c | 48 unsigned int exp:8; member 56 unsigned int exp:8; member 101 (vs.exp == lim->s.exp) && (vs.mantissa1 == lim->s.mantissa1)) in xdr_float() 107 is.exp = vs.exp - VAX_SNG_BIAS + IEEE_SNG_BIAS; in xdr_float() 120 if ((is.exp == lim->ieee.exp) && in xdr_float() 127 vsp->exp = is.exp - IEEE_SNG_BIAS + VAX_SNG_BIAS; in xdr_float() 146 unsigned int exp:11; member 155 unsigned int exp:8; member 207 (vd.mantissa1 == lim->d.mantissa1) && (vd.exp == lim->d.exp)) in xdr_double() 213 id.exp = vd.exp - VAX_DBL_BIAS + IEEE_DBL_BIAS; in xdr_double() [all …]
|
/picolibc-latest/newlib/libm/ld/common/ |
D | e_sqrtl.c | 38 u.bits.exp++; in inc() 54 u.bits.exp--; in dec() 87 if (u.bits.exp == LDBL_INF_NAN_EXP) { in sqrtl() 94 if ((u.bits.manh | u.bits.manl | u.bits.exp) == 0) in sqrtl() 103 if (u.bits.exp == 0) { in sqrtl() 114 if ((u.bits.exp - (BIAS-1)) & 1) { /* n is odd. */ in sqrtl() 115 k += u.bits.exp - BIAS; /* 2k = n - 1. */ in sqrtl() 117 u.dbits.dl = scalbn(u.dbits.dl, BIAS - u.bits.exp); in sqrtl() 119 u.bits.exp = BIAS; /* u.e in [1,2). */ in sqrtl() 121 k += u.bits.exp - (BIAS + 1); /* 2k = n - 2. */ in sqrtl() [all …]
|
D | s_frexpl.c | 40 switch (u.bits.exp) { in frexpl() 46 *ex = u.bits.exp - 0x4200; in frexpl() 47 u.bits.exp = 0x3ffe; in frexpl() 53 *ex = u.bits.exp - 0x3ffe; in frexpl() 54 u.bits.exp = 0x3ffe; in frexpl()
|
/picolibc-latest/newlib/libc/tinystdio/ |
D | atof_engine.c | 47 __atof_engine(uint32_t u32, int exp) in __atof_engine() argument 51 while (exp < 0) { in __atof_engine() 53 exp++; in __atof_engine() 55 while (exp > 0) { in __atof_engine() 57 exp--; in __atof_engine()
|
D | atod_engine.c | 51 __atod_engine(uint64_t u64, int exp) in __atod_engine() argument 55 while (exp < 0) { in __atod_engine() 57 exp++; in __atod_engine() 59 while (exp > 0) { in __atod_engine() 61 exp--; in __atod_engine()
|
D | dtox_engine.c | 110 int exp, d; in __dtox_engine() local 118 exp = ((fi >> EXP_SHIFT) & EXP_MASK); in __dtox_engine() 120 if (s || exp) { in __dtox_engine() 121 if (exp == EXP_BIAS * 2 + 1) { in __dtox_engine() 129 if (!exp) in __dtox_engine() 130 exp = 1; in __dtox_engine() 133 exp -= EXP_BIAS; in __dtox_engine() 135 dtoa->exp = exp; in __dtox_engine()
|
D | ldtox_engine.c | 96 int exp; in __ldtox_engine() local 103 exp = _u128_and_64(_u128_rshift(fi, LEXP_SHIFT), LEXP_MASK); in __ldtox_engine() 105 if (!_u128_is_zero(s) || exp != 0) { in __ldtox_engine() 106 if (exp == 0) in __ldtox_engine() 107 exp = LDENORM_EXP_BIAS; in __ldtox_engine() 114 exp -= LEXP_BIAS; in __ldtox_engine() 141 exp += 4; in __ldtox_engine() 149 if (exp == LEXP_INF) { in __ldtox_engine() 174 dtoa->exp = exp; in __ldtox_engine()
|
D | ftoa_engine.c | 111 uint8_t exp = x.u >> 23; in __ftoa_engine() local 113 ftoa->exp = 0; in __ftoa_engine() 118 if(exp==0 && frac==0) in __ftoa_engine() 123 } else if(exp == 0xff) { in __ftoa_engine() 133 if (exp == 0) in __ftoa_engine() 134 exp = 1; in __ftoa_engine() 138 uint8_t idx = exp>>3; in __ftoa_engine() 156 prod >>= (15-(exp & 7)); in __ftoa_engine() 248 ftoa->exp = exp10; in __ftoa_engine()
|
/picolibc-latest/newlib/libm/ld/ld80/ |
D | e_fmodl.c | 69 if(ux.bits.exp<=uy.bits.exp) { in fmodl() 70 if((ux.bits.exp<uy.bits.exp) || in fmodl() 83 if(ux.bits.exp == 0) { /* subnormal x */ in fmodl() 85 ix = ux.bits.exp - (BIAS + 512); in fmodl() 87 ix = ux.bits.exp - BIAS; in fmodl() 91 if(uy.bits.exp == 0) { /* subnormal y */ in fmodl() 93 iy = uy.bits.exp - (BIAS + 512); in fmodl() 95 iy = uy.bits.exp - BIAS; in fmodl() 129 ux.bits.exp = iy + (BIAS + 512); in fmodl() 132 ux.bits.exp = iy + BIAS; in fmodl()
|