Searched refs:exponent (Results 26 - 50 of 88) sorted by relevance

1234

/linux-master/drivers/hwmon/pmbus/
H A Dmp2856.c79 s16 exponent = 0, mantissa; local
91 while (val >= MAX_LIN_MANTISSA && exponent < 15) {
92 exponent++;
96 while (val < MIN_LIN_MANTISSA && exponent > -15) {
97 exponent--;
108 /* Convert to 5 bit exponent, 11 bit mantissa */
109 return (mantissa & 0x7ff) | ((exponent << 11) & 0xf800);
H A Dpmbus_core.c88 int exponent[PMBUS_PAGES]; member in struct:pmbus_data
89 /* linear mode: exponent for output voltages */
653 * bit 10..14: exponent
655 * exponent=0:
657 * exponent=1..30:
658 * v=(���1)^signbit * 2^(exponent - 15) * 1.significantbits
659 * exponent=31:
663 * To do that, add '10' to the exponent. By doing that, we can just add
669 int exponent; local
675 exponent
697 val <<= exponent; local
714 s16 exponent; local
737 val <<= exponent; local
854 u16 exponent = (15 + 10); local
918 s16 exponent = 0, mantissa; local
[all...]
/linux-master/arch/x86/math-emu/
H A Dreg_mul.c44 exponent(a) + exponent(b));
H A Dfpu_etc.c110 && (exponent(st0_ptr) == EXP_OVER))
H A Dreg_compare.c96 unsupported = !((exponent(st0_ptr) == EXP_OVER)
103 unsupported |= !((exponent(b) == EXP_OVER)
130 exp0 = exponent(st0_ptr);
131 expb = exponent(b);
H A Dreg_add_sub.c48 expa = exponent(a);
49 expb = exponent(b);
163 expa = exponent(a);
164 expb = exponent(b);
H A Derrors.c197 exponent(r) - EXP_BIAS + 1);
378 isNaN = (exponent(a) == EXP_OVER) && (a->sigh & 0x80000000);
429 && !((exponent(a) == EXP_OVER)
432 && !((exponent(b) == EXP_OVER) && (b->sigh & 0x80000000)));
583 /* Subtract the magic number from the exponent */
615 /* Add the magic number to the exponent. */
H A Dfpu_emu.h31 #define EXP_OVER Const(0x4000) /* smallest invalid large exponent */
32 #define EXP_UNDER Const(-0x3fff) /* largest invalid small exponent */
39 #define EXTENDED_Emin (-0x3ffe) /* smallest valid exponent */
176 #define exponent(x) (((*(short *)&((x)->exp)) & 0x7fff) - EXTENDED_Ebias) macro
184 #define isdenormal(ptr) (exponent(ptr) == EXP_BIAS+EXP_UNDER)
H A Dreg_ld_str.c31 #define DOUBLE_Emax 1023 /* largest valid exponent */
33 #define DOUBLE_Emin (-1022) /* smallest valid exponent */
35 #define SINGLE_Emax 127 /* largest valid exponent */
37 #define SINGLE_Emin (-126) /* smallest valid exponent */
391 exp = exponent(&tmp);
489 /* Add the exponent */
512 if ((exponent(st0_ptr) == EXP_OVER)
575 exp = exponent(&tmp);
670 /* Add the exponent */
694 if ((exponent(st0_pt
[all...]
/linux-master/drivers/staging/pi433/
H A Drf69.h34 u8 exponent);
37 u8 exponent);
H A Drf69.c448 enum mantisse mantisse, u8 exponent)
452 // check value for mantisse and exponent
453 if (exponent > 7) {
454 dev_dbg(&spi->dev, "set: illegal bandwidth exponent %u\n", exponent);
468 // "delete" mantisse and exponent = just keep the DCC setting
484 // add new exponent
485 bandwidth = bandwidth | exponent;
492 u8 exponent)
494 return rf69_set_bandwidth_intern(spi, REG_RXBW, mantisse, exponent);
447 rf69_set_bandwidth_intern(struct spi_device *spi, u8 reg, enum mantisse mantisse, u8 exponent) argument
491 rf69_set_bandwidth(struct spi_device *spi, enum mantisse mantisse, u8 exponent) argument
497 rf69_set_bandwidth_during_afc(struct spi_device *spi, enum mantisse mantisse, u8 exponent) argument
[all...]
/linux-master/arch/m68k/fpsp040/
H A Ddecbin.S24 | A1. Convert the bcd exponent to binary by successive adds and muls.
39 | exponent equal to the exponent from A1 and the zero count
57 | the exponent factor. This is done by multiplying the
59 | exponent sign is positive, and dividing FP0 by FP1 if
123 | Calculate exponent:
125 | 2. Calculate absolute value of exponent in d1 by mul and add.
126 | 3. Correct for exponent sign.
134 | (*) d1: accumulator for binary exponent
141 | (*) L_SCR1: copy of original exponent wor
[all...]
H A Dscale.S52 movew FPTEMP(%a6),%d1 |get dest exponent
93 | Source is positive. Add the src to the dest exponent.
142 | Source is negative. Add the src to the dest exponent.
143 | (The result exponent will be reduced). The result can be
162 | The result exponent is below denorm value. Test for catastrophic
164 | mantissa right until a zero exponent exists.
298 | then adding the remainder of the source to the exponent.
316 | portion of the src to the exponent.
H A Dround.S198 addw #0x1,LOCAL_EX(%a0) |and incr exponent
239 addw #0x1,LOCAL_EX(%a0) |incr exponent
273 | exponent.
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
290 | Distance to 0 from exponent = Y
296 | set exponent = 0
299 | FP_SCR1 = exponent, ms mantissa part, ls mantissa part
364 subw %d7,LOCAL_EX(%a0) |sub exponent by count
386 movew LOCAL_EX(%a0),%d0 |d0 has exponent
[all...]
H A Dbindec.S100 | A15. Convert the exponent to bcd.
103 | Test the length of the final exponent string. If the
176 movel (%a0),L_SCR2(%a6) |save exponent for sign check
224 | d0: k-factor/exponent
238 | F_SCR2:Abs(X)/Abs(X) with $3fff exponent
248 movew #0x3fff,FP_SCR2(%a6) |replace exponent with 0x3fff
287 | d0: exponent/Unchanged
301 | F_SCR2:Abs(X) with $3fff exponent/Unchanged
359 | d0: exponent/scratch - final is 0
373 | F_SCR2:Abs(X) with $3fff exponent/Unchange
[all...]
/linux-master/drivers/s390/crypto/
H A Dzcrypt_msgtype50.c72 unsigned char exponent[128]; member in struct:type50_meb1_msg
82 unsigned char exponent[256]; member in struct:type50_meb2_msg
92 unsigned char exponent[512]; member in struct:type50_meb3_msg
213 exp = meb1->exponent + sizeof(meb1->exponent) - mod_len;
224 exp = meb2->exponent + sizeof(meb2->exponent) - mod_len;
235 exp = meb3->exponent + sizeof(meb3->exponent) - mod_len;
H A Dzcrypt_cca_key.h41 * section. So, an arbitrary public exponent of 0x010001 will be
111 char exponent[]; member in struct:__anon160
130 ptr = key->exponent;
229 * section. So, an arbitrary public exponent of 0x010001 will be
/linux-master/drivers/iio/light/
H A Dsi1145.c349 u8 exponent = 0; local
354 exponent = (x & 0xf0) >> 4;
357 if (exponent >= 4)
358 return result << (exponent - 4);
359 return result >> (4 - exponent);
365 u32 exponent = 0; local
376 exponent += 1;
381 if (exponent < 5) {
382 significand = x << (4 - exponent);
383 return (exponent <<
[all...]
/linux-master/drivers/usb/serial/
H A Dpl2303.c612 unsigned int baseline, mantissa, exponent; local
616 * baudrate = 12M * 32 / (mantissa * 4^exponent)
619 * exponent = buf[11:9]
625 exponent = 0;
627 if (exponent < 7) {
629 exponent++;
639 buf[1] = exponent << 1 | mantissa >> 8;
643 baud = (baseline / mantissa) >> (exponent << 1);
651 unsigned int baseline, mantissa, exponent; local
655 * baudrate = 12M * 32 / (mantissa * 2^exponent)
[all...]
/linux-master/drivers/iio/common/scmi_sensors/
H A Dscmi_iio.c380 s8 exponent, scale; local
391 exponent = sensor->sensor_info->axis[0].exponent;
396 * need to divide the resolution exponent by the sensor scale
398 exponent = exponent - scale;
399 if (exponent < 0) {
401 int_pow(10, abs(exponent))
407 resolution = resolution * int_pow(10, exponent);
/linux-master/drivers/isdn/mISDN/
H A Ddsp_audio.c124 int sign, exponent, mantissa; local
134 exponent = exp_lut[(sample >> 7) & 0xFF];
135 mantissa = (sample >> (exponent + 3)) & 0x0F;
136 ulawbyte = ~(sign | (exponent << 4) | mantissa);
/linux-master/fs/bcachefs/
H A Dbset.c303 u8 exponent; member in struct:bkey_float
599 v = get_unaligned((u64 *) (((u8 *) k->_data) + (f->exponent >> 3)));
608 v >>= f->exponent & 7;
610 v >>= 64 - (f->exponent & 7) - BKEY_MANTISSA_BITS;
629 int shift, exponent, high_bit; local
638 f->exponent = BFLOAT_FAILED_UNPACKED;
646 * bfloat->mantissa, and thus the exponent we're calculating here is
654 exponent = high_bit - (BKEY_MANTISSA_BITS - 1);
658 * (k->_data), to get the key bits starting at exponent:
661 shift = (int) (b->format.key_u64s * 64 - b->nr_key_bits) + exponent;
[all...]
/linux-master/arch/x86/include/uapi/asm/
H A Dsigcontext.h87 __u16 exponent; member in struct:_fpreg
93 __u16 exponent; member in struct:_fpxreg
/linux-master/arch/x86/um/
H A Dsignal.c52 switch (st->exponent & 0x7fff) {
110 __put_user(from->exponent, &to->exponent))
144 __get_user(to->exponent, &from->exponent))
/linux-master/drivers/md/bcache/
H A Dbset.c245 unsigned int exponent:BKEY_EXPONENT_BITS; member in struct:bkey_float
572 * If most significant bit of f->exponent is not set, then
573 * - f->exponent >> 6 is 0
576 * if most isgnificant bits of f->exponent is set, then
577 * - f->exponent >> 6 is 1
581 * See make_bfloat() to check when most significant bit of f->exponent
587 const uint64_t *p = &k->low - (f->exponent >> 6);
589 return shrd128(p[-1], p[0], f->exponent & 63) & BKEY_MANTISSA_MASK;
611 * device), f->exponent records how many least significant bits
614 * If l and r have same KEY_INODE value, f->exponent record
[all...]

Completed in 237 milliseconds

1234