Home
last modified time | relevance | path

Searched refs:mant (Results 1 – 16 of 16) sorted by relevance

/picolibc-3.7.0-3.6.0/newlib/libm/machine/spu/headers/
Dllroundf.h43 vec_uint4 mant, sign, borrow; in _llroundf() local
52 mant = spu_sel(spu_rlmaskqwbyte((vec_uint4)in, -11), in _llroundf()
64 mant = spu_slqwbytebc(spu_slqw(mant, shift), shift); in _llroundf()
69 mant = spu_add(mant, spu_and(spu_rlqw(mant, 1), VEC_LITERAL(vec_uint4, 0,1,0,0))); in _llroundf()
76 mant = spu_xor(mant, sign); in _llroundf()
77 borrow = spu_genb(mant, sign); in _llroundf()
82 mant = spu_subx(mant, sign, borrow); in _llroundf()
84 return (spu_extract((vec_llong2)(mant), 0)); in _llroundf()
Dllround.h43 vec_uint4 mant, sign, mask, borrow, addend; in _llround() local
60 mant = spu_sel(spu_rlmaskqwbyte((vec_uint4)in, -8), VEC_SPLAT_U32(0x00100000), in _llround()
63 mant = spu_and(spu_slqwbytebc(spu_slqw(mant, shift), shift), mask); in _llround()
68 addend = spu_and(spu_rlqw(mant, 1), VEC_LITERAL(vec_uint4, 0,1,0,0)); in _llround()
69 mant = spu_addx(mant, addend, spu_rlqwbyte(spu_genc(mant, addend), 4)); in _llround()
76 mant = spu_xor(mant, sign); in _llround()
77 borrow = spu_genb(mant, sign); in _llround()
81 mant = spu_subx(mant, sign, borrow); in _llround()
83 return (spu_extract((vec_llong2)(mant), 0)); in _llround()
Dllrint.h43 vec_uint4 mant, sign, mask, borrow; in _llrint() local
52 mant = (vec_uint4)(spu_sub(spu_add(in, bias), bias)); in _llrint()
57 exp = spu_and(spu_rlmask((vec_int4)mant, -20), 0x7FF); in _llrint()
66 mant = spu_sel(spu_rlmaskqwbyte(mant, -8), VEC_SPLAT_U32(0x00100000), in _llrint()
69 mant = spu_and(spu_slqwbytebc(spu_slqw(mant, shift), shift), mask); in _llrint()
76 mant = spu_xor(mant, sign); in _llrint()
77 borrow = spu_genb(mant, sign); in _llrint()
81 mant = spu_subx(mant, sign, borrow); in _llrint()
83 return (spu_extract((vec_llong2)(mant), 0)); in _llrint()
Dlround.h48 vec_uint4 mant, sign, mask, addend; in _lround() local
64 mant = spu_sel(spu_rlmaskqwbyte((vec_uint4)in, -8), VEC_SPLAT_U32(0x00100000), in _lround()
67 mant = spu_slqwbytebc(spu_slqw(mant, shift), shift); in _lround()
72 addend = spu_and(spu_rlqw(mant, 1), 1); in _lround()
73 mant = spu_and(spu_add(mant, addend), mask); in _lround()
80 mant = spu_sub(spu_xor(mant, sign), sign); in _lround()
82 return ((long int)spu_extract(mant, 0)); in _lround()
Dllrintf.h43 vec_uint4 mant, sign, borrow; in _llrintf() local
52 mant = spu_sel(spu_rlmaskqwbyte((vec_uint4)in, -11), in _llrintf()
64 mant = spu_slqwbytebc(spu_slqw(mant, shift), shift); in _llrintf()
71 mant = spu_xor(mant, sign); in _llrintf()
72 borrow = spu_genb(mant, sign); in _llrintf()
76 mant = spu_subx(mant, sign, borrow); in _llrintf()
78 return (spu_extract((vec_llong2)(mant), 0)); in _llrintf()
Dsqrtf4.h64 vec_float4 mant, err, err_p1, err_p2, err_p3; in _sqrtf4() local
94 mant = spu_sel(y1_n1, y1, spu_cmpgt((vec_int4)(err), -1)); in _sqrtf4()
95 mant = spu_sel(mant, y1_p1, spu_cmpgt((vec_int4)(err_p1), -1)); in _sqrtf4()
96 mant = spu_sel(mant, y1_p2, spu_cmpgt((vec_int4)(err_p2), -1)); in _sqrtf4()
97 mant = spu_sel(mant, y1_p3, spu_cmpgt((vec_int4)(err_p3), -1)); in _sqrtf4()
108 out = spu_and(spu_sel(mant, (vec_float4)(exp), spu_splats(0xFF800000)), (vec_float4)(valid)); in _sqrtf4()
Dfrexpf.h47 vec_float4 in, mant; in _frexpf() local
53 mant = spu_sel(in, half, exp_mask); in _frexpf()
59 mant = spu_andc(mant, (vec_float4)mask); in _frexpf()
67 return (spu_extract(mant, 0)); in _frexpf()
Dcbrt.h70 vec_double2 in, out, mant, u, u3, ym, a, b, factor, inv_b; in _cbrt() local
77 mant = spu_sel(half, in, mant_mask); in _cbrt()
87 …u = spu_madd(mant, spu_madd(mant, spu_madd(mant, spu_madd(mant, spu_madd(mant, spu_nmsub(mant, c6,… in _cbrt()
109 a = spu_mul(spu_mul(factor, u), spu_madd(two, mant, u3)); in _cbrt()
110 b = spu_madd(two, u3, mant); in _cbrt()
Dfrexp.h48 vec_double2 in, mant; in _frexp() local
56 mant = spu_sel(in, half, exp_mask); in _frexp()
63 mant = spu_andc(mant, (vec_double2)mask); in _frexp()
72 return (spu_extract(mant, 0)); in _frexp()
Dilogb.h54 vec_uint4 v, exp, exp_0, mant, mask, count; in _ilogb() local
65 mant = spu_and(v, VEC_LITERAL(vec_uint4, 0x000FFFFF, 0xFFFFFFFF, 0, 0)); in _ilogb()
70 count = spu_cntlz(mant); in _ilogb()
Dcbrtf.h58 vec_float4 out, mant, ym, bf, inv_bf; in _cbrtf() local
72 mant = spu_sel(half, in, mant_mask); in _cbrtf()
81 mant0 = spu_extend(mant); in _cbrtf()
/picolibc-3.7.0-3.6.0/test/
Dfma_gen.5c127 real mant = abs(x / (2**(exp-bits)));
135 int ipart = floor(mant);
136 real fpart = mant - ipart;
138 # printf("%a: mant %e ipart %d fpart %f\n", x, mant, ipart, fpart);
213 mant = ipart / (2 ** bits);
214 if (mant >= 1) {
216 mant /= 2;
223 f.u.num = mant * 2 ** exp;
Dlong_double_gen.5c302 real mant = abs(mantissa(x)) * 2**bits;
304 int ipart = floor(mant);
305 real fpart = mant - ipart;
/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/
Dftoa_ryu.c330 uint32_t mant = v.mantissa; in __ftoa_engine() local
337 dtoa->digits[olength - i - 1] = (mant % 10) + '0'; in __ftoa_engine()
338 mant /= 10; in __ftoa_engine()
Ddtoa_ryu.c418 uint64_t mant = v.mantissa; in __dtoa_engine() local
425 dtoa->digits[olength - i - 1] = (mant % 10) + '0'; in __dtoa_engine()
426 mant /= 10; in __dtoa_engine()
/picolibc-3.7.0-3.6.0/newlib/libm/ld/ld80/
Dinvtrig.h65 uint64_t mant; member