Searched refs:exponent (Results 1 - 25 of 88) sorted by relevance

1234

/linux-master/arch/x86/math-emu/
H A Dpoly_2xm1.c55 long int exponent, shift; local
60 exponent = exponent16(arg);
63 if (exponent >= 0) { /* Don't want a |number| >= 1.0 */
73 if (exponent == -1) {
76 exponent -= 2;
79 } else if (exponent == -2) {
82 exponent--;
88 if (exponent < -2) {
90 if (FPU_shrx(&Xll, -2 - exponent) >= 0x80000000U)
100 add_two_Xsig(&accumulator, &argSignif, &exponent);
[all...]
H A Dpoly_tan.c53 long int exponent; local
59 exponent = exponent(st0_ptr);
69 if ((exponent == 0)
70 || ((exponent == -1) && (st0_ptr->sigh > 0xc90fdaa2))) {
76 if (exponent == 0) {
94 exponent = -1 + norm_Xsig(&argSignif);
100 if (exponent < -1) {
102 if (FPU_shrx(&XSIG_LL(accum), -1 - exponent) >=
138 shr_Xsig(&accumulatore, -2 * (1 + exponent)
[all...]
H A Dpoly_atan.c56 int exponent; local
64 exponent = exponent(st0_ptr);
68 exponent = exponent16(st0_ptr);
71 exponent -= exponent(st1_ptr);
75 exponent -= exponent16(st1_ptr);
78 if ((exponent < 0) || ((exponent == 0) &&
88 exponent
[all...]
H A Dpoly_l2.c29 long int exponent, expon, expon_expon; local
35 exponent = exponent16(st0_ptr);
42 exponent++;
60 if (exponent < 0) {
62 exponent = -exponent;
65 expon_accum.msw = exponent;
67 if (exponent) {
110 long int exponent; local
114 log2_kernel(st0_ptr, sign0, &accumulator, &exponent);
185 long int exponent, adj; local
[all...]
H A Dpoly_sin.c60 int exponent, echange; local
66 exponent = exponent(st0_ptr);
72 if ((exponent < -1)
73 || ((exponent == -1) && (st0_ptr->sigh <= 0xe21240aa))) {
80 shr_Xsig(&argSqrd, 2 * (-1 - exponent));
102 exponent = 3 * exponent;
104 /* The minimum exponent difference is 3 */
105 shr_Xsig(&accumulator, exponent(st0_pt
204 long int exponent, exp2, echange; local
[all...]
H A Dreg_convert.c23 /* Set up the exponent as a 16 bit quantity. */
24 setexponent16(x, exponent(a));
28 /* We only deal with the significand and exponent. */
H A Dfpu_trig.c42 if (exponent(st0_ptr) >= 63) {
61 q, exponent(st0_ptr) - exponent(&CONST_PI2));
62 setexponent16(&tmp, exponent(&CONST_PI2));
77 if ((exponent(st0_ptr) <= exponent(&CONST_PI2extra) + 64)
88 exponent(&CONST_PI2extra) +
89 exponent(&tmp));
110 && (exponent(st0_ptr) <= exponent(
1028 FPU_REG *st1_ptr = &st(1), exponent; local
[all...]
H A Dfpu_tags.c64 int exp = exponent(ptr);
77 return ((exponent(ptr) == EXP_BIAS + EXP_OVER)
/linux-master/arch/parisc/math-emu/
H A Dcnv_float.h46 #define Sgl_isinexact_to_fix(sgl_value,exponent) \
47 ((exponent < (SGL_P - 1)) ? \
48 (Sall(sgl_value) << (SGL_EXP_LENGTH + 1 + exponent)) : FALSE)
73 #define Sgl_isone_roundbit(sgl_value,exponent) \
74 ((Sall(sgl_value) << (SGL_EXP_LENGTH + 1 + exponent)) >> 31)
76 #define Sgl_isone_stickybit(sgl_value,exponent) \
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) \
179 (exponent < (DBL_
[all...]
H A Ddenormal.c47 int sign, exponent; local
52 exponent = Sgl_exponent(opnd) - SGL_WRAP;
54 Sgl_denormalize(opnd,exponent,guardbit,stickybit,inexact);
88 int sign, exponent; local
94 exponent = Dbl_exponent(opndp1) - DBL_WRAP;
96 Dbl_denormalize(opndp1,opndp2,exponent,guardbit,stickybit,inexact);
H A 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) \
183 Deposit_sexponent(sgl_value,(exponent op SGL_WRAP))
249 #define Sgl_normalize(sgl_opnd,exponent) \
252 exponent -= 8; \
256 exponent -= 4; \
260 exponent -= 1; \
289 #define Sgl_denormalize(opnd,exponent,guard,sticky,inexact) \
291 if (exponent >
[all...]
H A Ddbl_float.h34 /* The hidden bit is always the low bit of the exponent */
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) \
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) \
432 exponent -= 8; \
436 exponent -= 4; \
440 exponent
[all...]
/linux-master/arch/arm/vfp/
H A Dvfpdouble.c43 .exponent = 2047,
50 pr_debug("VFP: %s: sign=%d exponent=%d significand=%016llx\n",
51 str, d->sign != 0, d->exponent, d->significand);
63 vd->exponent -= bits - 1;
73 int exponent, shift, underflow; local
81 if (vd->exponent == 2047 && (vd->significand == 0 || exceptions))
88 vd->exponent = 0;
92 exponent = vd->exponent;
99 exponent
[all...]
H A Dvfpsingle.c43 .exponent = 255,
50 pr_debug("VFP: %s: sign=%d exponent=%d significand=%08x\n",
51 str, s->sign != 0, s->exponent, s->significand);
61 vs->exponent -= bits - 1;
76 int exponent, shift, underflow; local
83 if (vs->exponent == 255 && (vs->significand == 0 || exceptions))
90 vs->exponent = 0;
94 exponent = vs->exponent;
104 exponent
287 vfp_estimate_sqrt_significand(u32 exponent, u32 significand) argument
[all...]
H A Dvfp.h150 s16 exponent; member in struct:vfp_single
160 * VFP_SINGLE_EXPONENT_BITS - number of bits in the exponent
193 s->exponent = vfp_single_packed_exponent(val);
197 if (s->exponent && s->exponent != 255)
210 (s->exponent << VFP_SINGLE_MANTISSA_BITS) +
228 if (s->exponent == 255) {
235 } else if (s->exponent == 0) {
255 s16 exponent; member in struct:vfp_double
302 s->exponent
[all...]
/linux-master/arch/arm/include/asm/
H A Duser.h39 unsigned int exponent:14; member in struct:user_fp::fp_reg
/linux-master/drivers/hwmon/pmbus/
H A Dxdpe12284.c28 s16 exponent; local
40 exponent = ((s16)ret) >> 11;
43 if (exponent >= 0)
44 val <<= exponent; local
46 val >>= -exponent;
H A Dbpa-rs600.c49 int ret, exponent, mantissa; local
56 exponent = ret >> 11;
59 exponent++;
62 ret = (exponent << 11) | mantissa;
H A Dzl6100.c62 s16 exponent; local
66 exponent = l >> 11;
74 if (exponent >= 0)
75 val <<= exponent; local
77 val >>= -exponent;
87 s16 exponent = 0, mantissa; local
100 while (val >= MAX_MANTISSA && exponent < 15) {
101 exponent++;
105 while (val < MIN_MANTISSA && exponent > -15) {
106 exponent
[all...]
/linux-master/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A Dppevvmath.h67 static int uPow(int base, int exponent); /* Returns base^exponent an INT */
73 static fInt fExponential(fInt exponent); /* Can be used to calculate e^exponent */
108 static fInt fExponential(fInt exponent) /*Can be used to calculate e^exponent*/ argument
123 if (GreaterThan(fZERO, exponent)) {
124 exponent = fNegate(exponent);
128 while (GreaterThan(exponent, lower_boun
[all...]
/linux-master/arch/m68k/math-emu/
H A Dfp_util.S132 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
668 sub.w #0x4000-0x3ff,%d2 | will the exponent fit?
714 | reset the high bit, and increment the exponent.
717 cmp.w #0x43ff,(%a0)+ | exponent now overflown?
799 | i.e. pathologically small (exponent i
[all...]
/linux-master/tools/testing/selftests/kvm/
H A Dkvm_binary_stats_test.c96 * Check exponent for stats unit
108 TEST_ASSERT(pdesc->exponent >= 0,
109 "Unsupported KVM stats (%s) exponent: %i",
110 pdesc->name, pdesc->exponent);
113 TEST_ASSERT(pdesc->exponent <= 0,
114 "Unsupported KVM stats (%s) exponent: %i",
115 pdesc->name, pdesc->exponent);
118 TEST_ASSERT(pdesc->exponent == 0,
119 "Unsupported KVM stats (%s) exponent: %d",
120 pdesc->name, pdesc->exponent);
[all...]
/linux-master/arch/m68k/fpsp040/
H A 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.
/linux-master/drivers/iio/light/
H A Dopt3001.c148 int val2, u8 *exponent)
162 *exponent = i;
170 static void opt3001_to_iio_ret(struct opt3001 *opt, u8 exponent, argument
175 lux = 10 * (mantissa << exponent);
229 u8 exponent; local
339 exponent = OPT3001_REG_EXPONENT(opt->result);
342 opt3001_to_iio_ret(opt, exponent, mantissa, val, val2);
483 u8 exponent; local
490 ret = opt3001_find_scale(opt, val, val2, &exponent);
496 mantissa = (((val * 1000) + (val2 / 1000)) / 10) >> exponent;
147 opt3001_find_scale(const struct opt3001 *opt, int val, int val2, u8 *exponent) argument
[all...]
H A Dmax44009.c175 int exponent; local
183 /* The exponent byte is just the upper nibble of the Lux High Byte */
184 exponent = (hi >> 4) & 0xf;
187 * The exponent value is base 2 to the power of the raw exponent byte.
189 exponent = 1 << exponent;
191 return exponent * mantissa;
367 int mantissa, exponent; local
388 * Exponent is base 2 to the power of the threshold exponent byt
[all...]

Completed in 337 milliseconds

1234