arch/arm/include/asm/user.h
39
unsigned int exponent:14;
arch/arm/vfp/vfp.h
150
s16 exponent;
arch/arm/vfp/vfp.h
193
s->exponent = vfp_single_packed_exponent(val);
arch/arm/vfp/vfp.h
197
if (s->exponent && s->exponent != 255)
arch/arm/vfp/vfp.h
210
(s->exponent << VFP_SINGLE_MANTISSA_BITS) +
arch/arm/vfp/vfp.h
228
if (s->exponent == 255) {
arch/arm/vfp/vfp.h
235
} else if (s->exponent == 0) {
arch/arm/vfp/vfp.h
255
s16 exponent;
arch/arm/vfp/vfp.h
302
s->exponent = vfp_double_packed_exponent(val);
arch/arm/vfp/vfp.h
306
if (s->exponent && s->exponent != 2047)
arch/arm/vfp/vfp.h
319
((u64)s->exponent << VFP_DOUBLE_MANTISSA_BITS) +
arch/arm/vfp/vfp.h
327
if (s->exponent == 2047) {
arch/arm/vfp/vfp.h
334
} else if (s->exponent == 0) {
arch/arm/vfp/vfp.h
345
u32 vfp_estimate_sqrt_significand(u32 exponent, u32 significand);
arch/arm/vfp/vfpdouble.c
104
vd->exponent = exponent;
arch/arm/vfp/vfpdouble.c
1066
vdd.exponent = vdn.exponent - vdm.exponent + 1023 - 1;
arch/arm/vfp/vfpdouble.c
1070
vdd.exponent++;
arch/arm/vfp/vfpdouble.c
1096
vdd.exponent = 0;
arch/arm/vfp/vfpdouble.c
1103
vdd.exponent = 2047;
arch/arm/vfp/vfpdouble.c
112
underflow = exponent < 0;
arch/arm/vfp/vfpdouble.c
114
significand = vfp_shiftright64jamming(significand, -exponent);
arch/arm/vfp/vfpdouble.c
115
exponent = 0;
arch/arm/vfp/vfpdouble.c
117
vd->exponent = exponent;
arch/arm/vfp/vfpdouble.c
146
exponent += 1;
arch/arm/vfp/vfpdouble.c
150
vd->exponent = exponent;
arch/arm/vfp/vfpdouble.c
171
if (exponent >= 2046) {
arch/arm/vfp/vfpdouble.c
174
vd->exponent = 2045;
arch/arm/vfp/vfpdouble.c
177
vd->exponent = 2047; /* infinity */
arch/arm/vfp/vfpdouble.c
182
exponent = 0;
arch/arm/vfp/vfpdouble.c
183
if (exponent || significand > 0x8000000000000000ULL)
arch/arm/vfp/vfpdouble.c
187
vd->exponent = exponent;
arch/arm/vfp/vfpdouble.c
317
vdd.exponent = ((vdm.exponent - 1023) >> 1) + 1023;
arch/arm/vfp/vfpdouble.c
318
vdd.significand = (u64)vfp_estimate_sqrt_significand(vdm.exponent, vdm.significand >> 32) << 31;
arch/arm/vfp/vfpdouble.c
322
vdm.significand >>= 1 + (vdm.exponent & 1);
arch/arm/vfp/vfpdouble.c
43
.exponent = 2047,
arch/arm/vfp/vfpdouble.c
466
vsd.exponent = 255;
arch/arm/vfp/vfpdouble.c
471
vsd.exponent = 0;
arch/arm/vfp/vfpdouble.c
473
vsd.exponent = vdm.exponent - (1023 - 127);
arch/arm/vfp/vfpdouble.c
488
vdm.exponent = 1023 + 63 - 1;
arch/arm/vfp/vfpdouble.c
500
vdm.exponent = 1023 + 63 - 1;
arch/arm/vfp/vfpdouble.c
51
str, d->sign != 0, d->exponent, d->significand);
arch/arm/vfp/vfpdouble.c
525
if (vdm.exponent >= 1023 + 32) {
arch/arm/vfp/vfpdouble.c
528
} else if (vdm.exponent >= 1023 - 1) {
arch/arm/vfp/vfpdouble.c
529
int shift = 1023 + 63 - vdm.exponent;
arch/arm/vfp/vfpdouble.c
562
if (vdm.exponent | vdm.significand) {
arch/arm/vfp/vfpdouble.c
605
} else if (vdm.exponent >= 1023 + 32) {
arch/arm/vfp/vfpdouble.c
610
} else if (vdm.exponent >= 1023 - 1) {
arch/arm/vfp/vfpdouble.c
611
int shift = 1023 + 63 - vdm.exponent; /* 58 */
arch/arm/vfp/vfpdouble.c
63
vd->exponent -= bits - 1;
arch/arm/vfp/vfpdouble.c
639
if (vdm.exponent | vdm.significand) {
arch/arm/vfp/vfpdouble.c
73
int exponent, shift, underflow;
arch/arm/vfp/vfpdouble.c
743
if (vdn->exponent < vdm->exponent) {
arch/arm/vfp/vfpdouble.c
753
if (vdn->exponent == 2047)
arch/arm/vfp/vfpdouble.c
766
exp_diff = vdn->exponent - vdm->exponent;
arch/arm/vfp/vfpdouble.c
801
if (vdn->exponent < vdm->exponent) {
arch/arm/vfp/vfpdouble.c
81
if (vd->exponent == 2047 && (vd->significand == 0 || exceptions))
arch/arm/vfp/vfpdouble.c
813
if (vdn->exponent == 2047) {
arch/arm/vfp/vfpdouble.c
814
if (vdn->significand || (vdm->exponent == 2047 && vdm->significand))
arch/arm/vfp/vfpdouble.c
816
if ((vdm->exponent | vdm->significand) == 0) {
arch/arm/vfp/vfpdouble.c
820
vdd->exponent = vdn->exponent;
arch/arm/vfp/vfpdouble.c
829
if ((vdm->exponent | vdm->significand) == 0) {
arch/arm/vfp/vfpdouble.c
830
vdd->exponent = 0;
arch/arm/vfp/vfpdouble.c
840
vdd->exponent = vdn->exponent + vdm->exponent - 1023 + 2;
arch/arm/vfp/vfpdouble.c
857
if (vdn.exponent == 0 && vdn.significand)
arch/arm/vfp/vfpdouble.c
861
if (vdm.exponent == 0 && vdm.significand)
arch/arm/vfp/vfpdouble.c
869
if (vdn.exponent == 0 && vdn.significand)
arch/arm/vfp/vfpdouble.c
88
vd->exponent = 0;
arch/arm/vfp/vfpdouble.c
92
exponent = vd->exponent;
arch/arm/vfp/vfpdouble.c
924
if (vdn.exponent == 0 && vdn.significand)
arch/arm/vfp/vfpdouble.c
928
if (vdm.exponent == 0 && vdm.significand)
arch/arm/vfp/vfpdouble.c
944
if (vdn.exponent == 0 && vdn.significand)
arch/arm/vfp/vfpdouble.c
948
if (vdm.exponent == 0 && vdm.significand)
arch/arm/vfp/vfpdouble.c
966
if (vdn.exponent == 0 && vdn.significand)
arch/arm/vfp/vfpdouble.c
970
if (vdm.exponent == 0 && vdm.significand)
arch/arm/vfp/vfpdouble.c
987
if (vdn.exponent == 0 && vdn.significand)
arch/arm/vfp/vfpdouble.c
99
exponent -= shift;
arch/arm/vfp/vfpdouble.c
991
if (vdm.exponent == 0 && vdm.significand)
arch/arm/vfp/vfpsingle.c
1003
if (vsm.exponent == 0 && vsm.significand)
arch/arm/vfp/vfpsingle.c
1026
if (vsn.exponent == 0 && vsn.significand)
arch/arm/vfp/vfpsingle.c
1030
if (vsm.exponent == 0 && vsm.significand)
arch/arm/vfp/vfpsingle.c
104
exponent -= shift;
arch/arm/vfp/vfpsingle.c
109
vs->exponent = exponent;
arch/arm/vfp/vfpsingle.c
1114
vsd.exponent = vsn.exponent - vsm.exponent + 127 - 1;
arch/arm/vfp/vfpsingle.c
1118
vsd.exponent++;
arch/arm/vfp/vfpsingle.c
1141
vsd.exponent = 0;
arch/arm/vfp/vfpsingle.c
1148
vsd.exponent = 255;
arch/arm/vfp/vfpsingle.c
117
underflow = exponent < 0;
arch/arm/vfp/vfpsingle.c
119
significand = vfp_shiftright32jamming(significand, -exponent);
arch/arm/vfp/vfpsingle.c
120
exponent = 0;
arch/arm/vfp/vfpsingle.c
122
vs->exponent = exponent;
arch/arm/vfp/vfpsingle.c
151
exponent += 1;
arch/arm/vfp/vfpsingle.c
155
vs->exponent = exponent;
arch/arm/vfp/vfpsingle.c
176
if (exponent >= 254) {
arch/arm/vfp/vfpsingle.c
179
vs->exponent = 253;
arch/arm/vfp/vfpsingle.c
182
vs->exponent = 255; /* infinity */
arch/arm/vfp/vfpsingle.c
187
exponent = 0;
arch/arm/vfp/vfpsingle.c
188
if (exponent || significand > 0x80000000)
arch/arm/vfp/vfpsingle.c
192
vs->exponent = exponent;
arch/arm/vfp/vfpsingle.c
287
u32 vfp_estimate_sqrt_significand(u32 exponent, u32 significand)
arch/arm/vfp/vfpsingle.c
298
if (exponent & 1) {
arch/arm/vfp/vfpsingle.c
365
vsd.exponent = ((vsm.exponent - 127) >> 1) + 127;
arch/arm/vfp/vfpsingle.c
366
vsd.significand = vfp_estimate_sqrt_significand(vsm.exponent, vsm.significand) + 2;
arch/arm/vfp/vfpsingle.c
379
vsm.significand <<= !(vsm.exponent & 1);
arch/arm/vfp/vfpsingle.c
43
.exponent = 255,
arch/arm/vfp/vfpsingle.c
509
vdd.exponent = 2047;
arch/arm/vfp/vfpsingle.c
51
str, s->sign != 0, s->exponent, s->significand);
arch/arm/vfp/vfpsingle.c
514
vdd.exponent = 0;
arch/arm/vfp/vfpsingle.c
516
vdd.exponent = vsm.exponent + (1023 - 127);
arch/arm/vfp/vfpsingle.c
530
vs.exponent = 127 + 31 - 1;
arch/arm/vfp/vfpsingle.c
541
vs.exponent = 127 + 31 - 1;
arch/arm/vfp/vfpsingle.c
567
if (vsm.exponent >= 127 + 32) {
arch/arm/vfp/vfpsingle.c
570
} else if (vsm.exponent >= 127 - 1) {
arch/arm/vfp/vfpsingle.c
571
int shift = 127 + 31 - vsm.exponent;
arch/arm/vfp/vfpsingle.c
604
if (vsm.exponent | vsm.significand) {
arch/arm/vfp/vfpsingle.c
61
vs->exponent -= bits - 1;
arch/arm/vfp/vfpsingle.c
647
} else if (vsm.exponent >= 127 + 32) {
arch/arm/vfp/vfpsingle.c
655
} else if (vsm.exponent >= 127 - 1) {
arch/arm/vfp/vfpsingle.c
656
int shift = 127 + 31 - vsm.exponent;
arch/arm/vfp/vfpsingle.c
685
if (vsm.exponent | vsm.significand) {
arch/arm/vfp/vfpsingle.c
76
int exponent, shift, underflow;
arch/arm/vfp/vfpsingle.c
788
if (vsn->exponent < vsm->exponent) {
arch/arm/vfp/vfpsingle.c
798
if (vsn->exponent == 255)
arch/arm/vfp/vfpsingle.c
811
exp_diff = vsn->exponent - vsm->exponent;
arch/arm/vfp/vfpsingle.c
83
if (vs->exponent == 255 && (vs->significand == 0 || exceptions))
arch/arm/vfp/vfpsingle.c
845
if (vsn->exponent < vsm->exponent) {
arch/arm/vfp/vfpsingle.c
857
if (vsn->exponent == 255) {
arch/arm/vfp/vfpsingle.c
858
if (vsn->significand || (vsm->exponent == 255 && vsm->significand))
arch/arm/vfp/vfpsingle.c
860
if ((vsm->exponent | vsm->significand) == 0) {
arch/arm/vfp/vfpsingle.c
864
vsd->exponent = vsn->exponent;
arch/arm/vfp/vfpsingle.c
873
if ((vsm->exponent | vsm->significand) == 0) {
arch/arm/vfp/vfpsingle.c
874
vsd->exponent = 0;
arch/arm/vfp/vfpsingle.c
884
vsd->exponent = vsn->exponent + vsm->exponent - 127 + 2;
arch/arm/vfp/vfpsingle.c
90
vs->exponent = 0;
arch/arm/vfp/vfpsingle.c
904
if (vsn.exponent == 0 && vsn.significand)
arch/arm/vfp/vfpsingle.c
908
if (vsm.exponent == 0 && vsm.significand)
arch/arm/vfp/vfpsingle.c
918
if (vsn.exponent == 0 && vsn.significand)
arch/arm/vfp/vfpsingle.c
94
exponent = vs->exponent;
arch/arm/vfp/vfpsingle.c
976
if (vsn.exponent == 0 && vsn.significand)
arch/arm/vfp/vfpsingle.c
980
if (vsm.exponent == 0 && vsm.significand)
arch/arm/vfp/vfpsingle.c
999
if (vsn.exponent == 0 && vsn.significand)
arch/m68k/fpsp040/fpsp.h
131
.set WBTEMP_EX,WBTEMP | wbtemp sign and exponent (2 bytes)
arch/m68k/fpsp040/fpsp.h
164
.set etemp15_bit,4 | etemp exponent bit #15
arch/m68k/fpsp040/fpsp.h
184
.set fptemp15_bit,4 | fptemp exponent bit #15
arch/m68k/fpsp040/fpsp.h
187
.set wbtemp15_bit,4 | wbtemp exponent bit #15
arch/m68k/fpsp040/fpsp.h
200
.set FPTEMP_EX,FPTEMP | fptemp sign and exponent (2 bytes)
arch/m68k/fpsp040/fpsp.h
207
.set ETEMP_EX,ETEMP | etemp sign and exponent (2 bytes)
arch/m68k/ifpsp060/src/fpsp.S
21004
# if the mantissa is zero, I will zero the exponent, too.
arch/m68k/ifpsp060/src/pfpsp.S
7905
# if the mantissa is zero, I will zero the exponent, too.
arch/parisc/math-emu/cnv_float.h
178
#define Dbl_isinexact_to_fix(dbl_valueA,dbl_valueB,exponent) \
arch/parisc/math-emu/cnv_float.h
179
(exponent < (DBL_P-33) ? \
arch/parisc/math-emu/cnv_float.h
180
Dallp2(dbl_valueB) || Dallp1(dbl_valueA) << (DBL_EXP_LENGTH+1+exponent) : \
arch/parisc/math-emu/cnv_float.h
181
(exponent < (DBL_P-1) ? Dallp2(dbl_valueB) << (exponent + (33-DBL_P)) : \
arch/parisc/math-emu/cnv_float.h
184
#define Dbl_isoverflow_to_int(exponent,dbl_valueA,dbl_valueB) \
arch/parisc/math-emu/cnv_float.h
185
((exponent > SGL_FX_MAX_EXP + 1) || Dsign(dbl_valueA)==0 || \
arch/parisc/math-emu/cnv_float.h
188
#define Dbl_isone_roundbit(dbl_valueA,dbl_valueB,exponent) \
arch/parisc/math-emu/cnv_float.h
189
((exponent < (DBL_P - 33) ? \
arch/parisc/math-emu/cnv_float.h
190
Dallp1(dbl_valueA) >> ((30 - DBL_EXP_LENGTH) - exponent) : \
arch/parisc/math-emu/cnv_float.h
191
Dallp2(dbl_valueB) >> ((DBL_P - 2) - exponent)) & 1)
arch/parisc/math-emu/cnv_float.h
193
#define Dbl_isone_stickybit(dbl_valueA,dbl_valueB,exponent) \
arch/parisc/math-emu/cnv_float.h
194
(exponent < (DBL_P-34) ? \
arch/parisc/math-emu/cnv_float.h
195
(Dallp2(dbl_valueB) || Dallp1(dbl_valueA)<<(DBL_EXP_LENGTH+2+exponent)) : \
arch/parisc/math-emu/cnv_float.h
196
(exponent<(DBL_P-2) ? (Dallp2(dbl_valueB) << (exponent + (34-DBL_P))) : \
arch/parisc/math-emu/cnv_float.h
202
#define Int_from_sgl_mantissa(sgl_value,exponent) \
arch/parisc/math-emu/cnv_float.h
204
(unsigned)(Sall(sgl_value) << SGL_EXP_LENGTH)>>(31 - exponent)
arch/parisc/math-emu/cnv_float.h
206
#define Int_from_dbl_mantissa(dbl_valueA,dbl_valueB,exponent) \
arch/parisc/math-emu/cnv_float.h
208
if (exponent < 31) Dallp1(dbl_valueA) >>= 30 - exponent; \
arch/parisc/math-emu/cnv_float.h
216
#define Dint_from_sgl_mantissa(sgl_value,exponent,dresultA,dresultB) \
arch/parisc/math-emu/cnv_float.h
218
if (exponent <= 31) { \
arch/parisc/math-emu/cnv_float.h
220
Dintp2(dresultB) = (unsigned)Sall(sgl_value) >> (31 - exponent); \
arch/parisc/math-emu/cnv_float.h
223
Dintp1(dresultA) = Sall(sgl_value) >> (63 - exponent); \
arch/parisc/math-emu/cnv_float.h
224
Dintp2(dresultB) = Sall(sgl_value) << (exponent - 31); \
arch/parisc/math-emu/cnv_float.h
228
#define Dint_from_dbl_mantissa(dbl_valueA,dbl_valueB,exponent,destA,destB) \
arch/parisc/math-emu/cnv_float.h
229
{if (exponent < 32) { \
arch/parisc/math-emu/cnv_float.h
231
if (exponent <= 20) \
arch/parisc/math-emu/cnv_float.h
232
Dintp2(destB) = Dallp1(dbl_valueA) >> 20-exponent; \
arch/parisc/math-emu/cnv_float.h
234
52-exponent,Dintp2(destB)); \
arch/parisc/math-emu/cnv_float.h
237
if (exponent <= 52) { \
arch/parisc/math-emu/cnv_float.h
238
Dintp1(destA) = Dallp1(dbl_valueA) >> 52-exponent; \
arch/parisc/math-emu/cnv_float.h
239
if (exponent == 52) Dintp2(destB) = Dallp2(dbl_valueB); \
arch/parisc/math-emu/cnv_float.h
241
52-exponent,Dintp2(destB)); \
arch/parisc/math-emu/cnv_float.h
245
84-exponent,Dintp1(destA)); \
arch/parisc/math-emu/cnv_float.h
246
Dintp2(destB) = Dallp2(dbl_valueB) << exponent-52; \
arch/parisc/math-emu/cnv_float.h
330
#define Suint_from_sgl_mantissa(src,exponent,result) \
arch/parisc/math-emu/cnv_float.h
331
Sall(result) = (unsigned)(Sall(src) << SGL_EXP_LENGTH)>>(31 - exponent)
arch/parisc/math-emu/cnv_float.h
333
#define Sgl_isinexact_to_unsigned(sgl_value,exponent) \
arch/parisc/math-emu/cnv_float.h
334
Sgl_isinexact_to_fix(sgl_value,exponent)
arch/parisc/math-emu/cnv_float.h
336
#define Duint_from_sgl_mantissa(sgl_value,exponent,dresultA,dresultB) \
arch/parisc/math-emu/cnv_float.h
338
if (exponent <= 31) { \
arch/parisc/math-emu/cnv_float.h
340
Dintp2(dresultB) = val >> (31 - exponent); \
arch/parisc/math-emu/cnv_float.h
343
Dintp1(dresultA) = val >> (63 - exponent); \
arch/parisc/math-emu/cnv_float.h
344
Dintp2(dresultB) = exponent <= 62 ? val << (exponent - 31) : 0; \
arch/parisc/math-emu/cnv_float.h
355
#define Suint_from_dbl_mantissa(srcA,srcB,exponent,dest) \
arch/parisc/math-emu/cnv_float.h
357
dest = (unsigned)dest >> 31 - exponent
arch/parisc/math-emu/cnv_float.h
359
#define Dbl_isinexact_to_unsigned(dbl_valueA,dbl_valueB,exponent) \
arch/parisc/math-emu/cnv_float.h
360
Dbl_isinexact_to_fix(dbl_valueA,dbl_valueB,exponent)
arch/parisc/math-emu/cnv_float.h
362
#define Duint_from_dbl_mantissa(dbl_valueA,dbl_valueB,exponent,destA,destB) \
arch/parisc/math-emu/cnv_float.h
363
Dint_from_dbl_mantissa(dbl_valueA,dbl_valueB,exponent,destA,destB)
arch/parisc/math-emu/cnv_float.h
46
#define Sgl_isinexact_to_fix(sgl_value,exponent) \
arch/parisc/math-emu/cnv_float.h
47
((exponent < (SGL_P - 1)) ? \
arch/parisc/math-emu/cnv_float.h
48
(Sall(sgl_value) << (SGL_EXP_LENGTH + 1 + exponent)) : FALSE)
arch/parisc/math-emu/cnv_float.h
73
#define Sgl_isone_roundbit(sgl_value,exponent) \
arch/parisc/math-emu/cnv_float.h
74
((Sall(sgl_value) << (SGL_EXP_LENGTH + 1 + exponent)) >> 31)
arch/parisc/math-emu/cnv_float.h
76
#define Sgl_isone_stickybit(sgl_value,exponent) \
arch/parisc/math-emu/cnv_float.h
77
(exponent < (SGL_P - 2) ? \
arch/parisc/math-emu/cnv_float.h
78
Sall(sgl_value) << (SGL_EXP_LENGTH + 2 + exponent) : FALSE)
arch/parisc/math-emu/dbl_float.h
305
#define Dbl_setwrapped_exponent(dbl_value,exponent,op) \
arch/parisc/math-emu/dbl_float.h
306
Deposit_dexponent(dbl_value,(exponent op DBL_WRAP))
arch/parisc/math-emu/dbl_float.h
429
#define Dbl_normalize(dbl_opndA,dbl_opndB,exponent) \
arch/parisc/math-emu/dbl_float.h
432
exponent -= 8; \
arch/parisc/math-emu/dbl_float.h
436
exponent -= 4; \
arch/parisc/math-emu/dbl_float.h
440
exponent -= 1; \
arch/parisc/math-emu/dbl_float.h
489
#define Dbl_denormalize(opndp1,opndp2,exponent,guard,sticky,inexact) \
arch/parisc/math-emu/dbl_float.h
491
if (exponent >= (1-DBL_P)) { \
arch/parisc/math-emu/dbl_float.h
492
if (exponent >= -31) { \
arch/parisc/math-emu/dbl_float.h
493
guard = (Dallp2(opndp2) >> -exponent) & 1; \
arch/parisc/math-emu/dbl_float.h
494
if (exponent < 0) sticky |= Dallp2(opndp2) << (32+exponent); \
arch/parisc/math-emu/dbl_float.h
495
if (exponent > -31) { \
arch/parisc/math-emu/dbl_float.h
496
Variable_shift_double(opndp1,opndp2,1-exponent,opndp2); \
arch/parisc/math-emu/dbl_float.h
497
Dallp1(opndp1) >>= 1-exponent; \
arch/parisc/math-emu/dbl_float.h
505
guard = (Dallp1(opndp1) >> -32-exponent) & 1; \
arch/parisc/math-emu/dbl_float.h
506
if (exponent == -32) sticky |= Dallp2(opndp2); \
arch/parisc/math-emu/dbl_float.h
507
else sticky |= (Dallp2(opndp2) | Dallp1(opndp1) << 64+exponent); \
arch/parisc/math-emu/dbl_float.h
508
Dallp2(opndp2) = Dallp1(opndp1) >> -31-exponent; \
arch/parisc/math-emu/dbl_float.h
762
#define Dblext_denormalize(opndp1,opndp2,opndp3,opndp4,exponent,is_tiny) \
arch/parisc/math-emu/dbl_float.h
765
if (exponent == 0 && (Dextallp3(opndp3) || Dextallp4(opndp4))) { \
arch/parisc/math-emu/dbl_float.h
796
if (exponent >= (1-QUAD_P)) { \
arch/parisc/math-emu/dbl_float.h
797
shiftamt = (1-exponent) % 32; \
arch/parisc/math-emu/dbl_float.h
798
switch((1-exponent)/32) { \
arch/parisc/math-emu/dbl_float.h
833
exponent = 0; \
arch/parisc/math-emu/denormal.c
47
int sign, exponent;
arch/parisc/math-emu/denormal.c
52
exponent = Sgl_exponent(opnd) - SGL_WRAP;
arch/parisc/math-emu/denormal.c
54
Sgl_denormalize(opnd,exponent,guardbit,stickybit,inexact);
arch/parisc/math-emu/denormal.c
88
int sign, exponent;
arch/parisc/math-emu/denormal.c
94
exponent = Dbl_exponent(opndp1) - DBL_WRAP;
arch/parisc/math-emu/denormal.c
96
Dbl_denormalize(opndp1,opndp2,exponent,guardbit,stickybit,inexact);
arch/parisc/math-emu/sgl_float.h
182
#define Sgl_setwrapped_exponent(sgl_value,exponent,op) \
arch/parisc/math-emu/sgl_float.h
183
Deposit_sexponent(sgl_value,(exponent op SGL_WRAP))
arch/parisc/math-emu/sgl_float.h
249
#define Sgl_normalize(sgl_opnd,exponent) \
arch/parisc/math-emu/sgl_float.h
252
exponent -= 8; \
arch/parisc/math-emu/sgl_float.h
256
exponent -= 4; \
arch/parisc/math-emu/sgl_float.h
260
exponent -= 1; \
arch/parisc/math-emu/sgl_float.h
289
#define Sgl_denormalize(opnd,exponent,guard,sticky,inexact) \
arch/parisc/math-emu/sgl_float.h
291
if (exponent >= (1 - SGL_P)) { \
arch/parisc/math-emu/sgl_float.h
292
guard = (Sall(opnd) >> -exponent) & 1; \
arch/parisc/math-emu/sgl_float.h
293
if (exponent < 0) sticky |= Sall(opnd) << (32+exponent); \
arch/parisc/math-emu/sgl_float.h
295
Sall(opnd) >>= (1-exponent); \
arch/parisc/math-emu/sgl_float.h
421
#define Sglext_denormalize(opndp1,opndp2,exponent,is_tiny) \
arch/parisc/math-emu/sgl_float.h
424
if (exponent == 0 && Sextallp2(opndp2)) { \
arch/parisc/math-emu/sgl_float.h
447
if (exponent >= (1-DBL_P)) { \
arch/parisc/math-emu/sgl_float.h
448
if (exponent >= -31) { \
arch/parisc/math-emu/sgl_float.h
449
if (exponent > -31) { \
arch/parisc/math-emu/sgl_float.h
450
sticky = Sextallp2(opndp2) << 31+exponent; \
arch/parisc/math-emu/sgl_float.h
451
Variable_shift_double(opndp1,opndp2,1-exponent,opndp2); \
arch/parisc/math-emu/sgl_float.h
452
Sextallp1(opndp1) >>= 1-exponent; \
arch/parisc/math-emu/sgl_float.h
461
sticky = (Sextallp1(opndp1) << 31+exponent) | \
arch/parisc/math-emu/sgl_float.h
463
Sextallp2(opndp2) = Sextallp1(opndp1) >> -31-exponent; \
arch/parisc/math-emu/sgl_float.h
472
exponent = 0; \
arch/x86/include/asm/sgx.h
405
u32 exponent;
arch/x86/include/uapi/asm/sigcontext.h
87
__u16 exponent;
arch/x86/include/uapi/asm/sigcontext.h
93
__u16 exponent;
arch/x86/kernel/fpu/regset.c
299
switch (st->exponent & 0x7fff) {
arch/x86/math-emu/errors.c
197
exponent(r) - EXP_BIAS + 1);
arch/x86/math-emu/errors.c
378
isNaN = (exponent(a) == EXP_OVER) && (a->sigh & 0x80000000);
arch/x86/math-emu/errors.c
429
&& !((exponent(a) == EXP_OVER)
arch/x86/math-emu/errors.c
432
&& !((exponent(b) == EXP_OVER) && (b->sigh & 0x80000000)));
arch/x86/math-emu/fpu_emu.h
184
#define isdenormal(ptr) (exponent(ptr) == EXP_BIAS+EXP_UNDER)
arch/x86/math-emu/fpu_etc.c
110
&& (exponent(st0_ptr) == EXP_OVER))
arch/x86/math-emu/fpu_tags.c
64
int exp = exponent(ptr);
arch/x86/math-emu/fpu_tags.c
77
return ((exponent(ptr) == EXP_BIAS + EXP_OVER)
arch/x86/math-emu/fpu_trig.c
1028
FPU_REG *st1_ptr = &st(1), exponent;
arch/x86/math-emu/fpu_trig.c
1043
setexponent16(st0_ptr, exponent(st0_ptr));
arch/x86/math-emu/fpu_trig.c
1051
exponent.sigh = e;
arch/x86/math-emu/fpu_trig.c
1054
exponent.sigh = -e;
arch/x86/math-emu/fpu_trig.c
1057
exponent.sigl = 0;
arch/x86/math-emu/fpu_trig.c
1058
setexponent16(&exponent, 31);
arch/x86/math-emu/fpu_trig.c
1059
tag = FPU_normalize_nuo(&exponent);
arch/x86/math-emu/fpu_trig.c
1060
stdexp(&exponent);
arch/x86/math-emu/fpu_trig.c
1061
setsign(&exponent, esign);
arch/x86/math-emu/fpu_trig.c
1063
FPU_mul(&exponent, tag, 1, FULL_PRECISION);
arch/x86/math-emu/fpu_trig.c
1074
exponent(st1_ptr));
arch/x86/math-emu/fpu_trig.c
110
&& (exponent(st0_ptr) <= exponent(&CONST_PI2extra) + 64))
arch/x86/math-emu/fpu_trig.c
1123
if (exponent(st0_ptr) < 0)
arch/x86/math-emu/fpu_trig.c
1159
if (exponent(st0_ptr) >= 0) {
arch/x86/math-emu/fpu_trig.c
1160
if ((exponent(st0_ptr) == 0) &&
arch/x86/math-emu/fpu_trig.c
121
exponent(&CONST_PI2extra) +
arch/x86/math-emu/fpu_trig.c
122
exponent(&tmp));
arch/x86/math-emu/fpu_trig.c
1245
exponent(&CONST_PI4),
arch/x86/math-emu/fpu_trig.c
1246
exponent(&CONST_PI2));
arch/x86/math-emu/fpu_trig.c
126
if ((exponent(st0_ptr) == exponent(&CONST_PI2)) &&
arch/x86/math-emu/fpu_trig.c
1389
if (exponent(st0_ptr) >= 0) {
arch/x86/math-emu/fpu_trig.c
1409
if ((exponent(st0_ptr) >= 0) &&
arch/x86/math-emu/fpu_trig.c
1499
setexponent16(st0_ptr, exponent(st0_ptr));
arch/x86/math-emu/fpu_trig.c
1503
if (exponent(st1_ptr) > 30) {
arch/x86/math-emu/fpu_trig.c
198
isNaN = (exponent(st0_ptr) == EXP_OVER)
arch/x86/math-emu/fpu_trig.c
241
if (exponent(st0_ptr) < 0) {
arch/x86/math-emu/fpu_trig.c
299
if (exponent(st0_ptr) > -40) {
arch/x86/math-emu/fpu_trig.c
374
setexponent16(st_new_ptr, exponent(st_new_ptr));
arch/x86/math-emu/fpu_trig.c
42
if (exponent(st0_ptr) >= 63) {
arch/x86/math-emu/fpu_trig.c
463
expon = exponent(st0_ptr);
arch/x86/math-emu/fpu_trig.c
517
if (exponent(st0_ptr) > 63)
arch/x86/math-emu/fpu_trig.c
557
if (exponent(st0_ptr) > -40) {
arch/x86/math-emu/fpu_trig.c
61
q, exponent(st0_ptr) - exponent(&CONST_PI2));
arch/x86/math-emu/fpu_trig.c
62
setexponent16(&tmp, exponent(&CONST_PI2));
arch/x86/math-emu/fpu_trig.c
625
if (exponent(st0_ptr) > -40) {
arch/x86/math-emu/fpu_trig.c
626
if ((exponent(st0_ptr) < 0)
arch/x86/math-emu/fpu_trig.c
627
|| ((exponent(st0_ptr) == 0)
arch/x86/math-emu/fpu_trig.c
77
if ((exponent(st0_ptr) <= exponent(&CONST_PI2extra) + 64)
arch/x86/math-emu/fpu_trig.c
825
if (exponent(&tmp) >= 0) {
arch/x86/math-emu/fpu_trig.c
88
exponent(&CONST_PI2extra) +
arch/x86/math-emu/fpu_trig.c
89
exponent(&tmp));
arch/x86/math-emu/fpu_trig.c
908
significand(&tmp), exponent(&tmp)
arch/x86/math-emu/poly_2xm1.c
100
add_two_Xsig(&accumulator, &argSignif, &exponent);
arch/x86/math-emu/poly_2xm1.c
106
shr_Xsig(&accumulator, -exponent);
arch/x86/math-emu/poly_2xm1.c
110
exponent = 1;
arch/x86/math-emu/poly_2xm1.c
119
if (exponent < 0)
arch/x86/math-emu/poly_2xm1.c
120
shr_Xsig(&Denom, -exponent);
arch/x86/math-emu/poly_2xm1.c
121
else if (exponent > 0) {
arch/x86/math-emu/poly_2xm1.c
133
exponent += round_Xsig(&accumulator);
arch/x86/math-emu/poly_2xm1.c
137
setexponent16(result, exponent);
arch/x86/math-emu/poly_2xm1.c
55
long int exponent, shift;
arch/x86/math-emu/poly_2xm1.c
60
exponent = exponent16(arg);
arch/x86/math-emu/poly_2xm1.c
63
if (exponent >= 0) { /* Don't want a |number| >= 1.0 */
arch/x86/math-emu/poly_2xm1.c
73
if (exponent == -1) {
arch/x86/math-emu/poly_2xm1.c
76
exponent -= 2;
arch/x86/math-emu/poly_2xm1.c
79
} else if (exponent == -2) {
arch/x86/math-emu/poly_2xm1.c
82
exponent--;
arch/x86/math-emu/poly_2xm1.c
88
if (exponent < -2) {
arch/x86/math-emu/poly_2xm1.c
90
if (FPU_shrx(&Xll, -2 - exponent) >= 0x80000000U)
arch/x86/math-emu/poly_atan.c
102
if (exponent >= 0) {
arch/x86/math-emu/poly_atan.c
104
if (!((exponent == 0) &&
arch/x86/math-emu/poly_atan.c
116
if (exponent < -1)
arch/x86/math-emu/poly_atan.c
117
shr_Xsig(&Numer, -1 - exponent);
arch/x86/math-emu/poly_atan.c
120
shr_Xsig(&Denom, -exponent);
arch/x86/math-emu/poly_atan.c
125
exponent = -1 + norm_Xsig(&argSignif);
arch/x86/math-emu/poly_atan.c
144
shr_Xsig(&argSq, 2 * (-1 - exponent - 1));
arch/x86/math-emu/poly_atan.c
145
shr_Xsig(&argSqSq, 4 * (-1 - exponent - 1));
arch/x86/math-emu/poly_atan.c
162
shr_Xsig(&accumulatore, 1 + 2 * (-1 - exponent));
arch/x86/math-emu/poly_atan.c
176
shr_Xsig(&accumulator, -1 - exponent);
arch/x86/math-emu/poly_atan.c
179
exponent = -1;
arch/x86/math-emu/poly_atan.c
184
shr_Xsig(&accumulator, -exponent);
arch/x86/math-emu/poly_atan.c
187
exponent = 0;
arch/x86/math-emu/poly_atan.c
192
shr_Xsig(&accumulator, 1 - exponent);
arch/x86/math-emu/poly_atan.c
195
exponent = 1;
arch/x86/math-emu/poly_atan.c
198
exponent += round_Xsig(&accumulator);
arch/x86/math-emu/poly_atan.c
201
setexponent16(st1_ptr, exponent);
arch/x86/math-emu/poly_atan.c
56
int exponent;
arch/x86/math-emu/poly_atan.c
64
exponent = exponent(st0_ptr);
arch/x86/math-emu/poly_atan.c
68
exponent = exponent16(st0_ptr);
arch/x86/math-emu/poly_atan.c
71
exponent -= exponent(st1_ptr);
arch/x86/math-emu/poly_atan.c
75
exponent -= exponent16(st1_ptr);
arch/x86/math-emu/poly_atan.c
78
if ((exponent < 0) || ((exponent == 0) &&
arch/x86/math-emu/poly_atan.c
88
exponent = -exponent;
arch/x86/math-emu/poly_atan.c
94
exponent += norm_Xsig(&argSignif);
arch/x86/math-emu/poly_atan.c
96
if ((exponent >= -1)
arch/x86/math-emu/poly_atan.c
97
|| ((exponent == -2) && (argSignif.msw > 0xd413ccd0))) {
arch/x86/math-emu/poly_l2.c
110
long int exponent;
arch/x86/math-emu/poly_l2.c
114
log2_kernel(st0_ptr, sign0, &accumulator, &exponent);
arch/x86/math-emu/poly_l2.c
120
exponent += round_Xsig(&accumulator);
arch/x86/math-emu/poly_l2.c
122
exponent += exponent16(st1_ptr) + 1;
arch/x86/math-emu/poly_l2.c
123
if (exponent < EXP_WAY_UNDER)
arch/x86/math-emu/poly_l2.c
124
exponent = EXP_WAY_UNDER;
arch/x86/math-emu/poly_l2.c
127
setexponent16(dest, exponent);
arch/x86/math-emu/poly_l2.c
154
if (exponent(dest) <= EXP_UNDER)
arch/x86/math-emu/poly_l2.c
185
long int exponent, adj;
arch/x86/math-emu/poly_l2.c
189
exponent = exponent16(arg);
arch/x86/math-emu/poly_l2.c
193
shr_Xsig(&Denom, 2 - (1 + exponent));
arch/x86/math-emu/poly_l2.c
197
shr_Xsig(&Denom, 1 - (1 + exponent));
arch/x86/math-emu/poly_l2.c
201
exponent++;
arch/x86/math-emu/poly_l2.c
212
if (exponent >= -2) {
arch/x86/math-emu/poly_l2.c
213
if ((exponent > -2) || (argSignif.msw > (unsigned)0xafb0ccc0)) {
arch/x86/math-emu/poly_l2.c
225
shr_Xsig(&accumulator, 2 * (-1 - (1 + exponent + adj)));
arch/x86/math-emu/poly_l2.c
238
add_two_Xsig(&accumulator, &arg_signif, &exponent);
arch/x86/math-emu/poly_l2.c
240
*expon = exponent + 1;
arch/x86/math-emu/poly_l2.c
29
long int exponent, expon, expon_expon;
arch/x86/math-emu/poly_l2.c
35
exponent = exponent16(st0_ptr);
arch/x86/math-emu/poly_l2.c
42
exponent++;
arch/x86/math-emu/poly_l2.c
60
if (exponent < 0) {
arch/x86/math-emu/poly_l2.c
62
exponent = -exponent;
arch/x86/math-emu/poly_l2.c
65
expon_accum.msw = exponent;
arch/x86/math-emu/poly_l2.c
67
if (exponent) {
arch/x86/math-emu/poly_sin.c
102
exponent = 3 * exponent;
arch/x86/math-emu/poly_sin.c
105
shr_Xsig(&accumulator, exponent(st0_ptr) - exponent);
arch/x86/math-emu/poly_sin.c
112
setexponentpos(&result, exponent(st0_ptr) + echange);
arch/x86/math-emu/poly_sin.c
119
if (exponent == 0) {
arch/x86/math-emu/poly_sin.c
190
if ((exponent(&result) >= 0)
arch/x86/math-emu/poly_sin.c
204
long int exponent, exp2, echange;
arch/x86/math-emu/poly_sin.c
209
if ((exponent(st0_ptr) > 0)
arch/x86/math-emu/poly_sin.c
210
|| ((exponent(st0_ptr) == 0)
arch/x86/math-emu/poly_sin.c
218
exponent = exponent(st0_ptr);
arch/x86/math-emu/poly_sin.c
222
if ((exponent < -1)
arch/x86/math-emu/poly_sin.c
223
|| ((exponent == -1) && (st0_ptr->sigh <= 0xb00d6f54))) {
arch/x86/math-emu/poly_sin.c
231
if (exponent < -1) {
arch/x86/math-emu/poly_sin.c
233
shr_Xsig(&argSqrd, 2 * (-1 - exponent));
arch/x86/math-emu/poly_sin.c
252
shr_Xsig(&accumulator, -2 * (1 + exponent));
arch/x86/math-emu/poly_sin.c
280
if (exponent == 0) {
arch/x86/math-emu/poly_sin.c
292
exponent = -1;
arch/x86/math-emu/poly_sin.c
299
exponent -= 16;
arch/x86/math-emu/poly_sin.c
307
if (exponent < -1) {
arch/x86/math-emu/poly_sin.c
309
shr_Xsig(&argSqrd, 2 * (-1 - exponent));
arch/x86/math-emu/poly_sin.c
333
exponent = 3 * exponent;
arch/x86/math-emu/poly_sin.c
336
shr_Xsig(&accumulator, exp2 - exponent);
arch/x86/math-emu/poly_sin.c
373
if ((exponent(&result) >= 0)
arch/x86/math-emu/poly_sin.c
60
int exponent, echange;
arch/x86/math-emu/poly_sin.c
66
exponent = exponent(st0_ptr);
arch/x86/math-emu/poly_sin.c
72
if ((exponent < -1)
arch/x86/math-emu/poly_sin.c
73
|| ((exponent == -1) && (st0_ptr->sigh <= 0xe21240aa))) {
arch/x86/math-emu/poly_sin.c
80
shr_Xsig(&argSqrd, 2 * (-1 - exponent));
arch/x86/math-emu/poly_tan.c
100
if (exponent < -1) {
arch/x86/math-emu/poly_tan.c
102
if (FPU_shrx(&XSIG_LL(accum), -1 - exponent) >=
arch/x86/math-emu/poly_tan.c
138
shr_Xsig(&accumulatore, -2 * (1 + exponent) + 1);
arch/x86/math-emu/poly_tan.c
158
shr_Xsig(&accum, -2 * (exponent + 1));
arch/x86/math-emu/poly_tan.c
161
add_two_Xsig(&accum, &argSignif, &exponent);
arch/x86/math-emu/poly_tan.c
177
if (exponent == 0)
arch/x86/math-emu/poly_tan.c
180
else if (exponent > -30) {
arch/x86/math-emu/poly_tan.c
181
adj = accum.msw >> -(exponent + 1); /* tan */
arch/x86/math-emu/poly_tan.c
192
shr_Xsig(&fix_up, 64 + exponent);
arch/x86/math-emu/poly_tan.c
194
shr_Xsig(&fix_up, 65 + exponent);
arch/x86/math-emu/poly_tan.c
196
add_two_Xsig(&accum, &fix_up, &exponent);
arch/x86/math-emu/poly_tan.c
204
exponent = -exponent - 1;
arch/x86/math-emu/poly_tan.c
211
setexponent16(st0_ptr, exponent + EXTENDED_Ebias); /* Result is positive. */
arch/x86/math-emu/poly_tan.c
53
long int exponent;
arch/x86/math-emu/poly_tan.c
59
exponent = exponent(st0_ptr);
arch/x86/math-emu/poly_tan.c
69
if ((exponent == 0)
arch/x86/math-emu/poly_tan.c
70
|| ((exponent == -1) && (st0_ptr->sigh > 0xc90fdaa2))) {
arch/x86/math-emu/poly_tan.c
76
if (exponent == 0) {
arch/x86/math-emu/poly_tan.c
94
exponent = -1 + norm_Xsig(&argSignif);
arch/x86/math-emu/reg_add_sub.c
163
expa = exponent(a);
arch/x86/math-emu/reg_add_sub.c
164
expb = exponent(b);
arch/x86/math-emu/reg_add_sub.c
48
expa = exponent(a);
arch/x86/math-emu/reg_add_sub.c
49
expb = exponent(b);
arch/x86/math-emu/reg_compare.c
103
unsupported |= !((exponent(b) == EXP_OVER)
arch/x86/math-emu/reg_compare.c
130
exp0 = exponent(st0_ptr);
arch/x86/math-emu/reg_compare.c
131
expb = exponent(b);
arch/x86/math-emu/reg_compare.c
96
unsupported = !((exponent(st0_ptr) == EXP_OVER)
arch/x86/math-emu/reg_convert.c
24
setexponent16(x, exponent(a));
arch/x86/math-emu/reg_ld_str.c
1098
if (exponent(&fpu_register(i)) == -EXTENDED_Ebias) {
arch/x86/math-emu/reg_ld_str.c
1105
} else if (exponent(&fpu_register(i)) ==
arch/x86/math-emu/reg_ld_str.c
391
exp = exponent(&tmp);
arch/x86/math-emu/reg_ld_str.c
512
if ((exponent(st0_ptr) == EXP_OVER)
arch/x86/math-emu/reg_ld_str.c
575
exp = exponent(&tmp);
arch/x86/math-emu/reg_ld_str.c
694
if ((exponent(st0_ptr) == EXP_OVER)
arch/x86/math-emu/reg_ld_str.c
981
if (exponent(r) > 63) {
arch/x86/math-emu/reg_ld_str.c
986
eax = FPU_shrxs(&r->sigl, 63 - exponent(r));
arch/x86/math-emu/reg_mul.c
44
exponent(a) + exponent(b));
arch/x86/um/ptrace.c
43
switch (st->exponent & 0x7fff) {
drivers/clk/ti/dpll3xxx.c
305
u32 v, ctrl, mod_freq_divider, exponent, mantissa;
drivers/clk/ti/dpll3xxx.c
325
exponent = 0;
drivers/clk/ti/dpll3xxx.c
327
while ((mantissa > 127) && (exponent < 7)) {
drivers/clk/ti/dpll3xxx.c
328
exponent++;
drivers/clk/ti/dpll3xxx.c
337
v |= exponent << __ffs(dd->ssc_modfreq_exp_mask);
drivers/firmware/arm_scmi/sensors.c
437
a->exponent = S32_EXT(SENSOR_RES_EXP(ares));
drivers/firmware/arm_scmi/sensors.c
674
s->exponent = S32_EXT(SENSOR_RES_EXP(sres));
drivers/gpu/drm/i915/display/intel_color.c
861
unsigned int mantissa, exponent;
drivers/gpu/drm/i915/display/intel_color.c
868
exponent = 3;
drivers/gpu/drm/i915/display/intel_color.c
871
exponent--;
drivers/gpu/drm/i915/display/intel_color.c
874
return (exponent << 6) |
drivers/gpu/drm/i915/i915_perf.c
3931
static u64 oa_exponent_to_ns(struct i915_perf *perf, int exponent)
drivers/gpu/drm/i915/i915_perf.c
3933
u64 nom = (2ULL << exponent) * NSEC_PER_SEC;
drivers/gpu/drm/xe/xe_oa.c
1931
static u64 oa_exponent_to_ns(struct xe_gt *gt, int exponent)
drivers/gpu/drm/xe/xe_oa.c
1933
u64 nom = (2ULL << exponent) * NSEC_PER_SEC;
drivers/hid/usbhid/hid-pidff.c
350
int exponent = field->unit_exponent;
drivers/hid/usbhid/hid-pidff.c
352
pr_debug("time field exponent: %d\n", exponent);
drivers/hid/usbhid/hid-pidff.c
353
for (; exponent < FF_TIME_EXPONENT; exponent++)
drivers/hid/usbhid/hid-pidff.c
355
for (; exponent > FF_TIME_EXPONENT; exponent--)
drivers/hid/wacom_sys.c
212
unsigned unit, int exponent)
drivers/hid/wacom_sys.c
218
.unit_exponent = exponent,
drivers/hwmon/pmbus/bpa-rs600.c
49
int ret, exponent, mantissa;
drivers/hwmon/pmbus/bpa-rs600.c
56
exponent = ret >> 11;
drivers/hwmon/pmbus/bpa-rs600.c
59
exponent++;
drivers/hwmon/pmbus/bpa-rs600.c
62
ret = (exponent << 11) | mantissa;
drivers/hwmon/pmbus/hac300s.c
102
data->exponent = FIELD_GET(LINEAR11_EXPONENT_MASK, rv);
drivers/hwmon/pmbus/hac300s.c
33
s8 exponent;
drivers/hwmon/pmbus/hac300s.c
42
return data->exponent;
drivers/hwmon/pmbus/mp2856.c
108
return (mantissa & 0x7ff) | ((exponent << 11) & 0xf800);
drivers/hwmon/pmbus/mp2856.c
78
s16 exponent = 0, mantissa;
drivers/hwmon/pmbus/mp2856.c
90
while (val >= MAX_LIN_MANTISSA && exponent < 15) {
drivers/hwmon/pmbus/mp2856.c
91
exponent++;
drivers/hwmon/pmbus/mp2856.c
95
while (val < MIN_LIN_MANTISSA && exponent > -15) {
drivers/hwmon/pmbus/mp2856.c
96
exponent--;
drivers/hwmon/pmbus/mp2869.c
70
s16 exponent;
drivers/hwmon/pmbus/mp2869.c
74
exponent = ((s16)word) >> 11;
drivers/hwmon/pmbus/mp2869.c
78
if (exponent >= 0)
drivers/hwmon/pmbus/mp2869.c
79
val <<= exponent;
drivers/hwmon/pmbus/mp2869.c
81
val >>= -exponent;
drivers/hwmon/pmbus/mp2891.c
65
s16 exponent;
drivers/hwmon/pmbus/mp2891.c
69
exponent = ((s16)word) >> 11;
drivers/hwmon/pmbus/mp2891.c
73
if (exponent >= 0)
drivers/hwmon/pmbus/mp2891.c
74
val <<= exponent;
drivers/hwmon/pmbus/mp2891.c
76
val >>= -exponent;
drivers/hwmon/pmbus/mp2925.c
50
s16 exponent, mantissa, target_exponent;
drivers/hwmon/pmbus/mp2925.c
52
exponent = ((s16)word) >> 11;
drivers/hwmon/pmbus/mp2925.c
56
if (exponent > target_exponent)
drivers/hwmon/pmbus/mp2925.c
57
mantissa = mantissa << (exponent - target_exponent);
drivers/hwmon/pmbus/mp2925.c
59
mantissa = mantissa >> (target_exponent - exponent);
drivers/hwmon/pmbus/mp29502.c
57
s16 exponent;
drivers/hwmon/pmbus/mp29502.c
61
exponent = ((s16)word) >> 11;
drivers/hwmon/pmbus/mp29502.c
65
if (exponent >= 0)
drivers/hwmon/pmbus/mp29502.c
66
val <<= exponent;
drivers/hwmon/pmbus/mp29502.c
68
val >>= -exponent;
drivers/hwmon/pmbus/mp2975.c
179
s16 exponent = 0, mantissa;
drivers/hwmon/pmbus/mp2975.c
187
while (val >= MAX_LIN_MANTISSA && exponent < 15) {
drivers/hwmon/pmbus/mp2975.c
188
exponent++;
drivers/hwmon/pmbus/mp2975.c
192
while (val < MIN_LIN_MANTISSA && exponent > -15) {
drivers/hwmon/pmbus/mp2975.c
193
exponent--;
drivers/hwmon/pmbus/mp2975.c
205
return (mantissa & 0x7ff) | ((exponent << 11) & 0xf800);
drivers/hwmon/pmbus/mp2993.c
39
s16 exponent, mantissa, target_exponent;
drivers/hwmon/pmbus/mp2993.c
41
exponent = ((s16)word) >> 11;
drivers/hwmon/pmbus/mp2993.c
45
if (exponent > target_exponent)
drivers/hwmon/pmbus/mp2993.c
46
mantissa = mantissa << (exponent - target_exponent);
drivers/hwmon/pmbus/mp2993.c
48
mantissa = mantissa >> (target_exponent - exponent);
drivers/hwmon/pmbus/pmbus_core.c
1009
if (data->exponent[sensor->page] < 0)
drivers/hwmon/pmbus/pmbus_core.c
1010
val <<= -data->exponent[sensor->page];
drivers/hwmon/pmbus/pmbus_core.c
1012
val >>= data->exponent[sensor->page];
drivers/hwmon/pmbus/pmbus_core.c
102
int exponent[PMBUS_PAGES];
drivers/hwmon/pmbus/pmbus_core.c
1034
while (val >= MAX_LIN_MANTISSA && exponent < 15) {
drivers/hwmon/pmbus/pmbus_core.c
1035
exponent++;
drivers/hwmon/pmbus/pmbus_core.c
1039
while (val < MIN_LIN_MANTISSA && exponent > -15) {
drivers/hwmon/pmbus/pmbus_core.c
1040
exponent--;
drivers/hwmon/pmbus/pmbus_core.c
1052
return (mantissa & 0x7ff) | ((exponent << 11) & 0xf800);
drivers/hwmon/pmbus/pmbus_core.c
2656
data->exponent[page] = ((s8)(vout_mode << 3)) >> 3;
drivers/hwmon/pmbus/pmbus_core.c
744
int exponent;
drivers/hwmon/pmbus/pmbus_core.c
750
exponent = (sensor->data >> 10) & 0x1f;
drivers/hwmon/pmbus/pmbus_core.c
753
if (exponent == 0) { /* subnormal */
drivers/hwmon/pmbus/pmbus_core.c
754
exponent = -(14 + 10);
drivers/hwmon/pmbus/pmbus_core.c
755
} else if (exponent == 0x1f) { /* NaN, convert to min/max */
drivers/hwmon/pmbus/pmbus_core.c
756
exponent = 0;
drivers/hwmon/pmbus/pmbus_core.c
759
exponent -= (15 + 10); /* normal */
drivers/hwmon/pmbus/pmbus_core.c
771
if (exponent >= 0)
drivers/hwmon/pmbus/pmbus_core.c
772
val <<= exponent;
drivers/hwmon/pmbus/pmbus_core.c
774
val >>= -exponent;
drivers/hwmon/pmbus/pmbus_core.c
789
s16 exponent;
drivers/hwmon/pmbus/pmbus_core.c
794
exponent = data->exponent[sensor->page];
drivers/hwmon/pmbus/pmbus_core.c
797
exponent = ((s16)sensor->data) >> 11;
drivers/hwmon/pmbus/pmbus_core.c
811
if (exponent >= 0)
drivers/hwmon/pmbus/pmbus_core.c
812
val <<= exponent;
drivers/hwmon/pmbus/pmbus_core.c
814
val >>= -exponent;
drivers/hwmon/pmbus/pmbus_core.c
929
u16 exponent = (15 + 10);
drivers/hwmon/pmbus/pmbus_core.c
954
while (val > MAX_IEEE_MANTISSA && exponent < 30) {
drivers/hwmon/pmbus/pmbus_core.c
955
exponent++;
drivers/hwmon/pmbus/pmbus_core.c
962
while (val < MIN_IEEE_MANTISSA && exponent > 1) {
drivers/hwmon/pmbus/pmbus_core.c
963
exponent--;
drivers/hwmon/pmbus/pmbus_core.c
984
return sign | (mantissa & 0x3ff) | ((exponent << 10) & 0x7c00);
drivers/hwmon/pmbus/pmbus_core.c
993
s16 exponent = 0, mantissa;
drivers/hwmon/pmbus/xdpe12284.c
28
s16 exponent;
drivers/hwmon/pmbus/xdpe12284.c
40
exponent = ((s16)ret) >> 11;
drivers/hwmon/pmbus/xdpe12284.c
43
if (exponent >= 0)
drivers/hwmon/pmbus/xdpe12284.c
44
val <<= exponent;
drivers/hwmon/pmbus/xdpe12284.c
46
val >>= -exponent;
drivers/hwmon/pmbus/zl6100.c
103
while (val < MIN_MANTISSA && exponent > -15) {
drivers/hwmon/pmbus/zl6100.c
104
exponent--;
drivers/hwmon/pmbus/zl6100.c
120
return (mantissa & 0x7ff) | ((exponent << 11) & 0xf800);
drivers/hwmon/pmbus/zl6100.c
60
s16 exponent;
drivers/hwmon/pmbus/zl6100.c
64
exponent = l >> 11;
drivers/hwmon/pmbus/zl6100.c
72
if (exponent >= 0)
drivers/hwmon/pmbus/zl6100.c
73
val <<= exponent;
drivers/hwmon/pmbus/zl6100.c
75
val >>= -exponent;
drivers/hwmon/pmbus/zl6100.c
85
s16 exponent = 0, mantissa;
drivers/hwmon/pmbus/zl6100.c
98
while (val >= MAX_MANTISSA && exponent < 15) {
drivers/hwmon/pmbus/zl6100.c
99
exponent++;
drivers/iio/common/scmi_sensors/scmi_iio.c
378
s8 exponent, scale;
drivers/iio/common/scmi_sensors/scmi_iio.c
389
exponent = sensor->sensor_info->axis[0].exponent;
drivers/iio/common/scmi_sensors/scmi_iio.c
396
exponent = exponent - scale;
drivers/iio/common/scmi_sensors/scmi_iio.c
397
if (exponent < 0) {
drivers/iio/common/scmi_sensors/scmi_iio.c
399
int_pow(10, abs(exponent))
drivers/iio/common/scmi_sensors/scmi_iio.c
405
resolution = resolution * int_pow(10, exponent);
drivers/iio/light/max44009.c
175
int exponent;
drivers/iio/light/max44009.c
184
exponent = (hi >> 4) & 0xf;
drivers/iio/light/max44009.c
189
exponent = 1 << exponent;
drivers/iio/light/max44009.c
191
return exponent * mantissa;
drivers/iio/light/max44009.c
367
int mantissa, exponent;
drivers/iio/light/max44009.c
391
exponent = byte & MAX44009_THRESH_EXP_MASK;
drivers/iio/light/max44009.c
392
exponent >>= MAX44009_THRESH_EXP_RSHIFT;
drivers/iio/light/max44009.c
394
return (1 << exponent) * mantissa;
drivers/iio/light/opt3001.c
228
int val2, u8 *exponent)
drivers/iio/light/opt3001.c
238
*exponent = i;
drivers/iio/light/opt3001.c
246
static void opt3001_to_iio_ret(struct opt3001 *opt, u8 exponent,
drivers/iio/light/opt3001.c
254
ret = whole * (mantissa << exponent);
drivers/iio/light/opt3001.c
319
u8 exponent;
drivers/iio/light/opt3001.c
429
exponent = OPT3001_REG_EXPONENT(opt->result);
drivers/iio/light/opt3001.c
432
opt3001_to_iio_ret(opt, exponent, mantissa, val, val2);
drivers/iio/light/opt3001.c
577
u8 exponent;
drivers/iio/light/opt3001.c
584
ret = opt3001_find_scale(opt, val, val2, &exponent);
drivers/iio/light/opt3001.c
594
mantissa = (((val * integer) + (val2 / decimal)) / whole) >> exponent;
drivers/iio/light/opt3001.c
596
value = (exponent << 12) | mantissa;
drivers/iio/light/opt3001.c
602
opt->high_thresh_exp = exponent;
drivers/iio/light/opt3001.c
607
opt->low_thresh_exp = exponent;
drivers/iio/light/si1145.c
349
u8 exponent = 0;
drivers/iio/light/si1145.c
354
exponent = (x & 0xf0) >> 4;
drivers/iio/light/si1145.c
357
if (exponent >= 4)
drivers/iio/light/si1145.c
358
return result << (exponent - 4);
drivers/iio/light/si1145.c
359
return result >> (4 - exponent);
drivers/iio/light/si1145.c
365
u32 exponent = 0;
drivers/iio/light/si1145.c
376
exponent += 1;
drivers/iio/light/si1145.c
381
if (exponent < 5) {
drivers/iio/light/si1145.c
382
significand = x << (4 - exponent);
drivers/iio/light/si1145.c
383
return (exponent << 4) | (significand & 0xF);
drivers/iio/light/si1145.c
386
significand = x >> (exponent - 5);
drivers/iio/light/si1145.c
390
exponent += 1;
drivers/iio/light/si1145.c
395
return (exponent << 4) | ((significand >> 1) & 0xF);
drivers/infiniband/hw/hfi1/firmware.c
114
u8 *exponent; /* pointer to the exponent */
drivers/infiniband/hw/hfi1/firmware.c
475
fdet->exponent = ff->exponent;
drivers/infiniband/hw/hfi1/firmware.c
500
fdet->exponent = aff->exponent;
drivers/infiniband/hw/hfi1/firmware.c
87
u8 exponent[EXPONENT_SIZE];
drivers/infiniband/hw/hfi1/firmware.c
95
u8 exponent[EXPONENT_SIZE];
drivers/isdn/hardware/mISDN/hfcmulti.c
1801
u8 exponent;
drivers/isdn/hardware/mISDN/hfcmulti.c
1840
exponent = (w_float >> 12) & 0x7;
drivers/isdn/hardware/mISDN/hfcmulti.c
1841
if (exponent) {
drivers/isdn/hardware/mISDN/hfcmulti.c
1843
mantissa <<= (exponent - 1);
drivers/isdn/hardware/mISDN/hfcmulti.c
1859
exponent = (w_float >> 12) & 0x7;
drivers/isdn/hardware/mISDN/hfcmulti.c
1860
if (exponent) {
drivers/isdn/hardware/mISDN/hfcmulti.c
1862
mantissa <<= (exponent - 1);
drivers/isdn/mISDN/dsp_audio.c
124
int sign, exponent, mantissa;
drivers/isdn/mISDN/dsp_audio.c
134
exponent = exp_lut[(sample >> 7) & 0xFF];
drivers/isdn/mISDN/dsp_audio.c
135
mantissa = (sample >> (exponent + 3)) & 0x0F;
drivers/isdn/mISDN/dsp_audio.c
136
ulawbyte = ~(sign | (exponent << 4) | mantissa);
drivers/md/bcache/bset.c
1383
if (t->tree[j].exponent == 127)
drivers/md/bcache/bset.c
245
unsigned int exponent:BKEY_EXPONENT_BITS;
drivers/md/bcache/bset.c
587
const uint64_t *p = &k->low - (f->exponent >> 6);
drivers/md/bcache/bset.c
589
return shrd128(p[-1], p[0], f->exponent & 63) & BKEY_MANTISSA_MASK;
drivers/md/bcache/bset.c
620
f->exponent = fls64(KEY_INODE(r) ^ KEY_INODE(l)) + 64;
drivers/md/bcache/bset.c
622
f->exponent = fls64(r->low ^ l->low);
drivers/md/bcache/bset.c
624
f->exponent = max_t(int, f->exponent - BKEY_MANTISSA_BITS, 0);
drivers/md/bcache/bset.c
634
f->exponent = 127;
drivers/md/bcache/bset.c
975
if (likely(f->exponent != 127)) {
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
4002
u8 exponent;
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
4016
.exponent = flow->exp,
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
4485
u8 exponent;
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
4502
.exponent = flow->exp,
drivers/pcmcia/cistpl.c
39
static const u_int exponent[] = {
drivers/pcmcia/cistpl.c
45
(mantissa[(((v)>>3)&15)-1] * exponent[(v)&7] / 10)
drivers/pcmcia/cistpl.c
48
(mantissa[((v)>>3)&15] * exponent[(v)&7] / 10)
drivers/pcmcia/cistpl.c
49
#define POWER_SCALE(v) (exponent[(v)&7])
drivers/pcmcia/cistpl.c
954
timing->waitscale = exponent[scale & 3];
drivers/pcmcia/cistpl.c
962
timing->rdyscale = exponent[scale & 7];
drivers/pcmcia/cistpl.c
970
timing->rsvscale = exponent[scale];
drivers/s390/crypto/zcrypt_cca_key.h
111
char exponent[];
drivers/s390/crypto/zcrypt_cca_key.h
130
ptr = key->exponent;
drivers/s390/crypto/zcrypt_msgtype50.c
212
exp = meb1->exponent + sizeof(meb1->exponent) - mod_len;
drivers/s390/crypto/zcrypt_msgtype50.c
223
exp = meb2->exponent + sizeof(meb2->exponent) - mod_len;
drivers/s390/crypto/zcrypt_msgtype50.c
234
exp = meb3->exponent + sizeof(meb3->exponent) - mod_len;
drivers/s390/crypto/zcrypt_msgtype50.c
71
unsigned char exponent[128];
drivers/s390/crypto/zcrypt_msgtype50.c
81
unsigned char exponent[256];
drivers/s390/crypto/zcrypt_msgtype50.c
91
unsigned char exponent[512];
drivers/spi/spi-zynqmp-gqspi.c
674
u32 transfer_len, tempcount, exponent;
drivers/spi/spi-zynqmp-gqspi.c
699
exponent = 8;
drivers/spi/spi-zynqmp-gqspi.c
704
genfifoentry | exponent);
drivers/spi/spi-zynqmp-gqspi.c
706
exponent++;
drivers/staging/media/ipu3/ipu3-css-params.c
50
int exponent = imgu_css_scaler_get_exp(output_width, input_width);
drivers/staging/media/ipu3/ipu3-css-params.c
51
int mantissa = (1 << exponent) * output_width;
drivers/staging/media/ipu3/ipu3-css-params.c
99
info->exp_shift = IMGU_SCALER_MAX_EXPONENT_SHIFT - exponent;
drivers/usb/host/uhci-hcd.h
335
#define SKEL_INDEX(exponent) (9 - exponent)
drivers/usb/host/uhci-q.c
1084
int exponent;
drivers/usb/host/uhci-q.c
1087
for (exponent = 7; exponent >= 0; --exponent) {
drivers/usb/host/uhci-q.c
1088
if ((1 << exponent) <= urb->interval)
drivers/usb/host/uhci-q.c
1091
if (exponent < 0)
drivers/usb/host/uhci-q.c
1096
qh->period = 1 << exponent;
drivers/usb/host/uhci-q.c
1097
qh->skel = SKEL_INDEX(exponent);
drivers/usb/host/uhci-q.c
1104
} while (ret != 0 && --exponent >= 0);
drivers/usb/serial/pl2303.c
638
unsigned int baseline, mantissa, exponent;
drivers/usb/serial/pl2303.c
651
exponent = 0;
drivers/usb/serial/pl2303.c
653
if (exponent < 7) {
drivers/usb/serial/pl2303.c
655
exponent++;
drivers/usb/serial/pl2303.c
665
buf[1] = exponent << 1 | mantissa >> 8;
drivers/usb/serial/pl2303.c
669
baud = (baseline / mantissa) >> (exponent << 1);
drivers/usb/serial/pl2303.c
677
unsigned int baseline, mantissa, exponent;
drivers/usb/serial/pl2303.c
690
exponent = 0;
drivers/usb/serial/pl2303.c
692
if (exponent < 15) {
drivers/usb/serial/pl2303.c
694
exponent++;
drivers/usb/serial/pl2303.c
703
buf[2] = exponent & 0x01;
drivers/usb/serial/pl2303.c
704
buf[1] = (exponent & ~0x01) << 4 | mantissa >> 8;
drivers/usb/serial/pl2303.c
708
baud = (baseline / mantissa) >> exponent;
include/linux/kvm_host.h
1952
.exponent = exp, \
include/linux/kvm_host.h
1984
#define STATS_DESC_CUMULATIVE(SCOPE, name, unit, base, exponent) \
include/linux/kvm_host.h
1986
unit, base, exponent, 1, 0)
include/linux/kvm_host.h
1987
#define STATS_DESC_INSTANT(SCOPE, name, unit, base, exponent) \
include/linux/kvm_host.h
1989
unit, base, exponent, 1, 0)
include/linux/kvm_host.h
1990
#define STATS_DESC_PEAK(SCOPE, name, unit, base, exponent) \
include/linux/kvm_host.h
1992
unit, base, exponent, 1, 0)
include/linux/kvm_host.h
1993
#define STATS_DESC_LINEAR_HIST(SCOPE, name, unit, base, exponent, sz, bsz) \
include/linux/kvm_host.h
1995
unit, base, exponent, sz, bsz)
include/linux/kvm_host.h
1996
#define STATS_DESC_LOG_HIST(SCOPE, name, unit, base, exponent, sz) \
include/linux/kvm_host.h
1998
unit, base, exponent, sz, 0)
include/linux/scmi_protocol.h
264
int exponent;
include/linux/scmi_protocol.h
388
int exponent;
include/uapi/linux/kvm.h
1604
__s16 exponent;
lib/math/tests/int_pow_kunit.c
36
KUNIT_EXPECT_EQ(test, tc->expected_result, int_pow(tc->base, tc->exponent));
lib/math/tests/int_pow_kunit.c
8
unsigned int exponent;
lib/zstd/compress/zstd_compress_internal.h
960
static U64 ZSTD_ipow(U64 base, U64 exponent)
lib/zstd/compress/zstd_compress_internal.h
963
while (exponent) {
lib/zstd/compress/zstd_compress_internal.h
964
if (exponent & 1) power *= base;
lib/zstd/compress/zstd_compress_internal.h
965
exponent >>= 1;
tools/include/uapi/linux/kvm.h
1604
__s16 exponent;
tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c
241
unsigned int exponent;
tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c
257
for (exponent = 0; ; ++exponent) {
tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c
259
printf("%d 10^%d\n", i, exponent);
tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c
267
fprintf(stderr, "%d*10^%d: 0x%x\n", i, exponent, (exponent << 7) | i);
tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c
269
return (exponent << 7) | i;
tools/testing/selftests/kvm/kvm_binary_stats_test.c
106
TEST_ASSERT(pdesc->exponent >= 0,
tools/testing/selftests/kvm/kvm_binary_stats_test.c
108
pdesc->name, pdesc->exponent);
tools/testing/selftests/kvm/kvm_binary_stats_test.c
111
TEST_ASSERT(pdesc->exponent <= 0,
tools/testing/selftests/kvm/kvm_binary_stats_test.c
113
pdesc->name, pdesc->exponent);
tools/testing/selftests/kvm/kvm_binary_stats_test.c
116
TEST_ASSERT(pdesc->exponent == 0,
tools/testing/selftests/kvm/kvm_binary_stats_test.c
118
pdesc->name, pdesc->exponent);
tools/testing/selftests/sgx/sigstruct.c
332
sigstruct->exponent = 3;