| /linux/arch/m68k/fpsp040/ |
| H A D | sgetem.S | 10 | The entry point sGETMAN extracts the mantissa of the 11 | input argument. The mantissa is converted to an 73 | For normalized numbers, leave the mantissa alone, simply load 89 | For denormalized numbers, shift the mantissa until the j-bit = 1, 96 bsr shft |shift mantissa bits till msbit is set 104 | Shifts the mantissa bits until msbit is set. 106 | ms mantissa part in d0 107 | ls mantissa part in d1
|
| H A D | fpsp.h | 132 .set WBTEMP_HI,WBTEMP+4 | wbtemp mantissa [63:32] (4 bytes) 133 .set WBTEMP_LO,WBTEMP+8 | wbtemp mantissa [31:00] (4 bytes) 165 .set wbtemp66_bit,2 | wbtemp mantissa bit #66 166 .set wbtemp1_bit,1 | wbtemp mantissa bit #1 167 .set wbtemp0_bit,0 | wbtemp mantissa bit #0 201 .set FPTEMP_HI,FPTEMP+4 | fptemp mantissa [63:32] (4 bytes) 202 .set FPTEMP_LO,FPTEMP+8 | fptemp mantissa [31:00] (4 bytes) 208 .set ETEMP_HI,ETEMP+4 | etemp mantissa [63:32] (4 bytes) 209 .set ETEMP_LO,ETEMP+8 | etemp mantissa [31:00] (4 bytes) 302 .set signan_bit,6 | signalling nan bit in mantissa [all …]
|
| H A D | x_store.S | 140 beqs get_mant |if positive, go process mantissa 143 bras get_mant |go process mantissa 154 movel LOCAL_HI(%a1),%d1 |get ms mantissa 158 movel LOCAL_HI(%a1),%d1 |get ms mantissa 162 movel LOCAL_LO(%a1),%d1 |get ls mantissa
|
| H A D | round.S | 154 tstl LOCAL_LO(%a0) |test lower mantissa 163 movel LOCAL_LO(%a0),%d2 |get lower mantissa for s-bit test 195 bccs scc_clr |no mantissa overflow 272 | is done by shifting the mantissa left while decrementing the 276 | bit of the mantissa (msb in d1). 279 | bit of the mantissa (msb in d1) unless this would mean the exponent 281 | exponent (d0) is set to 0 and the mantissa (d1 & d2) is not 289 | Distance to first 1 bit in mantissa = X 295 | shift mantissa by Y 299 | FP_SCR1 = exponent, ms mantissa part, ls mantissa part [all …]
|
| H A D | decbin.S | 26 | for the mantissa which is to be interpreted as 17 integer 30 | A2. Convert the bcd mantissa to binary by successive 32 | The mantissa digits will be converted with the decimal point 41 | mantissa the equivalent of forcing in the bcd value: 56 | A5. Form the final binary number by scaling the mantissa by 58 | mantissa in FP0 by the factor in FP1 if the adjusted 478 | (*) fp0: mantissa accumulator
|
| H A D | get_op.S | 503 tstl ETEMP_HI(%a6) |check ms mantissa 505 tstl ETEMP_LO(%a6) |check ls mantissa 555 tstl ETEMP_HI(%a6) |check ms mantissa 557 tstl ETEMP_LO(%a6) |check ls mantissa
|
| H A D | x_snan.S | 14 | of the mantissa are sent to the integer unit). 161 | Get the 32 most significant bits of etemp mantissa 183 | Get the 16 most significant bits of etemp mantissa 205 | Get the 8 most significant bits of etemp mantissa
|
| H A D | bindec.S | 68 | The mantissa is scaled to the desired number of 90 | the mantissa by 10. 92 | A14. Convert the mantissa to bcd. 94 | mantissa to bcd in memory. The input to binstr is 95 | to be a fraction; i.e. (mantissa)/10^LEN and adjusted 114 | d2: upper 32-bits of mantissa for binstr 115 | d3: scratch;lower 32-bits of mantissa for binstr 611 | the mantissa by 10. The calculation of 10^LEN cannot
|
| H A D | scale.S | 164 | mantissa right until a zero exponent exists. 177 roxrl #1,%d2 |mantissa to the right 182 blts fix_loop |d0 is zero or the mantissa
|
| H A D | x_unfl.S | 10 | shifting the mantissa right while incrementing the exponent until
|
| /linux/drivers/hid/amd-sfh-hid/sfh1_1/ |
| H A D | amd_sfh_desc.c | 137 int fraction, shift, mantissa, sign, exp, zeropre; in amd_sfh_float_to_int() local 139 mantissa = flt32_val & GENMASK(22, 0); in amd_sfh_float_to_int() 143 if (!exp && !mantissa) in amd_sfh_float_to_int() 155 zeropre = (((BIT(23) + mantissa) * 100) >> 23) >> exp; in amd_sfh_float_to_int() 165 flt32_val = BIT(exp) + (mantissa << shift); in amd_sfh_float_to_int() 168 flt32_val = BIT(exp) + (mantissa >> shift); in amd_sfh_float_to_int() 171 fraction = (shift == 0) ? 0 : mantissa & GENMASK(shift - 1, 0); in amd_sfh_float_to_int()
|
| /linux/drivers/iio/light/ |
| H A D | opt3001.c | 250 static void opt3001_to_iio_ret(struct opt3001 *opt, u8 exponent, u16 mantissa, in opt3001_to_iio_ret() argument 258 ret = whole * (mantissa << exponent); in opt3001_to_iio_ret() 444 u16 mantissa; in opt3001_get_processed() local 456 mantissa = OPT3001_REG_MANTISSA(opt->result); in opt3001_get_processed() 458 opt3001_to_iio_ret(opt, exponent, mantissa, val, val2); in opt3001_get_processed() 591 u16 mantissa; in opt3001_write_event_value() local 612 mantissa = (((val * integer) + (val2 / decimal)) / whole) >> exponent; in opt3001_write_event_value() 614 value = (exponent << 12) | mantissa; in opt3001_write_event_value() 619 opt->high_thresh_mantissa = mantissa; in opt3001_write_event_value() 624 opt->low_thresh_mantissa = mantissa; in opt3001_write_event_value()
|
| /linux/sound/isa/gus/ |
| H A D | gus_volume.c | 152 unsigned int mantissa, f1, f2; 166 mantissa = sensitivity % 8192; 173 bend = (int) ((((f2 - f1) * mantissa) >> 13) + f1);
|
| /linux/drivers/clk/ti/ |
| H A D | dpll3xxx.c | 305 u32 v, ctrl, mod_freq_divider, exponent, mantissa; in omap3_noncore_dpll_ssc_program() local 326 mantissa = mod_freq_divider; in omap3_noncore_dpll_ssc_program() 327 while ((mantissa > 127) && (exponent < 7)) { in omap3_noncore_dpll_ssc_program() 329 mantissa /= 2; in omap3_noncore_dpll_ssc_program() 331 if (mantissa > 127) in omap3_noncore_dpll_ssc_program() 332 mantissa = 127; in omap3_noncore_dpll_ssc_program() 336 v |= mantissa << __ffs(dd->ssc_modfreq_mant_mask); in omap3_noncore_dpll_ssc_program()
|
| /linux/arch/m68k/math-emu/ |
| H A D | fp_util.S | 108 move.l %d0,(%a0)+ | set mantissa 131 lsl.l #8,%d0 | shift mantissa 168 lsl.l #8,%d0 | shift high mantissa
|
| /linux/drivers/md/bcache/ |
| H A D | util.h | 550 unsigned int mantissa = 1 << fract_bits; /* Implicit bit */ in fract_exp_two() local 552 mantissa += x & (mantissa - 1); in fract_exp_two() 555 return mantissa << x >> fract_bits; in fract_exp_two()
|
| H A D | bset.c | 247 unsigned int mantissa:BKEY_MANTISSA_BITS; member 632 f->mantissa = bfloat_mantissa(m, f) - 1; in make_bfloat() 976 if (f->mantissa >= bfloat_mantissa(search, f)) in bset_search_tree()
|
| /linux/drivers/hwmon/pmbus/ |
| H A D | pmbus_core.c | 874 s32 mantissa; in pmbus_reg2data_linear() local 879 mantissa = (u16)sensor->data; in pmbus_reg2data_linear() 882 mantissa = ((s16)((sensor->data & 0x7ff) << 5)) >> 5; in pmbus_reg2data_linear() 885 val = mantissa; in pmbus_reg2data_linear() 1018 long mantissa; in pmbus_data2reg_ieee754() local 1056 mantissa = DIV_ROUND_CLOSEST(val, 1000); in pmbus_data2reg_ieee754() 1066 if (mantissa > 0x7ff) in pmbus_data2reg_ieee754() 1067 mantissa = 0x7ff; in pmbus_data2reg_ieee754() 1068 else if (mantissa < 0x400) in pmbus_data2reg_ieee754() 1069 mantissa = 0x400; in pmbus_data2reg_ieee754() [all …]
|
| H A D | mp2975.c | 178 s16 exponent = 0, mantissa; in mp2975_data2reg_linear11() local 196 mantissa = clamp_val(DIV_ROUND_CLOSEST_ULL(val, 1000), 0, 0x3ff); in mp2975_data2reg_linear11() 199 return (mantissa & 0x7ff) | ((exponent << 11) & 0xf800); in mp2975_data2reg_linear11()
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_tc.c | 70 u32 *mantissa, u32 *div_exp) in otx2_get_egress_rate_cfg() argument 89 *mantissa = 0; in otx2_get_egress_rate_cfg() 94 *mantissa = (maxrate << RATE_MANTISSA_BITS) >> *exp; in otx2_get_egress_rate_cfg() 99 *mantissa = MAX_RATE_MANTISSA; in otx2_get_egress_rate_cfg() 107 u32 exp, mantissa, div_exp; in otx2_get_txschq_rate_regval() local 112 otx2_get_egress_rate_cfg(maxrate, &exp, &mantissa, &div_exp); in otx2_get_txschq_rate_regval() 119 FIELD_PREP(TLX_RATE_MANTISSA, mantissa) | BIT_ULL(0); in otx2_get_txschq_rate_regval() 125 FIELD_PREP(TLX_RATE_MANTISSA, mantissa) | BIT_ULL(0); in otx2_get_txschq_rate_regval()
|
| /linux/drivers/iio/proximity/ |
| H A D | isl29501.c | 443 int mantissa; in isl29501_write_ext() local 449 mantissa = corr >> max_exp; in isl29501_write_ext() 451 ret = isl29501_write_coeff(isl29501, i, mantissa); in isl29501_write_ext()
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
| H A D | mac.c | 2238 u16 mantissa; in mt7915_mac_check_twt_req() local 2257 mantissa = le16_to_cpu(twt_agrt->mantissa); in mt7915_mac_check_twt_req() 2260 interval = (u64)mantissa << exp; in mt7915_mac_check_twt_req() 2284 f->mantissa == twt_agrt->mantissa && in mt7915_mac_twt_param_equal() 2345 flow->mantissa = twt_agrt->mantissa; in mt7915_mac_add_twt_setup() 2353 u64 interval = (u64)le16_to_cpu(twt_agrt->mantissa) << exp; in mt7915_mac_add_twt_setup()
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7996/ |
| H A D | mac.c | 3150 u16 mantissa; in mt7996_mac_check_twt_req() local 3169 mantissa = le16_to_cpu(twt_agrt->mantissa); in mt7996_mac_check_twt_req() 3172 interval = (u64)mantissa << exp; in mt7996_mac_check_twt_req() 3196 f->mantissa == twt_agrt->mantissa && in mt7996_mac_twt_param_equal() 3264 flow->mantissa = twt_agrt->mantissa; in mt7996_mac_add_twt_setup() 3272 u64 interval = (u64)le16_to_cpu(twt_agrt->mantissa) << exp; in mt7996_mac_add_twt_setup()
|
| /linux/drivers/pcmcia/ |
| H A D | cistpl.c | 34 static const u_char mantissa[] = { variable 45 (mantissa[(((v)>>3)&15)-1] * exponent[(v)&7] / 10) 48 (mantissa[((v)>>3)&15] * exponent[(v)&7] / 10)
|
| /linux/drivers/usb/gadget/ |
| H A D | composite.c | 848 u8 mantissa; in bos_desc() local 855 mantissa = 10; in bos_desc() 857 mantissa = 5 << ssid; in bos_desc() 871 FIELD_PREP(USB_SSP_SUBLINK_SPEED_LSM, mantissa)); in bos_desc()
|