Home
last modified time | relevance | path

Searched refs:exponent (Results 1 – 68 of 68) sorted by relevance

/linux-4.4.14/arch/parisc/math-emu/
Dcnv_float.h59 #define Sgl_isinexact_to_fix(sgl_value,exponent) \ argument
60 ((exponent < (SGL_P - 1)) ? \
61 (Sall(sgl_value) << (SGL_EXP_LENGTH + 1 + exponent)) : FALSE)
86 #define Sgl_isone_roundbit(sgl_value,exponent) \ argument
87 ((Sall(sgl_value) << (SGL_EXP_LENGTH + 1 + exponent)) >> 31)
89 #define Sgl_isone_stickybit(sgl_value,exponent) \ argument
90 (exponent < (SGL_P - 2) ? \
91 Sall(sgl_value) << (SGL_EXP_LENGTH + 2 + exponent) : FALSE)
191 #define Dbl_isinexact_to_fix(dbl_valueA,dbl_valueB,exponent) \ argument
192 (exponent < (DBL_P-33) ? \
[all …]
Ddenormal.c60 int sign, exponent; in sgl_denormalize() local
65 exponent = Sgl_exponent(opnd) - SGL_WRAP; in sgl_denormalize()
67 Sgl_denormalize(opnd,exponent,guardbit,stickybit,inexact); in sgl_denormalize()
101 int sign, exponent; in dbl_denormalize() local
107 exponent = Dbl_exponent(opndp1) - DBL_WRAP; in dbl_denormalize()
109 Dbl_denormalize(opndp1,opndp2,exponent,guardbit,stickybit,inexact); in dbl_denormalize()
Dsgl_float.h195 #define Sgl_setwrapped_exponent(sgl_value,exponent,op) \ argument
196 Deposit_sexponent(sgl_value,(exponent op SGL_WRAP))
262 #define Sgl_normalize(sgl_opnd,exponent) \ argument
265 exponent -= 8; \
269 exponent -= 4; \
273 exponent -= 1; \
302 #define Sgl_denormalize(opnd,exponent,guard,sticky,inexact) \ argument
304 if (exponent >= (1 - SGL_P)) { \
305 guard = (Sall(opnd) >> -exponent) & 1; \
306 if (exponent < 0) sticky |= Sall(opnd) << (32+exponent); \
[all …]
Ddbl_float.h318 #define Dbl_setwrapped_exponent(dbl_value,exponent,op) \ argument
319 Deposit_dexponent(dbl_value,(exponent op DBL_WRAP))
442 #define Dbl_normalize(dbl_opndA,dbl_opndB,exponent) \ argument
445 exponent -= 8; \
449 exponent -= 4; \
453 exponent -= 1; \
502 #define Dbl_denormalize(opndp1,opndp2,exponent,guard,sticky,inexact) \ argument
504 if (exponent >= (1-DBL_P)) { \
505 if (exponent >= -31) { \
506 guard = (Dallp2(opndp2) >> -exponent) & 1; \
[all …]
/linux-4.4.14/arch/x86/math-emu/
Dpoly_atan.c55 int exponent; in poly_atan() local
63 exponent = exponent(st0_ptr); in poly_atan()
67 exponent = exponent16(st0_ptr); in poly_atan()
70 exponent -= exponent(st1_ptr); in poly_atan()
74 exponent -= exponent16(st1_ptr); in poly_atan()
77 if ((exponent < 0) || ((exponent == 0) && in poly_atan()
87 exponent = -exponent; in poly_atan()
93 exponent += norm_Xsig(&argSignif); in poly_atan()
95 if ((exponent >= -1) in poly_atan()
96 || ((exponent == -2) && (argSignif.msw > 0xd413ccd0))) { in poly_atan()
[all …]
Dpoly_2xm1.c54 long int exponent, shift; in poly_2xm1() local
59 exponent = exponent16(arg); in poly_2xm1()
62 if (exponent >= 0) { /* Don't want a |number| >= 1.0 */ in poly_2xm1()
72 if (exponent == -1) { in poly_2xm1()
75 exponent -= 2; in poly_2xm1()
78 } else if (exponent == -2) { in poly_2xm1()
81 exponent--; in poly_2xm1()
87 if (exponent < -2) { in poly_2xm1()
89 if (FPU_shrx(&Xll, -2 - exponent) >= 0x80000000U) in poly_2xm1()
99 add_two_Xsig(&accumulator, &argSignif, &exponent); in poly_2xm1()
[all …]
Dpoly_l2.c28 long int exponent, expon, expon_expon; in poly_l2() local
34 exponent = exponent16(st0_ptr); in poly_l2()
41 exponent++; in poly_l2()
59 if (exponent < 0) { in poly_l2()
61 exponent = -exponent; in poly_l2()
64 expon_accum.msw = exponent; in poly_l2()
66 if (exponent) { in poly_l2()
109 long int exponent; in poly_l2p1() local
113 log2_kernel(st0_ptr, sign0, &accumulator, &exponent); in poly_l2p1()
119 exponent += round_Xsig(&accumulator); in poly_l2p1()
[all …]
Dpoly_sin.c59 int exponent, echange; in poly_sine() local
65 exponent = exponent(st0_ptr); in poly_sine()
71 if ((exponent < -1) in poly_sine()
72 || ((exponent == -1) && (st0_ptr->sigh <= 0xe21240aa))) { in poly_sine()
79 shr_Xsig(&argSqrd, 2 * (-1 - exponent)); in poly_sine()
101 exponent = 3 * exponent; in poly_sine()
104 shr_Xsig(&accumulator, exponent(st0_ptr) - exponent); in poly_sine()
111 setexponentpos(&result, exponent(st0_ptr) + echange); in poly_sine()
118 if (exponent == 0) { in poly_sine()
189 if ((exponent(&result) >= 0) in poly_sine()
[all …]
Dpoly_tan.c52 long int exponent; in poly_tan() local
58 exponent = exponent(st0_ptr); in poly_tan()
68 if ((exponent == 0) in poly_tan()
69 || ((exponent == -1) && (st0_ptr->sigh > 0xc90fdaa2))) { in poly_tan()
75 if (exponent == 0) { in poly_tan()
93 exponent = -1 + norm_Xsig(&argSignif); in poly_tan()
99 if (exponent < -1) { in poly_tan()
101 if (FPU_shrx(&XSIG_LL(accum), -1 - exponent) >= in poly_tan()
137 shr_Xsig(&accumulatore, -2 * (1 + exponent) + 1); in poly_tan()
157 shr_Xsig(&accum, -2 * (exponent + 1)); in poly_tan()
[all …]
Dfpu_trig.c41 if (exponent(st0_ptr) >= 63) { in trig_arg()
60 q, exponent(st0_ptr) - exponent(&CONST_PI2)); in trig_arg()
61 setexponent16(&tmp, exponent(&CONST_PI2)); in trig_arg()
76 if ((exponent(st0_ptr) <= exponent(&CONST_PI2extra) + 64) in trig_arg()
87 exponent(&CONST_PI2extra) + in trig_arg()
88 exponent(&tmp)); in trig_arg()
109 && (exponent(st0_ptr) <= exponent(&CONST_PI2extra) + 64)) in trig_arg()
120 exponent(&CONST_PI2extra) + in trig_arg()
121 exponent(&tmp)); in trig_arg()
125 if ((exponent(st0_ptr) == exponent(&CONST_PI2)) && in trig_arg()
[all …]
Dfpu_tags.c63 int exp = exponent(ptr); in FPU_Special()
76 return ((exponent(ptr) == EXP_BIAS + EXP_OVER) in isNaN()
Dreg_mul.c43 exponent(a) + exponent(b)); in FPU_mul()
Dreg_compare.c95 unsupported = !((exponent(st0_ptr) == EXP_OVER) in compare()
102 unsupported |= !((exponent(b) == EXP_OVER) in compare()
129 exp0 = exponent(st0_ptr); in compare()
130 expb = exponent(b); in compare()
Dreg_add_sub.c47 expa = exponent(a); in FPU_add()
48 expb = exponent(b); in FPU_add()
162 expa = exponent(a); in FPU_sub()
163 expb = exponent(b); in FPU_sub()
Derrors.c194 exponent(r) - EXP_BIAS + 1); in FPU_printall()
376 isNaN = (exponent(a) == EXP_OVER) && (a->sigh & 0x80000000); in real_1op_NaN()
427 && !((exponent(a) == EXP_OVER) in real_2op_NaN()
430 && !((exponent(b) == EXP_OVER) && (b->sigh & 0x80000000))); in real_2op_NaN()
Dreg_ld_str.c390 exp = exponent(&tmp); in FPU_store_double()
511 if ((exponent(st0_ptr) == EXP_OVER) in FPU_store_double()
574 exp = exponent(&tmp); in FPU_store_single()
693 if ((exponent(st0_ptr) == EXP_OVER) in FPU_store_single()
980 if (exponent(r) > 63) { in FPU_round_to_int()
985 eax = FPU_shrxs(&r->sigl, 63 - exponent(r)); in FPU_round_to_int()
1097 if (exponent(&fpu_register(i)) == -EXTENDED_Ebias) { in fldenv()
1104 } else if (exponent(&fpu_register(i)) == in fldenv()
Dreg_convert.c23 setexponent16(x, exponent(a)); in FPU_to_exp16()
Dfpu_emu.h175 #define exponent(x) (((*(short *)&((x)->exp)) & 0x7fff) - EXTENDED_Ebias) macro
183 #define isdenormal(ptr) (exponent(ptr) == EXP_BIAS+EXP_UNDER)
Dfpu_etc.c109 && (exponent(st0_ptr) == EXP_OVER)) in fxam()
/linux-4.4.14/arch/arm/vfp/
Dvfpdouble.c43 .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 …]
Dvfpsingle.c43 .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 …]
Dvfp.h153 s16 exponent; member
196 s->exponent = vfp_single_packed_exponent(val); in vfp_single_unpack()
200 if (s->exponent && s->exponent != 255) in vfp_single_unpack()
213 (s->exponent << VFP_SINGLE_MANTISSA_BITS) + in vfp_single_pack()
231 if (s->exponent == 255) { in vfp_single_type()
238 } else if (s->exponent == 0) { in vfp_single_type()
258 s16 exponent; member
305 s->exponent = vfp_double_packed_exponent(val); in vfp_double_unpack()
309 if (s->exponent && s->exponent != 2047) in vfp_double_unpack()
322 ((u64)s->exponent << VFP_DOUBLE_MANTISSA_BITS) + in vfp_double_pack()
[all …]
/linux-4.4.14/arch/tile/lib/
Dspinlock_common.h40 u32 exponent, loops; in delay_backoff() local
48 exponent = iterations + 1; in delay_backoff()
54 if (exponent > 8) in delay_backoff()
55 exponent = 8; in delay_backoff()
57 loops = 1 << exponent; in delay_backoff()
/linux-4.4.14/drivers/hwmon/pmbus/
Dzl6100.c68 s16 exponent; in zl6100_l2d() local
72 exponent = l >> 11; in zl6100_l2d()
80 if (exponent >= 0) in zl6100_l2d()
81 val <<= exponent; in zl6100_l2d()
83 val >>= -exponent; in zl6100_l2d()
93 s16 exponent = 0, mantissa; in zl6100_d2l() local
106 while (val >= MAX_MANTISSA && exponent < 15) { in zl6100_d2l()
107 exponent++; in zl6100_d2l()
111 while (val < MIN_MANTISSA && exponent > -15) { in zl6100_d2l()
112 exponent--; in zl6100_d2l()
[all …]
Dpmbus_core.c95 int exponent[PMBUS_PAGES]; member
442 s16 exponent; in pmbus_reg2data_linear() local
447 exponent = data->exponent[sensor->page]; in pmbus_reg2data_linear()
450 exponent = ((s16)sensor->data) >> 11; in pmbus_reg2data_linear()
464 if (exponent >= 0) in pmbus_reg2data_linear()
465 val <<= exponent; in pmbus_reg2data_linear()
467 val >>= -exponent; in pmbus_reg2data_linear()
563 s16 exponent = 0, mantissa; in pmbus_data2reg_linear() local
579 if (data->exponent[sensor->page] < 0) in pmbus_data2reg_linear()
580 val <<= -data->exponent[sensor->page]; in pmbus_data2reg_linear()
[all …]
/linux-4.4.14/drivers/iio/light/
Dopt3001.c147 int val2, u8 *exponent) in opt3001_find_scale() argument
161 *exponent = i; in opt3001_find_scale()
169 static void opt3001_to_iio_ret(struct opt3001 *opt, u8 exponent, in opt3001_to_iio_ret() argument
174 lux = 10 * (mantissa << exponent); in opt3001_to_iio_ret()
228 u8 exponent; in opt3001_get_lux() local
297 exponent = OPT3001_REG_EXPONENT(opt->result); in opt3001_get_lux()
300 opt3001_to_iio_ret(opt, exponent, mantissa, val, val2); in opt3001_get_lux()
441 u8 exponent; in opt3001_write_event_value() local
448 ret = opt3001_find_scale(opt, val, val2, &exponent); in opt3001_write_event_value()
454 mantissa = (((val * 1000) + (val2 / 1000)) / 10) >> exponent; in opt3001_write_event_value()
[all …]
/linux-4.4.14/drivers/s390/crypto/
Dzcrypt_cca_key.h67 unsigned char exponent[128]; member
159 char exponent[3]; in zcrypt_type6_mex_key_de() member
180 memcpy(key->exponent, pk_exponent, 3); in zcrypt_type6_mex_key_de()
183 temp = key->pvtMeSec.exponent + in zcrypt_type6_mex_key_de()
184 sizeof(key->pvtMeSec.exponent) - mex->inputdatalength; in zcrypt_type6_mex_key_de()
221 char exponent[0]; in zcrypt_type6_mex_key_en() member
232 temp = key->exponent; in zcrypt_type6_mex_key_en()
Dzcrypt_cex2a.h62 unsigned char exponent[128]; member
72 unsigned char exponent[256]; member
82 unsigned char exponent[512]; member
Dzcrypt_msgtype50.c92 unsigned char exponent[128]; member
102 unsigned char exponent[256]; member
112 unsigned char exponent[512]; member
202 exp = meb1->exponent + sizeof(meb1->exponent) - mod_len; in ICAMEX_msg_to_type50MEX_msg()
212 exp = meb2->exponent + sizeof(meb2->exponent) - mod_len; in ICAMEX_msg_to_type50MEX_msg()
223 exp = meb3->exponent + sizeof(meb3->exponent) - mod_len; in ICAMEX_msg_to_type50MEX_msg()
/linux-4.4.14/arch/m68k/fpsp040/
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.
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
482 btst #30,(%a0) |test the sign of the exponent
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 …]
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.
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 …]
Dfpsp.h131 .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)
Dx_store.S132 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
Dx_unfl.S10 | shifting the mantissa right while incrementing the exponent until
11 | it is equal to the denormalized exponent for the destination
18 | added to the exponent.
Dx_operr.S175 cmpw #0x3FFE,%d0 |this is the only possible exponent value
202 cmpw #0x3FFE,%d0 |this is the only possible exponent value
282 | Check the exponent for $c000 and the upper 32 bits of the
Dbugfix.S235 | Set ETEMP exponent bit 15 as the opposite of ete14
237 btst #6,ETEMP_EX(%a6) |check etemp exponent bit 14
329 | Set ETEMP exponent bit 15 as the opposite of ete14
331 btst #6,ETEMP_EX(%a6) |check etemp exponent bit 14
Dx_ovfl.S31 | with a bias of $6000 subtracted from the exponent.
Dget_op.S496 bfextu %d0{#20:#12},%d1 |get exponent into d1
548 bfextu %d0{#20:#12},%d1 |get exponent into d1
Dres_func.S631 | replace exponent of src with $3fff (keep sign)
641 | replace exponent of src with $3fff (keep sign)
846 orw #0x3fff,%d0 |force the exponent to +/- 1
962 | The result has overflowed to $7fff exponent. Set I, ovfl,
1021 orw #0x3fff,%d0 |force the exponent to +/- 1
1143 | The result has overflowed to $7fff exponent. Set I, ovfl,
1886 | the input operand's exponent by 1 to account for the fact that
Dsint.S32 | result to the exponent $403e.
Dutil.S468 | the exponent.
Dsetox.S68 | the sign and biased exponent field of |X|; the lower 16
/linux-4.4.14/arch/m68k/math-emu/
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
/linux-4.4.14/Documentation/devicetree/bindings/power/
Dltc2941.txt15 - lltc,prescaler-exponent: The prescaler exponent as explained in the datasheet.
26 lltc,prescaler-exponent = <5>; /* 2^(2*5) = 1024 */
/linux-4.4.14/drivers/isdn/mISDN/
Ddsp_audio.c124 int sign, exponent, mantissa; in linear2ulaw() local
134 exponent = exp_lut[(sample >> 7) & 0xFF]; in linear2ulaw()
135 mantissa = (sample >> (exponent + 3)) & 0x0F; in linear2ulaw()
136 ulawbyte = ~(sign | (exponent << 4) | mantissa); in linear2ulaw()
/linux-4.4.14/drivers/isdn/i4l/
Disdn_audio.c264 exponent, in isdn_audio_linear2ulaw() local
277 exponent = exp_lut[(sample >> 7) & 0xFF]; in isdn_audio_linear2ulaw()
278 mantissa = (sample >> (exponent + 3)) & 0x0F; in isdn_audio_linear2ulaw()
279 ulawbyte = ~(sign | (exponent << 4) | mantissa); in isdn_audio_linear2ulaw()
/linux-4.4.14/arch/x86/um/
Dsignal.c51 switch (st->exponent & 0x7fff) { in twd_fxsr_to_i387()
109 __put_user(from->exponent, &to->exponent)) in convert_fxsr_to_user()
143 __get_user(to->exponent, &from->exponent)) in convert_fxsr_from_user()
/linux-4.4.14/arch/arm/include/asm/
Duser.h38 unsigned int exponent:14; member
/linux-4.4.14/drivers/md/bcache/
Dbset.c241 unsigned exponent:BKEY_EXPONENT_BITS; member
550 const uint64_t *p = &k->low - (f->exponent >> 6); in bfloat_mantissa()
551 return shrd128(p[-1], p[0], f->exponent & 63) & BKEY_MANTISSA_MASK; in bfloat_mantissa()
572 f->exponent = fls64(KEY_INODE(r) ^ KEY_INODE(l)) + 64; in make_bfloat()
574 f->exponent = fls64(r->low ^ l->low); in make_bfloat()
576 f->exponent = max_t(int, f->exponent - BKEY_MANTISSA_BITS, 0); in make_bfloat()
586 f->exponent = 127; in make_bfloat()
915 if (likely(f->exponent != 127)) in bset_search_tree()
1324 if (t->tree[j].exponent == 127) in bch_btree_keys_stats()
/linux-4.4.14/arch/x86/include/uapi/asm/
Dsigcontext.h86 __u16 exponent; member
92 __u16 exponent; member
/linux-4.4.14/drivers/usb/serial/
Dpl2303.c365 unsigned int baseline, mantissa, exponent; in pl2303_encode_baud_rate_divisor() local
378 exponent = 0; in pl2303_encode_baud_rate_divisor()
380 if (exponent < 7) { in pl2303_encode_baud_rate_divisor()
382 exponent++; in pl2303_encode_baud_rate_divisor()
392 buf[1] = exponent << 1 | mantissa >> 8; in pl2303_encode_baud_rate_divisor()
396 baud = (baseline / mantissa) >> (exponent << 1); in pl2303_encode_baud_rate_divisor()
/linux-4.4.14/arch/m68k/ifpsp060/src/
Dfpsp.S1440 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 …]
Dpfpsp.S1439 mov.w LOCAL_EX(%a0),%d0 # fetch src exponent
1486 addi.w &0x3c01,%d0 # adjust new exponent
1487 andi.w &0x8000,LOCAL_EX(%a0) # clear old exponent
1488 or.w %d0,LOCAL_EX(%a0) # insert new exponent
2310 mov.w FP_SRC_EX(%a6),%d0 # fetch DENORM exponent
2315 neg.w %d0 # make exponent negative
2321 andi.w &0x8000,FP_SRC_EX(%a6) # clear old exponent
2322 ori.w &0x3f80,FP_SRC_EX(%a6) # insert new "skewed" exponent
2327 mov.w FP_SRC_EX(%a6),%d0 # fetch DENORM exponent
2335 mov.w %d0,FP_SRC_EX(%a6) # insert exponent with cleared sign
[all …]
Dfplsp.S395 set SGL_LO, 0x3f81 # min sgl prec exponent
396 set SGL_HI, 0x407e # max sgl prec exponent
397 set DBL_LO, 0x3c01 # min dbl prec exponent
398 set DBL_HI, 0x43fe # max dbl prec exponent
399 set EXT_LO, 0x0 # min ext prec exponent
400 set EXT_HI, 0x7ffe # max ext prec exponent
496 set sgl_thresh, 0x3f81 # minimum sgl exponent
497 set dbl_thresh, 0x3c01 # minimum dbl exponent
6722 # are the sign and biased exponent field of |X|; the #
7496 # sgetexp(): returns the exponent portion of the input argument. #
[all …]
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dfirmware.c120 u8 exponent[EXPONENT_SIZE]; member
128 u8 exponent[EXPONENT_SIZE]; member
147 u8 *exponent; /* pointer to the exponent */ member
489 fdet->exponent = ff->exponent; in obtain_one_firmware()
514 fdet->exponent = aff->exponent; in obtain_one_firmware()
/linux-4.4.14/drivers/usb/host/
Duhci-q.c1085 int exponent; in uhci_submit_interrupt() local
1088 for (exponent = 7; exponent >= 0; --exponent) { in uhci_submit_interrupt()
1089 if ((1 << exponent) <= urb->interval) in uhci_submit_interrupt()
1092 if (exponent < 0) in uhci_submit_interrupt()
1097 qh->period = 1 << exponent; in uhci_submit_interrupt()
1098 qh->skel = SKEL_INDEX(exponent); in uhci_submit_interrupt()
1105 } while (ret != 0 && --exponent >= 0); in uhci_submit_interrupt()
Duhci-hcd.h331 #define SKEL_INDEX(exponent) (9 - exponent) argument
/linux-4.4.14/drivers/pcmcia/
Dcistpl.c40 static const u_int exponent[] = { variable
46 (mantissa[(((v)>>3)&15)-1] * exponent[(v)&7] / 10)
49 (mantissa[((v)>>3)&15] * exponent[(v)&7] / 10)
50 #define POWER_SCALE(v) (exponent[(v)&7])
955 timing->waitscale = exponent[scale & 3]; in parse_timing()
963 timing->rdyscale = exponent[scale & 7]; in parse_timing()
971 timing->rsvscale = exponent[scale]; in parse_timing()
/linux-4.4.14/drivers/gpu/drm/radeon/
Dr600_blit.c46 uint32_t msb, exponent, fraction; in int2float() local
60 exponent = (127 + msb) << I2F_FRAC_BITS; in int2float()
62 return fraction + exponent; in int2float()
/linux-4.4.14/drivers/spi/
Dspi-zynqmp-gqspi.c844 u32 exponent = 8; /* 2^8 = 256 */ in zynqmp_qspi_start_transfer() local
856 genfifoentry |= exponent; in zynqmp_qspi_start_transfer()
862 exponent++; in zynqmp_qspi_start_transfer()
/linux-4.4.14/arch/x86/kernel/fpu/
Dregset.c172 switch (st->exponent & 0x7fff) { in twd_fxsr_to_i387()
/linux-4.4.14/Documentation/arm/nwfpe/
DTODO10 EXP{cond}<S|D|E>{P,M,Z} Fd, <Fm,#value> - exponent
DREADME.FPE127 EXP{cond}<S|D|E>{P,M,Z} Fd, <Fm,#value> - exponent
/linux-4.4.14/drivers/isdn/hardware/mISDN/
Dhfcmulti.c1845 u8 exponent; in hfcmulti_dtmf() local
1884 exponent = (w_float >> 12) & 0x7; in hfcmulti_dtmf()
1885 if (exponent) { in hfcmulti_dtmf()
1887 mantissa <<= (exponent - 1); in hfcmulti_dtmf()
1903 exponent = (w_float >> 12) & 0x7; in hfcmulti_dtmf()
1904 if (exponent) { in hfcmulti_dtmf()
1906 mantissa <<= (exponent - 1); in hfcmulti_dtmf()
/linux-4.4.14/drivers/hid/
Dwacom_sys.c101 unsigned unit, int exponent) in wacom_calc_hid_res() argument
107 .unit_exponent = exponent, in wacom_calc_hid_res()