Searched refs:mantissa (Results 1 – 8 of 8) sorted by relevance
68 s32 mantissa; in zl6100_l2d() local72 mantissa = ((s16)((l & 0x7ff) << 5)) >> 5; in zl6100_l2d()74 val = mantissa; in zl6100_l2d()92 s16 exponent = 0, mantissa; in zl6100_d2l() local116 mantissa = DIV_ROUND_CLOSEST(val, 1000); in zl6100_d2l()119 if (mantissa > 0x3ff) in zl6100_d2l()120 mantissa = 0x3ff; in zl6100_d2l()124 mantissa = -mantissa; in zl6100_d2l()127 return (mantissa & 0x7ff) | ((exponent << 11) & 0xf800); in zl6100_d2l()
411 s32 mantissa; in pmbus_reg2data_linear() local416 mantissa = (u16) sensor->data; in pmbus_reg2data_linear()419 mantissa = ((s16)((sensor->data & 0x7ff) << 5)) >> 5; in pmbus_reg2data_linear()422 val = mantissa; in pmbus_reg2data_linear()524 s16 exponent = 0, mantissa; in pmbus_data2reg_linear() local576 mantissa = DIV_ROUND_CLOSEST(val, 1000); in pmbus_data2reg_linear()579 if (mantissa > 0x3ff) in pmbus_data2reg_linear()580 mantissa = 0x3ff; in pmbus_data2reg_linear()584 mantissa = -mantissa; in pmbus_data2reg_linear()587 return (mantissa & 0x7ff) | ((exponent << 11) & 0xf800); in pmbus_data2reg_linear()
123 int sign, exponent, mantissa; in linear2ulaw() local134 mantissa = (sample >> (exponent + 3)) & 0x0F; in linear2ulaw()135 ulawbyte = ~(sign | (exponent << 4) | mantissa); in linear2ulaw()
265 mantissa; in isdn_audio_linear2ulaw() local278 mantissa = (sample >> (exponent + 3)) & 0x0F; in isdn_audio_linear2ulaw()279 ulawbyte = ~(sign | (exponent << 4) | mantissa); in isdn_audio_linear2ulaw()
1842 u_int mantissa; in hfcmulti_dtmf() local1881 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 …]
243 unsigned mantissa:BKEY_MANTISSA_BITS; member584 f->mantissa = bfloat_mantissa(m, f) - 1; in make_bfloat()917 (f->mantissa - in bset_search_tree()
35 static const u_char mantissa[] = { variable46 (mantissa[(((v)>>3)&15)-1] * exponent[(v)&7] / 10)49 (mantissa[((v)>>3)&15] * exponent[(v)&7] / 10)
340 u32 exp, mantissa, cps;344 mantissa = rate & M_MASK;347 cps = (1 << M_BITS) | mantissa;