Home
last modified time | relevance | path

Searched full:exponent (Results 1 – 25 of 264) sorted by relevance

1234567891011

/Linux-v6.1/arch/parisc/math-emu/
Dcnv_float.h46 #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 …]
Dsgl_float.h33 /* The hidden bit is always the low bit of the exponent */
151 /* An infinity is represented with the max exponent and a zero mantissa */
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)) { \
[all …]
Ddenormal.c47 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()
Ddbl_float.h34 /* The hidden bit is always the low bit of the exponent */
42 /* Exponent field for doubles has already been cleared and may be
102 /* Singles and doubles may include the sign and exponent fields. The
256 /* An infinity is represented with the max exponent and a zero mantissa */
305 #define Dbl_setwrapped_exponent(dbl_value,exponent,op) \ argument
306 Deposit_dexponent(dbl_value,(exponent op DBL_WRAP))
374 * (due to the exponent becoming negative) during normalization.
429 #define Dbl_normalize(dbl_opndA,dbl_opndB,exponent) \ argument
432 exponent -= 8; \
436 exponent -= 4; \
[all …]
/Linux-v6.1/arch/x86/math-emu/
Dpoly_atan.c56 int exponent; in poly_atan() local
64 exponent = exponent(st0_ptr); in poly_atan()
68 exponent = exponent16(st0_ptr); in poly_atan()
71 exponent -= exponent(st1_ptr); in poly_atan()
75 exponent -= exponent16(st1_ptr); in poly_atan()
78 if ((exponent < 0) || ((exponent == 0) && in poly_atan()
88 exponent = -exponent; in poly_atan()
94 exponent += norm_Xsig(&argSignif); in poly_atan()
96 if ((exponent >= -1) in poly_atan()
97 || ((exponent == -2) && (argSignif.msw > 0xd413ccd0))) { in poly_atan()
[all …]
Dpoly_sin.c60 int exponent, echange; in poly_sine() local
66 exponent = exponent(st0_ptr); in poly_sine()
72 if ((exponent < -1) in poly_sine()
73 || ((exponent == -1) && (st0_ptr->sigh <= 0xe21240aa))) { in poly_sine()
80 shr_Xsig(&argSqrd, 2 * (-1 - exponent)); in poly_sine()
102 exponent = 3 * exponent; in poly_sine()
104 /* The minimum exponent difference is 3 */ in poly_sine()
105 shr_Xsig(&accumulator, exponent(st0_ptr) - exponent); in poly_sine()
112 setexponentpos(&result, exponent(st0_ptr) + echange); in poly_sine()
119 if (exponent == 0) { in poly_sine()
[all …]
Dpoly_l2.c29 long int exponent, expon, expon_expon; in poly_l2() local
35 exponent = exponent16(st0_ptr); in poly_l2()
42 exponent++; in poly_l2()
60 if (exponent < 0) { in poly_l2()
62 exponent = -exponent; in poly_l2()
65 expon_accum.msw = exponent; in poly_l2()
67 if (exponent) { in poly_l2()
110 long int exponent; in poly_l2p1() local
114 log2_kernel(st0_ptr, sign0, &accumulator, &exponent); in poly_l2p1()
120 exponent += round_Xsig(&accumulator); in poly_l2p1()
[all …]
Dpoly_2xm1.c55 long int exponent, shift; in poly_2xm1() local
60 exponent = exponent16(arg); in poly_2xm1()
63 if (exponent >= 0) { /* Don't want a |number| >= 1.0 */ in poly_2xm1()
73 if (exponent == -1) { in poly_2xm1()
76 exponent -= 2; in poly_2xm1()
79 } else if (exponent == -2) { in poly_2xm1()
82 exponent--; in poly_2xm1()
88 if (exponent < -2) { in poly_2xm1()
90 if (FPU_shrx(&Xll, -2 - exponent) >= 0x80000000U) in poly_2xm1()
100 add_two_Xsig(&accumulator, &argSignif, &exponent); in poly_2xm1()
[all …]
Dpoly_tan.c53 long int exponent; in poly_tan() local
59 exponent = exponent(st0_ptr); in poly_tan()
69 if ((exponent == 0) in poly_tan()
70 || ((exponent == -1) && (st0_ptr->sigh > 0xc90fdaa2))) { in poly_tan()
76 if (exponent == 0) { in poly_tan()
94 exponent = -1 + norm_Xsig(&argSignif); in poly_tan()
100 if (exponent < -1) { in poly_tan()
102 if (FPU_shrx(&XSIG_LL(accum), -1 - exponent) >= in poly_tan()
138 shr_Xsig(&accumulatore, -2 * (1 + exponent) + 1); in poly_tan()
158 shr_Xsig(&accum, -2 * (exponent + 1)); in poly_tan()
[all …]
Dfpu_trig.c42 if (exponent(st0_ptr) >= 63) { in trig_arg()
61 q, exponent(st0_ptr) - exponent(&CONST_PI2)); in trig_arg()
62 setexponent16(&tmp, exponent(&CONST_PI2)); in trig_arg()
77 if ((exponent(st0_ptr) <= exponent(&CONST_PI2extra) + 64) in trig_arg()
88 exponent(&CONST_PI2extra) + in trig_arg()
89 exponent(&tmp)); in trig_arg()
110 && (exponent(st0_ptr) <= exponent(&CONST_PI2extra) + 64)) in trig_arg()
121 exponent(&CONST_PI2extra) + in trig_arg()
122 exponent(&tmp)); in trig_arg()
126 if ((exponent(st0_ptr) == exponent(&CONST_PI2)) && in trig_arg()
[all …]
/Linux-v6.1/arch/arm/vfp/
Dvfpdouble.c43 .exponent = 2047,
50 pr_debug("VFP: %s: sign=%d exponent=%d significand=%016llx\n", in vfp_double_dump()
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()
[all …]
Dvfpsingle.c43 .exponent = 255,
50 pr_debug("VFP: %s: sign=%d exponent=%d significand=%08x\n", in vfp_single_dump()
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()
[all …]
Dvfp.h150 s16 exponent; member
160 * VFP_SINGLE_EXPONENT_BITS - number of bits in the exponent
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()
[all …]
/Linux-v6.1/tools/testing/selftests/kvm/
Dkvm_binary_stats_test.c93 * Check exponent for stats unit in stats_test()
94 * Exponent for counter should be greater than or equal to 0 in stats_test()
95 * Exponent for unit bytes should be greater than or equal to 0 in stats_test()
96 * Exponent for unit seconds should be less than or equal to 0 in stats_test()
97 * Exponent for unit clock cycles should be greater than or in stats_test()
99 * Exponent for unit boolean should be 0 in stats_test()
105 TEST_ASSERT(pdesc->exponent >= 0, in stats_test()
106 "Unsupported KVM stats (%s) exponent: %i", in stats_test()
107 pdesc->name, pdesc->exponent); in stats_test()
110 TEST_ASSERT(pdesc->exponent <= 0, in stats_test()
[all …]
/Linux-v6.1/arch/m68k/fpsp040/
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 word
188 | ( ) L_SCR1: copy of original exponent word
[all …]
Dsgetem.S4 | 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.
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/Unchanged
[all …]
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 …]
/Linux-v6.1/drivers/crypto/caam/
Dcaampkc.h24 * d the RSA private exponent
30 * d the RSA private exponent
36 * dP the first factors's CRT exponent
37 * dQ the second factors's CRT exponent
52 * @e : RSA public exponent raw byte stream
53 * @d : RSA private exponent raw byte stream
56 * @dp : RSA CRT exponent of p
57 * @dp : RSA CRT exponent of q
64 * @e_sz : length in bytes of RSA public exponent
65 * @d_sz : length in bytes of RSA private exponent
/Linux-v6.1/include/crypto/internal/
Drsa.h15 * @e : RSA public exponent raw byte stream
16 * @d : RSA private exponent raw byte stream
19 * @dp : RSA exponent d mod (p - 1) raw byte stream
20 * @dq : RSA exponent d mod (q - 1) raw byte stream
23 * @e_sz : length in bytes of RSA public exponent
24 * @d_sz : length in bytes of RSA private exponent
/Linux-v6.1/drivers/iio/light/
Dmax44009.c175 int exponent; in max44009_lux_raw() local
183 /* The exponent byte is just the upper nibble of the Lux High Byte */ in max44009_lux_raw()
184 exponent = (hi >> 4) & 0xf; in max44009_lux_raw()
187 * The exponent value is base 2 to the power of the raw exponent byte. in max44009_lux_raw()
189 exponent = 1 << exponent; in max44009_lux_raw()
191 return exponent * mantissa; in max44009_lux_raw()
367 int mantissa, exponent; in max44009_read_threshold() local
388 * Exponent is base 2 to the power of the threshold exponent byte in max44009_read_threshold()
391 exponent = byte & MAX44009_THRESH_EXP_MASK; in max44009_read_threshold()
392 exponent >>= MAX44009_THRESH_EXP_RSHIFT; in max44009_read_threshold()
[all …]
Dopt3001.c148 int val2, u8 *exponent) in opt3001_find_scale() argument
162 *exponent = i; in opt3001_find_scale()
170 static void opt3001_to_iio_ret(struct opt3001 *opt, u8 exponent, in opt3001_to_iio_ret() argument
175 lux = 10 * (mantissa << exponent); in opt3001_to_iio_ret()
229 u8 exponent; in opt3001_get_lux() local
339 exponent = OPT3001_REG_EXPONENT(opt->result); in opt3001_get_lux()
342 opt3001_to_iio_ret(opt, exponent, mantissa, val, val2); in opt3001_get_lux()
483 u8 exponent; in opt3001_write_event_value() local
490 ret = opt3001_find_scale(opt, val, val2, &exponent); in opt3001_write_event_value()
496 mantissa = (((val * 1000) + (val2 / 1000)) / 10) >> exponent; in opt3001_write_event_value()
[all …]
/Linux-v6.1/drivers/hwmon/pmbus/
Dzl6100.c62 s16 exponent; in zl6100_l2d() local
66 exponent = l >> 11; in zl6100_l2d()
74 if (exponent >= 0) in zl6100_l2d()
75 val <<= exponent; in zl6100_l2d()
77 val >>= -exponent; in zl6100_l2d()
87 s16 exponent = 0, mantissa; in zl6100_d2l() local
100 while (val >= MAX_MANTISSA && exponent < 15) { in zl6100_d2l()
101 exponent++; in zl6100_d2l()
105 while (val < MIN_MANTISSA && exponent > -15) { in zl6100_d2l()
106 exponent--; in zl6100_d2l()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/power/supply/
Dlltc,ltc294x.yaml39 lltc,prescaler-exponent:
42 The prescaler exponent as explained in the datasheet.
51 - lltc,prescaler-exponent
64 lltc,prescaler-exponent = <5>; /* 2^(2*5) = 1024 */
/Linux-v6.1/drivers/gpu/drm/i915/gt/uc/
Dintel_uc_fw_abi.h20 * | CSS header | uCode | RSA key | modulus | exponent |
28 * The firmware may or may not have modulus key and exponent data. The header,
31 * In the case that modulus and exponent are not present in fw, a.k.a truncated
40 * 4. Modulus and exponent key are not required by driver. They may not appear
53 * key, modulus key and exponent data.

1234567891011