| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/calcs/ |
| H A D | custom_float.c | 33 uint32_t *mantissa, in build_custom_float() argument 49 *mantissa = 0; in build_custom_float() 78 *mantissa = 0; in build_custom_float() 117 *mantissa = dc_fixpt_floor(mantiss); in build_custom_float() 125 uint32_t mantissa, in setup_custom_float() argument 144 if (mantissa & ~mantissa_mask) { in setup_custom_float() 146 mantissa = mantissa_mask; in setup_custom_float() 159 if (mantissa & mask) in setup_custom_float() 187 uint32_t mantissa; in convert_to_custom_float_format() local 192 value, format, &negative, &mantissa, &exponenta) && in convert_to_custom_float_format() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/iio/light/ |
| H A D | max44009.c | 174 int mantissa; in max44009_lux_raw() local 181 mantissa = ((hi & 0xf) << 4) | (lo & 0xf); in max44009_lux_raw() 191 return exponent * mantissa; in max44009_lux_raw() 301 int mantissa, exp; in max44009_threshold_byte_from_fraction() local 309 mantissa = integral * MAX44009_SCALE_DENOMINATOR; in max44009_threshold_byte_from_fraction() 310 mantissa /= MAX44009_SCALE_NUMERATOR; in max44009_threshold_byte_from_fraction() 313 mantissa += fractional / MAX44009_FRACT_MULT * in max44009_threshold_byte_from_fraction() 316 for (exp = 0; mantissa > 0xff; exp++) in max44009_threshold_byte_from_fraction() 317 mantissa >>= 1; in max44009_threshold_byte_from_fraction() 319 mantissa >>= 4; in max44009_threshold_byte_from_fraction() [all …]
|
| H A D | opt3001.c | 171 u16 mantissa, int *val, int *val2) in opt3001_to_iio_ret() argument 175 lux = 10 * (mantissa << exponent); in opt3001_to_iio_ret() 227 u16 mantissa; in opt3001_get_lux() local 340 mantissa = OPT3001_REG_MANTISSA(opt->result); in opt3001_get_lux() 342 opt3001_to_iio_ret(opt, exponent, mantissa, val, val2); in opt3001_get_lux() 479 u16 mantissa; in opt3001_write_event_value() local 496 mantissa = (((val * 1000) + (val2 / 1000)) / 10) >> exponent; in opt3001_write_event_value() 497 value = (exponent << 12) | mantissa; in opt3001_write_event_value() 502 opt->high_thresh_mantissa = mantissa; in opt3001_write_event_value() 507 opt->low_thresh_mantissa = mantissa; in opt3001_write_event_value()
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/spirit/home/support/detail/math/ |
| H A D | fpclassify.hpp | 97 a &= traits::exponent | traits::mantissa; in isinf_impl() 107 a &= traits::exponent | traits::mantissa; in isinf_impl() 135 a &= traits::exponent | traits::mantissa; in isnan_impl() 147 a &= traits::exponent | traits::mantissa; in isnan_impl() 151 a &= traits::mantissa; in isnan_impl() 175 a &= traits::exponent | traits::flag | traits::mantissa; in fpclassify_impl() 177 if(a <= traits::mantissa) { in fpclassify_impl() 187 a &= traits::mantissa; in fpclassify_impl() 200 a &= traits::exponent | traits::flag | traits::mantissa; in fpclassify_impl() 202 if(a <= traits::mantissa) { in fpclassify_impl() [all …]
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/spirit/home/support/detail/math/detail/ |
| H A D | fp_traits.hpp | 116 static uint32_t mantissa; member 145 template<class T, class U> uint32_t fp_traits_impl<T,U>::mantissa; member in boost::spirit::math::detail::fp_traits_impl<T,U> 176 mantissa = 0x007fffff; in do_init_() 184 mantissa = 0x000fffff; in do_init_() 205 mantissa = 0x0000ffff; in do_init_() 213 mantissa = 0x00007fff; in do_init_() 237 BOOST_STATIC_CONSTANT(uint32_t, mantissa = 0x007fffff); 257 BOOST_STATIC_CONSTANT(uint32_t, mantissa = 0x000fffff); 294 static const uint64_t mantissa member 317 BOOST_STATIC_CONSTANT(uint32_t, mantissa = 0x000fffff); [all …]
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-omap2/am33xx/ |
| H A D | clock_am33xx.c | 247 u32 mantissa; in set_mpu_spreadspectrum() local 269 mantissa = mod_freq_divider; in set_mpu_spreadspectrum() 270 while ((mantissa > 127) && (exponent < 7)) { in set_mpu_spreadspectrum() 272 mantissa /= 2; in set_mpu_spreadspectrum() 274 if (mantissa > 127) in set_mpu_spreadspectrum() 275 mantissa = 127; in set_mpu_spreadspectrum() 277 mod_freq_divider = mantissa << exponent; in set_mpu_spreadspectrum() 293 writel((exponent << 8) | mantissa, &cmwkup->sscmodfreqdivdpllmpu); in set_mpu_spreadspectrum()
|
| /OK3568_Linux_fs/kernel/drivers/hwmon/pmbus/ |
| H A D | zl6100.c | 56 s32 mantissa; in zl6100_l2d() local 60 mantissa = ((s16)((l & 0x7ff) << 5)) >> 5; in zl6100_l2d() 62 val = mantissa; in zl6100_l2d() 80 s16 exponent = 0, mantissa; in zl6100_d2l() local 104 mantissa = DIV_ROUND_CLOSEST(val, 1000); in zl6100_d2l() 107 if (mantissa > 0x3ff) in zl6100_d2l() 108 mantissa = 0x3ff; in zl6100_d2l() 112 mantissa = -mantissa; in zl6100_d2l() 115 return (mantissa & 0x7ff) | ((exponent << 11) & 0xf800); in zl6100_d2l()
|
| H A D | xdpe12284.c | 27 s32 mantissa; in xdpe122_read_word_data() local 39 mantissa = ((s16)((ret & GENMASK(10, 0)) << 5)) >> 5; in xdpe122_read_word_data() 40 val = mantissa * 1000L; in xdpe122_read_word_data()
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/ |
| H A D | ieee754.h | 37 unsigned int mantissa:23; member 40 unsigned int mantissa:23; member 53 unsigned int mantissa:22; member 56 unsigned int mantissa:22; member
|
| /OK3568_Linux_fs/kernel/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 | 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 | 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 | 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 | 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
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/ |
| H A D | ieee754.h | 37 unsigned int mantissa:23; member 40 unsigned int mantissa:23; member 53 unsigned int mantissa:22; member 56 unsigned int mantissa:22; member
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-graphics/vk-gl-cts/files/ |
| H A D | 0001-Workaround-for-GCC-11-uninit-variable-warnings-946.patch | 32 uint32_t hex = sign | exponent | mantissa; 44 uint32_t mantissa = (static_cast<uint32_t>(value[0]) & 0x3f) << 17U; 46 uint32_t hex = exponent | mantissa; 58 uint32_t mantissa = (static_cast<uint32_t>(value[0]) & 0x1f) << 18U; 60 uint32_t hex = exponent | mantissa;
|
| /OK3568_Linux_fs/u-boot/drivers/serial/ |
| H A D | serial_stm32x7.c | 22 u32 int_div, mantissa, fraction, oversampling; in stm32_serial_setbrg() local 34 mantissa = (int_div / oversampling) << USART_BRR_M_SHIFT; in stm32_serial_setbrg() 37 writel(mantissa | fraction, &usart->brr); in stm32_serial_setbrg()
|
| /OK3568_Linux_fs/kernel/sound/isa/gus/ |
| H A D | gus_volume.c | 151 unsigned int mantissa, f1, f2; 165 mantissa = sensitivity % 8192; 172 bend = (int) ((((f2 - f1) * mantissa) >> 13) + f1);
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/mediatek/mt76/mt76x0/ |
| H A D | phy.c | 667 u32 mantissa = val << 4; in mt76x0_phy_lin2db() local 671 while (mantissa < BIT(15)) { in mt76x0_phy_lin2db() 672 mantissa <<= 1; in mt76x0_phy_lin2db() 676 while (mantissa > 0xffff) { in mt76x0_phy_lin2db() 677 mantissa >>= 1; in mt76x0_phy_lin2db() 683 if (mantissa <= 47104) in mt76x0_phy_lin2db() 684 data = mantissa + (mantissa >> 3) + (mantissa >> 4) - 38400; in mt76x0_phy_lin2db() 686 data = mantissa - (mantissa >> 3) - (mantissa >> 6) - 23040; in mt76x0_phy_lin2db()
|
| /OK3568_Linux_fs/kernel/drivers/iio/chemical/ |
| H A D | sps30.c | 163 int mantissa = val & GENMASK(22, 0); in sps30_float_to_int_clamped() local 169 if (!exp && !mantissa) in sps30_float_to_int_clamped() 175 return ((((1 << 23) + mantissa) * 100) >> 23) >> (-exp); in sps30_float_to_int_clamped() 180 val = (1 << exp) + (mantissa >> shift); in sps30_float_to_int_clamped() 184 fraction = mantissa & GENMASK(shift - 1, 0); in sps30_float_to_int_clamped()
|
| H A D | scd30_core.c | 92 mantissa = float32 & GENMASK(22, 0), in scd30_float_to_fp() local 97 if (!exp && !mantissa) in scd30_float_to_fp() 104 return sign * ((((BIT(23) + mantissa) * 100) >> 23) >> exp); in scd30_float_to_fp() 109 float32 = BIT(exp) + (mantissa >> shift); in scd30_float_to_fp() 110 fraction = mantissa & GENMASK(shift - 1, 0); in scd30_float_to_fp()
|
| /OK3568_Linux_fs/kernel/drivers/usb/serial/ |
| H A D | pl2303.c | 525 unsigned int baseline, mantissa, exponent; in pl2303_encode_baud_rate_divisor() local 535 mantissa = baseline / baud; in pl2303_encode_baud_rate_divisor() 536 if (mantissa == 0) in pl2303_encode_baud_rate_divisor() 537 mantissa = 1; /* Avoid dividing by zero if baud > 32*12M. */ in pl2303_encode_baud_rate_divisor() 539 while (mantissa >= 512) { in pl2303_encode_baud_rate_divisor() 541 mantissa >>= 2; /* divide by 4 */ in pl2303_encode_baud_rate_divisor() 545 mantissa = 511; in pl2303_encode_baud_rate_divisor() 552 buf[1] = exponent << 1 | mantissa >> 8; in pl2303_encode_baud_rate_divisor() 553 buf[0] = mantissa & 0xff; in pl2303_encode_baud_rate_divisor() 556 baud = (baseline / mantissa) >> (exponent << 1); in pl2303_encode_baud_rate_divisor()
|
| /OK3568_Linux_fs/kernel/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
|
| /OK3568_Linux_fs/kernel/drivers/isdn/mISDN/ |
| H A 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()
|