/linux-4.4.14/drivers/hwmon/pmbus/ |
D | zl6100.c | 69 s32 mantissa; in zl6100_l2d() local 73 mantissa = ((s16)((l & 0x7ff) << 5)) >> 5; in zl6100_l2d() 75 val = mantissa; in zl6100_l2d() 93 s16 exponent = 0, mantissa; in zl6100_d2l() local 117 mantissa = DIV_ROUND_CLOSEST(val, 1000); in zl6100_d2l() 120 if (mantissa > 0x3ff) in zl6100_d2l() 121 mantissa = 0x3ff; in zl6100_d2l() 125 mantissa = -mantissa; in zl6100_d2l() 128 return (mantissa & 0x7ff) | ((exponent << 11) & 0xf800); in zl6100_d2l()
|
D | pmbus_core.c | 443 s32 mantissa; in pmbus_reg2data_linear() local 448 mantissa = (u16) sensor->data; in pmbus_reg2data_linear() 451 mantissa = ((s16)((sensor->data & 0x7ff) << 5)) >> 5; in pmbus_reg2data_linear() 454 val = mantissa; in pmbus_reg2data_linear() 563 s16 exponent = 0, mantissa; in pmbus_data2reg_linear() local 615 mantissa = DIV_ROUND_CLOSEST(val, 1000); in pmbus_data2reg_linear() 618 if (mantissa > 0x3ff) in pmbus_data2reg_linear() 619 mantissa = 0x3ff; in pmbus_data2reg_linear() 623 mantissa = -mantissa; in pmbus_data2reg_linear() 626 return (mantissa & 0x7ff) | ((exponent << 11) & 0xf800); in pmbus_data2reg_linear()
|
/linux-4.4.14/arch/m68k/fpsp040/ |
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
|
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 …]
|
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
|
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 …]
|
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
|
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
|
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
|
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
|
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
|
D | x_unfl.S | 10 | shifting the mantissa right while incrementing the exponent until
|
D | x_operr.S | 283 | mantissa for $ffffffff. If both are true, return d0 clr
|
D | res_func.S | 963 | and aovfl, and clr the mantissa (incorrectly set by the 1144 | and aovfl, and clr the mantissa (incorrectly set by the
|
/linux-4.4.14/drivers/iio/light/ |
D | opt3001.c | 170 u16 mantissa, int *val, int *val2) in opt3001_to_iio_ret() argument 174 lux = 10 * (mantissa << exponent); in opt3001_to_iio_ret() 226 u16 mantissa; in opt3001_get_lux() local 298 mantissa = OPT3001_REG_MANTISSA(opt->result); in opt3001_get_lux() 300 opt3001_to_iio_ret(opt, exponent, mantissa, val, val2); in opt3001_get_lux() 437 u16 mantissa; in opt3001_write_event_value() local 454 mantissa = (((val * 1000) + (val2 / 1000)) / 10) >> exponent; in opt3001_write_event_value() 455 value = (exponent << 12) | mantissa; in opt3001_write_event_value() 460 opt->high_thresh_mantissa = mantissa; in opt3001_write_event_value() 465 opt->low_thresh_mantissa = mantissa; in opt3001_write_event_value()
|
/linux-4.4.14/sound/isa/gus/ |
D | gus_volume.c | 165 unsigned int mantissa, f1, f2; 179 mantissa = sensitivity % 8192; 186 bend = (int) ((((f2 - f1) * mantissa) >> 13) + f1);
|
/linux-4.4.14/drivers/usb/serial/ |
D | pl2303.c | 365 unsigned int baseline, mantissa, exponent; in pl2303_encode_baud_rate_divisor() local 375 mantissa = baseline / baud; in pl2303_encode_baud_rate_divisor() 376 if (mantissa == 0) in pl2303_encode_baud_rate_divisor() 377 mantissa = 1; /* Avoid dividing by zero if baud > 32*12M. */ in pl2303_encode_baud_rate_divisor() 379 while (mantissa >= 512) { in pl2303_encode_baud_rate_divisor() 381 mantissa >>= 2; /* divide by 4 */ in pl2303_encode_baud_rate_divisor() 385 mantissa = 511; in pl2303_encode_baud_rate_divisor() 392 buf[1] = exponent << 1 | mantissa >> 8; in pl2303_encode_baud_rate_divisor() 393 buf[0] = mantissa & 0xff; in pl2303_encode_baud_rate_divisor() 396 baud = (baseline / mantissa) >> (exponent << 1); in pl2303_encode_baud_rate_divisor()
|
/linux-4.4.14/arch/m68k/math-emu/ |
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
|
D | fp_scan.S | 373 | read this as "1.0 * 2^0" - note the high bit in the mantissa
|
/linux-4.4.14/drivers/isdn/mISDN/ |
D | dsp_audio.c | 124 int sign, exponent, mantissa; in linear2ulaw() local 135 mantissa = (sample >> (exponent + 3)) & 0x0F; in linear2ulaw() 136 ulawbyte = ~(sign | (exponent << 4) | mantissa); in linear2ulaw()
|
/linux-4.4.14/drivers/isdn/i4l/ |
D | isdn_audio.c | 265 mantissa; in isdn_audio_linear2ulaw() local 278 mantissa = (sample >> (exponent + 3)) & 0x0F; in isdn_audio_linear2ulaw() 279 ulawbyte = ~(sign | (exponent << 4) | mantissa); in isdn_audio_linear2ulaw()
|
/linux-4.4.14/drivers/tty/serial/ |
D | stm32-usart.c | 350 u32 usartdiv, mantissa, fraction, oversampling; in stm32_set_termios() local 403 mantissa = (usartdiv / oversampling) << USART_BRR_DIV_M_SHIFT; in stm32_set_termios() 405 writel_relaxed(mantissa | fraction, port->membase + USART_BRR); in stm32_set_termios()
|
/linux-4.4.14/drivers/md/bcache/ |
D | bset.c | 243 unsigned mantissa:BKEY_MANTISSA_BITS; member 584 f->mantissa = bfloat_mantissa(m, f) - 1; in make_bfloat() 917 (f->mantissa - in bset_search_tree()
|
/linux-4.4.14/drivers/isdn/hardware/mISDN/ |
D | hfcmulti.c | 1842 u_int mantissa; in hfcmulti_dtmf() local 1881 mantissa = w_float & 0x0fff; in hfcmulti_dtmf() 1883 mantissa |= 0xfffff000; in hfcmulti_dtmf() 1886 mantissa ^= 0x1000; in hfcmulti_dtmf() 1887 mantissa <<= (exponent - 1); in hfcmulti_dtmf() 1891 coeff[co << 1] = mantissa; in hfcmulti_dtmf() 1900 mantissa = w_float & 0x0fff; in hfcmulti_dtmf() 1902 mantissa |= 0xfffff000; in hfcmulti_dtmf() 1905 mantissa ^= 0x1000; in hfcmulti_dtmf() 1906 mantissa <<= (exponent - 1); in hfcmulti_dtmf() [all …]
|
/linux-4.4.14/drivers/pcmcia/ |
D | cistpl.c | 35 static const u_char mantissa[] = { variable 46 (mantissa[(((v)>>3)&15)-1] * exponent[(v)&7] / 10) 49 (mantissa[((v)>>3)&15] * exponent[(v)&7] / 10)
|
/linux-4.4.14/arch/m68k/ifpsp060/src/ |
D | fpsp.S | 1485 bsr.l norm # normalize mantissa 9477 bsr.l _round # round the mantissa 9633 mov.l &0x80000000,%d1 # load normalized mantissa 9639 clr.l -(%sp) # insert zero low mantissa 9640 mov.l %d1,-(%sp) # insert new high mantissa 9645 lsr.l %d0,%d1 # make low mantissa longword 9646 mov.l %d1,-(%sp) # insert new low mantissa 9647 clr.l -(%sp) # insert zero high mantissa 10209 # so, normalize the mantissa, add 0x6000 to the new exponent, 10217 bsr.l norm # normalize mantissa [all …]
|
D | fplsp.S | 508 set mantissalen, 64 # length of mantissa in bits 7501 # sgetman(): extracts the mantissa of the input argument. The # 7502 # mantissa is converted to an extended precision number w/ # 7511 # fp0 = exponent(X) or mantissa(X) # 7556 # For denormalized numbers, shift the mantissa until the j-bit = 1, 9302 mov.l &0x80000000,-(%sp) # insert new high mantissa 9303 mov.l %d0,-(%sp) # insert new lo mantissa 10045 bsr.l norm # normalize mantissa 10831 # a0 = the input operand's mantissa is normalized; the exponent # 10840 mov.l FTEMP_HI(%a0), %d0 # load hi(mantissa) [all …]
|
D | pfpsp.S | 1484 bsr.l norm # normalize mantissa 7903 # "mantissa" is all zero which means that the answer is zero. but, the '040
|
/linux-4.4.14/arch/m68k/ |
D | Kconfig.cpu | 315 mantissa and round slightly incorrect, what is more than enough
|
/linux-4.4.14/drivers/atm/ |
D | iphase.c | 341 u32 exp, mantissa, cps; 345 mantissa = rate & M_MASK; 348 cps = (1 << M_BITS) | mantissa;
|
/linux-4.4.14/arch/arm/ |
D | Kconfig | 2087 precision for the mantissa. It does not support any exceptions.
|