Home
last modified time | relevance | path

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

12

/openbmc/linux/arch/m68k/math-emu/
H A Dmulti_arith.h27 reg->lowmant = reg->mant.m32[1] << (8 - cnt); in fp_denormalize()
28 reg->mant.m32[1] = (reg->mant.m32[1] >> cnt) | in fp_denormalize()
29 (reg->mant.m32[0] << (32 - cnt)); in fp_denormalize()
30 reg->mant.m32[0] = reg->mant.m32[0] >> cnt; in fp_denormalize()
33 reg->lowmant = reg->mant.m32[1] >> (cnt - 8); in fp_denormalize()
34 if (reg->mant.m32[1] << (40 - cnt)) in fp_denormalize()
36 reg->mant.m32[1] = (reg->mant.m32[1] >> cnt) | in fp_denormalize()
37 (reg->mant.m32[0] << (32 - cnt)); in fp_denormalize()
38 reg->mant.m32[0] = reg->mant.m32[0] >> cnt; in fp_denormalize()
42 : "m" (reg->mant.m32[0]), "d" (64 - cnt)); in fp_denormalize()
[all …]
H A Dfp_arith.c21 .mant = { .m64 = ~0 }
105 if (dest->mant.m64 < src->mant.m64) { in fp_fadd()
182 dest->mant.m64 = 0; in fp_fmul()
193 if ((long)dest->mant.m32[0] >= 0) in fp_fmul()
195 if ((long)src->mant.m32[0] >= 0) in fp_fmul()
252 dest->mant.m64 = 0; in fp_fdiv()
270 dest->mant.m64 = 0; in fp_fdiv()
280 if ((long)dest->mant.m32[0] >= 0) in fp_fdiv()
282 if ((long)src->mant.m32[0] >= 0) in fp_fdiv()
340 dest->mant.m64 = 0; in fp_fsglmul()
[all …]
H A Dfp_emu.h49 #define IS_ZERO(a) ((a)->mant.m64 == 0)
105 dest->mant.m64 = 0; \
H A Dfp_util.S141 move.l %d0,(%a0)+ | high lword of fp_ext.mant
/openbmc/linux/arch/powerpc/kernel/
H A Dvecemu.c42 unsigned int mant, frac; in eexp2() local
73 mant = exp2s[(pwr >> 20) & 7]; in eexp2()
78 asm("mulhwu %0,%1,%2" : "=r" (frac) : "r" (frac), "r" (mant)); in eexp2()
79 mant += frac; in eexp2()
82 return mant + (exp << 23); in eexp2()
86 mant += 1 << (exp - 1); in eexp2()
87 return mant >> exp; in eexp2()
96 int exp, mant, lz, frac; in elog2() local
99 mant = s & 0x7fffff; in elog2()
101 if (mant != 0) in elog2()
[all …]
/openbmc/qemu/target/hexagon/
H A Dfma_emu.c50 uint64_t mant:52; member
60 uint32_t mant:23; member
70 return a.mant | 1ULL << 52; in float64_getmant()
76 return a.mant; in float64_getmant()
97 return a.mant | 1ULL << 23; in float32_getmant()
103 return a.mant; in float32_getmant()
164 Int128 mant; member
174 p->mant = int128_zero(); in accum_init()
185 a.mant = int128_lshift(a.mant, 1); in accum_norm_left()
186 a.mant = int128_or(a.mant, int128_make64(a.guard)); in accum_norm_left()
[all …]
H A Dop_helper.c299 static float32 build_float32(uint8_t sign, uint32_t exp, uint32_t mant) in build_float32() argument
304 (mant & ((1 << SF_MANTBITS) - 1))); in build_float32()
321 int mant; in HELPER() local
328 mant = (recip_lookup_table[idx] << 15) | 1; in HELPER()
330 RdV = build_float32(extract32(RtV, 31, 1), exp, mant); in HELPER()
342 int mant; in HELPER() local
349 mant = (invsqrt_lookup_table[idx] << 15); in HELPER()
351 RdV = build_float32(extract32(RsV, 31, 1), exp, mant); in HELPER()
/openbmc/linux/arch/m68k/fpsp040/
H A Dsgetem.S94 movel LOCAL_HI(%a0),%d0 |load ms mant in d0
95 movel LOCAL_LO(%a0),%d1 |load ls mant in d1
97 movel %d0,LOCAL_HI(%a0) |put ms mant back on stack
98 movel %d1,LOCAL_LO(%a0) |put ls mant back on stack
111 tstl %d0 |if any bits set in ms mant
113 | ;else no bits set in ms mant
114 tstl %d1 |test if any bits set in ls mant
119 exg %d0,%d1 |shift ls mant to ms mant
120 bfffo %d0{#0:#32},%d3 |find first 1 in ls mant to d0
121 lsll %d3,%d0 |shift first 1 to integer bit in ms mant
[all …]
H A Dround.S216 roxrw LOCAL_HI(%a0) |mant is 0 so restore v-bit
217 roxrw LOCAL_HI+2(%a0) |mant is 0 so restore v-bit
235 roxrw LOCAL_HI(%a0) |mant is 0 so restore v-bit
236 roxrw LOCAL_HI+2(%a0) |mant is 0 so restore v-bit
325 movel %d2,%d6 |save ls mant in d6
326 lsll %d0,%d2 |shift ls mant by count
327 lsll %d0,%d1 |shift ms mant by count
332 orl %d6,%d1 |shift the ls mant bits into the ms mant
341 bfffo %d2{#0:#32},%d3 |check if any bits set in ls mant
365 movel LOCAL_HI(%a0),%d0 |d0 has ms mant
[all …]
H A Dx_store.S118 | extended -> |s| exp | |1| ms mant | | ls mant |
126 | double -> |s|exp| mant | | mant |
H A Dx_operr.S163 bsr check_upper |check if exp and ms mant are special
190 bsr check_upper |check if exp and ms mant are special
H A Ddecbin.S127 | 4. Subtract 16 to compensate for interpreting the mant as all integer digits.
485 fdivx %fp1,%fp0 |exp is negative, so divide mant by exp
/openbmc/qemu/include/fpu/
H A Dsoftfloat-types.h103 #define make_floatx80(exp, mant) ((floatx80) { mant, exp }) argument
104 #define make_floatx80_init(exp, mant) { .low = mant, .high = exp } argument
/openbmc/qemu/target/alpha/
H A Dvax_helper.c32 uint64_t r, exp, mant, sig; in float32_to_f() local
38 mant = ((uint64_t)a.l & 0x007fffff) << 29; in float32_to_f()
44 if (mant == 0) { in float32_to_f()
49 r = sig | ((exp + 1) << 52) | mant; in float32_to_f()
163 uint64_t r, exp, mant, sig; in float64_to_g() local
169 mant = a.ll & 0x000fffffffffffffull; in float64_to_g()
175 if (mant == 0) { in float64_to_g()
180 r = sig | ((exp + 1) << 52) | mant; in float64_to_g()
/openbmc/linux/arch/mips/math-emu/
H A Dieee754dp.h29 #define DPMANT(dp) (dp.mant)
67 r.mant = m; in builddp()
H A Dieee754sp.h29 #define SPMANT(sp) (sp.mant)
71 r.mant = m; in buildsp()
H A Dieee754.c33 .mant = (m) \
H A Dieee754.h26 __BITFIELD_FIELD(u64 mant:52,
36 __BITFIELD_FIELD(unsigned mant:23,
/openbmc/qemu/target/hexagon/imported/
H A Dfloat.idef154 fHIDE(int mant;)
159 mant = (fSF_RECIP_LOOKUP(idx) << 15) | 1;
161 RdV = fMAKESF(fGETBIT(31,RtV),exp,mant);
186 fHIDE(int mant;)
191 mant = (fSF_INVSQRT_LOOKUP(idx) << 15);
193 RdV = fMAKESF(fGETBIT(31,RsV),exp,mant);
/openbmc/qemu/target/m68k/
H A Dcpu.c363 static floatx80 cpu_set_fp80(uint64_t mant, uint16_t upper) in cpu_set_fp80() argument
368 temp.l.lower = mant; in cpu_set_fp80()
/openbmc/qemu/disas/
H A Dm68k.c4728 unsigned long mant; in floatformat_to_double() local
4810 mant = get_field (ufrom, fmt->byteorder, fmt->totalsize, in floatformat_to_double()
4815 if (exponent == 0 && mant != 0) in floatformat_to_double()
4816 dto += ldexp ((double)mant, in floatformat_to_double()
4822 dto += ldexp ((double)mant, exponent - mant_bits); in floatformat_to_double()
4898 double mant; in floatformat_from_double() local
4939 mant = frexp (dfrom, &exponent); in floatformat_from_double()
4949 mant = ldexp (mant, exponent + fmt->exp_bias - 1); in floatformat_from_double()
4959 mant *= 4294967296.0; in floatformat_from_double()
4960 mant_long = (unsigned long)mant; in floatformat_from_double()
[all …]
/openbmc/linux/drivers/hwmon/
H A Dcorsair-psu.c146 const int mant = (((s16)(val & 0x7ff)) << 5) >> 5; in corsairpsu_linear11_to_int() local
147 const int result = mant * scale; in corsairpsu_linear11_to_int()
/openbmc/linux/arch/m68k/include/asm/
H A Dmath-emu.h90 union fp_mant64 mant; member
/openbmc/linux/drivers/media/dvb-frontends/
H A Ddib7000p.c2150 u32 tmp_val = 0, exp = 0, mant = 0; in dib7000p_get_adc_power() local
2164 mant = (pow_i * 1000 / (1 << exp)); in dib7000p_get_adc_power()
2165 dprintk(" mant = %d exp = %d\n", mant / 1000, exp); in dib7000p_get_adc_power()
2167 ix = (u8) ((mant - 1000) / 100); /* index of the LUT */ in dib7000p_get_adc_power()
/openbmc/qemu/target/i386/
H A Dmachine.c172 static floatx80 cpu_set_fp80(uint64_t mant, uint16_t upper) in cpu_set_fp80() argument
177 temp.l.lower = mant; in cpu_set_fp80()

12