| /linux/arch/parisc/math-emu/ |
| H A D | cnv_float.h | 46 #define Sgl_isinexact_to_fix(sgl_value,exponent) \ argument 47 ((exponent < (SGL_P - 1)) ? \ 48 (Sall(sgl_value) << (SGL_EXP_LENGTH + 1 + exponent)) : FALSE) 73 #define Sgl_isone_roundbit(sgl_value,exponent) \ argument 74 ((Sall(sgl_value) << (SGL_EXP_LENGTH + 1 + exponent)) >> 31) 76 #define Sgl_isone_stickybit(sgl_value,exponent) \ argument 77 (exponent < (SGL_P - 2) ? \ 78 Sall(sgl_value) << (SGL_EXP_LENGTH + 2 + exponent) : FALSE) 178 #define Dbl_isinexact_to_fix(dbl_valueA,dbl_valueB,exponent) \ argument 179 (exponent < (DBL_P-33) ? \ [all …]
|
| H A D | sgl_float.h | 182 #define Sgl_setwrapped_exponent(sgl_value,exponent,op) \ argument 183 Deposit_sexponent(sgl_value,(exponent op SGL_WRAP)) 249 #define Sgl_normalize(sgl_opnd,exponent) \ argument 252 exponent -= 8; \ 256 exponent -= 4; \ 260 exponent -= 1; \ 289 #define Sgl_denormalize(opnd,exponent,guard,sticky,inexact) \ argument 291 if (exponent >= (1 - SGL_P)) { \ 292 guard = (Sall(opnd) >> -exponent) & 1; \ 293 if (exponent < 0) sticky |= Sall(opnd) << (32+exponent); \ [all …]
|
| H A D | denormal.c | 47 int sign, exponent; in sgl_denormalize() local 52 exponent = Sgl_exponent(opnd) - SGL_WRAP; in sgl_denormalize() 54 Sgl_denormalize(opnd,exponent,guardbit,stickybit,inexact); in sgl_denormalize() 88 int sign, exponent; in dbl_denormalize() local 94 exponent = Dbl_exponent(opndp1) - DBL_WRAP; in dbl_denormalize() 96 Dbl_denormalize(opndp1,opndp2,exponent,guardbit,stickybit,inexact); in dbl_denormalize()
|
| H A D | dbl_float.h | 305 #define Dbl_setwrapped_exponent(dbl_value,exponent,op) \ argument 306 Deposit_dexponent(dbl_value,(exponent op DBL_WRAP)) 429 #define Dbl_normalize(dbl_opndA,dbl_opndB,exponent) \ argument 432 exponent -= 8; \ 436 exponent -= 4; \ 440 exponent -= 1; \ 489 #define Dbl_denormalize(opndp1,opndp2,exponent,guard,sticky,inexact) \ argument 491 if (exponent >= (1-DBL_P)) { \ 492 if (exponent >= -31) { \ 493 guard = (Dallp2(opndp2) >> -exponent) & 1; \ [all …]
|
| /linux/arch/arm/vfp/ |
| H A D | vfpsingle.c | 43 .exponent = 255, 51 str, s->sign != 0, s->exponent, s->significand); in vfp_single_dump() 61 vs->exponent -= bits - 1; in vfp_single_normalise_denormal() 76 int exponent, shift, underflow; in __vfp_single_normaliseround() local 83 if (vs->exponent == 255 && (vs->significand == 0 || exceptions)) in __vfp_single_normaliseround() 90 vs->exponent = 0; in __vfp_single_normaliseround() 94 exponent = vs->exponent; in __vfp_single_normaliseround() 104 exponent -= shift; in __vfp_single_normaliseround() 109 vs->exponent = exponent; in __vfp_single_normaliseround() 117 underflow = exponent < 0; in __vfp_single_normaliseround() [all …]
|
| H A D | vfpdouble.c | 43 .exponent = 2047, 51 str, d->sign != 0, d->exponent, d->significand); in vfp_double_dump() 63 vd->exponent -= bits - 1; in vfp_double_normalise_denormal() 73 int exponent, shift, underflow; in vfp_double_normaliseround() local 81 if (vd->exponent == 2047 && (vd->significand == 0 || exceptions)) in vfp_double_normaliseround() 88 vd->exponent = 0; in vfp_double_normaliseround() 92 exponent = vd->exponent; in vfp_double_normaliseround() 99 exponent -= shift; in vfp_double_normaliseround() 104 vd->exponent = exponent; in vfp_double_normaliseround() 112 underflow = exponent < 0; in vfp_double_normaliseround() [all …]
|
| H A D | vfp.h | 150 s16 exponent; member 193 s->exponent = vfp_single_packed_exponent(val); in vfp_single_unpack() 197 if (s->exponent && s->exponent != 255) in vfp_single_unpack() 210 (s->exponent << VFP_SINGLE_MANTISSA_BITS) + in vfp_single_pack() 228 if (s->exponent == 255) { in vfp_single_type() 235 } else if (s->exponent == 0) { in vfp_single_type() 255 s16 exponent; member 302 s->exponent = vfp_double_packed_exponent(val); in vfp_double_unpack() 306 if (s->exponent && s->exponent != 2047) in vfp_double_unpack() 319 ((u64)s->exponent << VFP_DOUBLE_MANTISSA_BITS) + in vfp_double_pack() [all …]
|
| /linux/tools/testing/selftests/kvm/ |
| H A D | kvm_binary_stats_test.c | 106 TEST_ASSERT(pdesc->exponent >= 0, in stats_test() 108 pdesc->name, pdesc->exponent); in stats_test() 111 TEST_ASSERT(pdesc->exponent <= 0, in stats_test() 113 pdesc->name, pdesc->exponent); in stats_test() 116 TEST_ASSERT(pdesc->exponent == 0, in stats_test() 118 pdesc->name, pdesc->exponent); in stats_test()
|
| /linux/drivers/iio/light/ |
| H A D | opt3001.c | 227 int val2, u8 *exponent) in opt3001_find_scale() argument 237 *exponent = i; in opt3001_find_scale() 245 static void opt3001_to_iio_ret(struct opt3001 *opt, u8 exponent, in opt3001_to_iio_ret() argument 253 ret = whole * (mantissa << exponent); in opt3001_to_iio_ret() 318 u8 exponent; in opt3001_get_processed() local 430 exponent = OPT3001_REG_EXPONENT(opt->result); in opt3001_get_processed() 433 opt3001_to_iio_ret(opt, exponent, mantissa, val, val2); in opt3001_get_processed() 578 u8 exponent; in opt3001_write_event_value() local 585 ret = opt3001_find_scale(opt, val, val2, &exponent); in opt3001_write_event_value() 595 mantissa = (((val * integer) + (val2 / decimal)) / whole) >> exponent; in opt3001_write_event_value() [all …]
|
| /linux/arch/m68k/fpsp040/ |
| H A D | sgetem.S | 4 | The entry point sGETEXP returns the exponent portion 5 | of the input argument. The exponent bias is removed 6 | and the exponent value is returned as an extended 49 movew LOCAL_EX(%a0),%d0 |get the exponent 59 movew LOCAL_EX(%a0),%d0 |load resulting exponent into d0 74 | with an exponent of +/- $3fff. 90 | then load the exponent with +/1 $3fff.
|
| H A D | decbin.S | 24 | 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 word 482 btst #30,(%a0) |test the sign of the exponent
|
| H A D | round.S | 198 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 D | scale.S | 52 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.
|
| H A D | bindec.S | 100 | 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/Unchanged [all …]
|
| H A D | fpsp.h | 131 .set WBTEMP_EX,WBTEMP | wbtemp sign and exponent (2 bytes) 164 .set etemp15_bit,4 | etemp exponent bit #15 184 .set fptemp15_bit,4 | fptemp exponent bit #15 187 .set wbtemp15_bit,4 | wbtemp exponent bit #15 200 .set FPTEMP_EX,FPTEMP | fptemp sign and exponent (2 bytes) 207 .set ETEMP_EX,ETEMP | etemp sign and exponent (2 bytes)
|
| H A D | x_store.S | 132 movew LOCAL_EX(%a1),%d0 |get exponent 145 movel #0x7ff00000,%d0 |load dbl inf exponent 244 tstb LOCAL_SGN(%a1) |put back sign into exponent word
|
| /linux/arch/m68k/math-emu/ |
| H A D | fp_util.S | 132 lsr.l #8,%d1 | exponent / sign 139 add.w #0x3fff-0x7f,%d1 | re-bias the exponent. 149 | exponent is zero, so explizit bit is already zero too 170 lsr.l #8,%d1 | exponent / sign 177 add.w #0x3fff-0x3ff,%d1 | re-bias the exponent. 194 | exponent is zero, so explizit bit is already zero too
|
| /linux/lib/math/tests/ |
| H A D | int_pow_kunit.c | 8 unsigned int exponent; member 36 KUNIT_EXPECT_EQ(test, tc->expected_result, int_pow(tc->base, tc->exponent)); in int_pow_test()
|
| /linux/drivers/hwmon/pmbus/ |
| H A D | pmbus_core.c | 102 int exponent[PMBUS_PAGES]; member 828 int exponent; in pmbus_reg2data_ieee754() local 834 exponent = (sensor->data >> 10) & 0x1f; in pmbus_reg2data_ieee754() 837 if (exponent == 0) { /* subnormal */ in pmbus_reg2data_ieee754() 838 exponent = -(14 + 10); in pmbus_reg2data_ieee754() 839 } else if (exponent == 0x1f) { /* NaN, convert to min/max */ in pmbus_reg2data_ieee754() 840 exponent = 0; in pmbus_reg2data_ieee754() 843 exponent -= (15 + 10); /* normal */ in pmbus_reg2data_ieee754() 855 if (exponent >= 0) in pmbus_reg2data_ieee754() 856 val <<= exponent; in pmbus_reg2data_ieee754() [all …]
|
| H A D | mp2975.c | 178 s16 exponent = 0, mantissa; in mp2975_data2reg_linear11() local 185 while (val >= MAX_LIN_MANTISSA && exponent < 15) { in mp2975_data2reg_linear11() 186 exponent++; in mp2975_data2reg_linear11() 190 while (val < MIN_LIN_MANTISSA && exponent > -15) { in mp2975_data2reg_linear11() 191 exponent--; in mp2975_data2reg_linear11() 199 return (mantissa & 0x7ff) | ((exponent << 11) & 0xf800); in mp2975_data2reg_linear11()
|
| /linux/drivers/md/bcache/ |
| H A D | bset.c | 245 unsigned int exponent:BKEY_EXPONENT_BITS; member 587 const uint64_t *p = &k->low - (f->exponent >> 6); in bfloat_mantissa() 589 return shrd128(p[-1], p[0], f->exponent & 63) & BKEY_MANTISSA_MASK; in bfloat_mantissa() 620 f->exponent = fls64(KEY_INODE(r) ^ KEY_INODE(l)) + 64; in make_bfloat() 622 f->exponent = fls64(r->low ^ l->low); in make_bfloat() 624 f->exponent = max_t(int, f->exponent - BKEY_MANTISSA_BITS, 0); in make_bfloat() 634 f->exponent = 127; in make_bfloat() 975 if (likely(f->exponent != 127)) { in bset_search_tree() 1383 if (t->tree[j].exponent == 127) in bch_btree_keys_stats()
|
| /linux/arch/arm/include/asm/ |
| H A D | user.h | 39 unsigned int exponent:14; member
|
| /linux/drivers/s390/crypto/ |
| H A D | zcrypt_cca_key.h | 111 char exponent[]; in zcrypt_type6_mex_key_en() member 130 ptr = key->exponent; in zcrypt_type6_mex_key_en()
|
| /linux/arch/m68k/ifpsp060/src/ |
| H A D | fpsp.S | 1440 mov.w LOCAL_EX(%a0),%d0 # fetch src exponent 1487 addi.w &0x3c01,%d0 # adjust new exponent 1488 andi.w &0x8000,LOCAL_EX(%a0) # clear old exponent 1489 or.w %d0,LOCAL_EX(%a0) # insert new exponent 2311 mov.w FP_SRC_EX(%a6),%d0 # fetch DENORM exponent 2316 neg.w %d0 # make exponent negative 2322 andi.w &0x8000,FP_SRC_EX(%a6) # clear old exponent 2323 ori.w &0x3f80,FP_SRC_EX(%a6) # insert new "skewed" exponent 2328 mov.w FP_SRC_EX(%a6),%d0 # fetch DENORM exponent 2336 mov.w %d0,FP_SRC_EX(%a6) # insert exponent with cleared sign [all …]
|
| /linux/arch/x86/include/uapi/asm/ |
| H A D | sigcontext.h | 87 __u16 exponent; member 93 __u16 exponent; member
|