/arch/powerpc/kernel/ |
D | vecemu.c | 38 int exp, pwr; in eexp2() local 42 exp = ((s >> 23) & 0xff) - 127; in eexp2() 43 if (exp > 7) { in eexp2() 45 if (exp == 128 && (s & 0x7fffff) != 0) in eexp2() 50 if (exp < -23) in eexp2() 55 if (exp > 0) in eexp2() 56 pwr <<= exp; in eexp2() 58 pwr >>= -exp; in eexp2() 63 exp = (pwr >> 23) + 126; in eexp2() 64 if (exp >= 254) in eexp2() [all …]
|
/arch/m68k/math-emu/ |
D | fp_arith.c | 22 .exp = 0x7fff, 28 .exp = 0x7fff, 97 if ((diff = dest->exp - src->exp) > 0) in fp_fadd() 156 int exp; in fp_fmul() local 183 dest->exp = 0; in fp_fmul() 190 exp = dest->exp + src->exp - 0x3ffe; in fp_fmul() 196 exp -= fp_overnormalize(dest); in fp_fmul() 198 exp -= fp_overnormalize(src); in fp_fmul() 206 exp--; in fp_fmul() 211 if (exp >= 0x7fff) { in fp_fmul() [all …]
|
D | fp_log.c | 22 .exp = 0x3fff, 32 int i, exp; in fp_fsqrt() local 60 exp = dest->exp; in fp_fsqrt() 61 dest->exp = 0x3FFF; in fp_fsqrt() 62 if (!(exp & 1)) /* lowest bit of exponent is set */ in fp_fsqrt() 63 dest->exp++; in fp_fsqrt() 74 dest->exp--; /* * 1/2 */ in fp_fsqrt() 93 dest->exp--; in fp_fsqrt() 96 dest->exp += (exp - 0x3FFF) / 2; in fp_fsqrt() 198 fp_conv_long2ext(dest, (int)dest->exp - 0x3FFF); in fp_fgetexp() [all …]
|
D | fp_emu.h | 48 #define IS_INF(a) ((a)->exp == 0x7fff) 104 dest->exp = 0x7fff; \
|
D | fp_util.S | 107 move.l %d1,(%a0)+ | set sign / exp 140 9: move.l %d1,(%a0)+ | fp_ext.sign, fp_ext.exp 178 9: move.l %d1,(%a0)+ | fp_ext.sign, fp_ext.exp
|
/arch/sh/kernel/cpu/sh2a/ |
D | fpu.c | 138 int exp, w; in denormal_mulf() local 145 exp = (iy & 0x7f800000) >> 23; in denormal_mulf() 154 exp += w - 126 - 46; in denormal_mulf() 155 if (exp > 0) in denormal_mulf() 156 ix = ((int) (m >> (w - 23)) & 0x007fffff) | (exp << 23); in denormal_mulf() 157 else if (exp + 22 >= 0) in denormal_mulf() 158 ix = (int) (m >> (w - 22 - exp)) & 0x007fffff; in denormal_mulf() 205 int exp, w; in denormal_muld() local 212 exp = (iy & 0x7ff0000000000000LL) >> 52; in denormal_muld() 226 exp += w - 1022 - 52 * 2; in denormal_muld() [all …]
|
/arch/x86/math-emu/ |
D | reg_ld_str.c | 38 static u_char normalize_no_excep(FPU_REG *r, int exp, int sign) in normalize_no_excep() argument 42 setexponent16(r, exp); in normalize_no_excep() 54 int exp; in FPU_tagof() local 56 exp = exponent16(ptr) & 0x7fff; in FPU_tagof() 57 if (exp == 0) { in FPU_tagof() 65 if (exp == 0x7fff) { in FPU_tagof() 96 int exp, tag, negative; in FPU_load_double() local 106 exp = ((m64 & 0x7ff00000) >> 20) - DOUBLE_Ebias + EXTENDED_Ebias; in FPU_load_double() 108 if (exp > DOUBLE_Emax + EXTENDED_Ebias) { in FPU_load_double() 114 exp = EXP_Infinity + EXTENDED_Ebias; in FPU_load_double() [all …]
|
D | fpu_emu.h | 120 short exp; member 171 *(short *)&(y->exp) = *(const short *)&(x->exp); in reg_copy() 175 #define exponent(x) (((*(short *)&((x)->exp)) & 0x7fff) - EXTENDED_Ebias) 176 #define setexponentpos(x,y) { (*(short *)&((x)->exp)) = \ 178 #define exponent16(x) (*(short *)&((x)->exp)) 179 #define setexponent16(x,y) { (*(short *)&((x)->exp)) = (y); } 180 #define addexponent(x,y) { (*(short *)&((x)->exp)) += (y); } 181 #define stdexp(x) { (*(short *)&((x)->exp)) += EXTENDED_Ebias; }
|
D | poly.h | 87 static inline void add_two_Xsig(Xsig *dest, const Xsig *x2, long int *exp) in add_two_Xsig() argument 97 "0: xorl %%eax,%%eax;\n" "1:\n":"=g" (*exp), "=g"(*dest) in add_two_Xsig() 98 :"g"(dest), "g"(x2), "g"(exp) in add_two_Xsig()
|
D | fpu_tags.c | 63 int exp = exponent(ptr); in FPU_Special() local 65 if (exp == EXP_BIAS + EXP_UNDER) in FPU_Special() 67 else if (exp != EXP_BIAS + EXP_OVER) in FPU_Special()
|
/arch/parisc/math-emu/ |
D | cnv_float.h | 108 #define Dbl_to_sgl_denormalized(srcA,srcB,exp,dest,inexact,guard,sticky,odd,tiny) \ argument 111 if (exp >= -2) { \ 112 if (exp == 0) { \ 156 inexact = Dallp2(srcB) << (2 + exp); \ 160 if (exp == -2) dest = Dallp1(srcA); \ 161 else Variable_shift_double(Dallp1(srcA),Dallp2(srcB),30-exp,dest); \ 167 if (exp > (1 - SGL_P)) { \ 168 dest = Dallp1(srcA) >> (- 2 - exp); \ 169 inexact = Dallp1(srcA) << (34 + exp); \ 178 if (exp == (1 - SGL_P)) { \ [all …]
|
/arch/m68k/fpsp040/ |
D | sgetem.S | 19 | Output: The functions return exp(X) or man(X) in fp0. 52 fmovew %d0,%fp0 |move the exp to fp0 58 bsr nrm_set |normalize (exp will go negative) 61 fmovew %d0,%fp0 |move the exp to fp0 81 movew LOCAL_EX(%a0),%d0 |get the exp (really just want sign bit) 82 orw #0x7fff,%d0 |clear old exp 83 bclrl #14,%d0 |make it the new exp +-3fff 84 movew %d0,LOCAL_EX(%a0) |move the sign & exp back to fsave stack
|
D | sint.S | 27 | 1. If exp(X) >= 63, return X. 28 | If exp(X) < 0, return +/- 0 or +/- 1, according to 31 | 2. (X is in range) set rsc = 63 - exp(X). Unnormalize the 144 cmpw #0x403e,LOCAL_EX(%a0) |check if (unbiased) exp > 63 145 bgts out_rnge |branch if exp < 63 146 cmpw #0x3ffd,LOCAL_EX(%a0) |check if (unbiased) exp < 0 147 bgt in_rnge |if 63 >= exp > 0, do calc 201 fmovex LOCAL_EX(%a0),%fp0 |if exp > 63
|
D | decbin.S | 50 | A4. Calculate the factor 10^exp in FP1 using a table of 454 movel %d1,%d0 |copy exp to d0;use d0 455 bpls no_neg |if exp is negative, 471 | Check the sign of the adjusted exp and make the value in fp0 the 472 | same sign. If the exp was pos then multiply fp1*fp0; 479 | ( ) fp1: scaling factor - 10**(abs(exp)) 485 fdivx %fp1,%fp0 |exp is negative, so divide mant by exp 488 fmulx %fp1,%fp0 |exp is positive, so multiply by exp
|
D | x_store.S | 118 | extended -> |s| exp | |1| ms mant | | ls mant | 126 | double -> |s|exp| mant | | mant | 138 lsll #4,%d0 |d0 now in proper place for dbl prec exp 151 movel %d0,LOCAL_EX(%a1) |put the new exp back on the stack 157 movel %d0,LOCAL_EX(%a1) |put the new exp back on the stack
|
D | scosh.S | 26 | y = |X|, z = exp(Y), and 33 | cosh(X) = sign(X) * exp(|X|)/2. 34 | However, invoking exp(|X|) may cause premature overflow.
|
D | setox.S | 6 | number. setoxm1 computes exp(X)-1, and setoxm1d computes 7 | exp(X)-1 for denormalized X. 16 | exp(X) or exp(X)-1 returned in floating-point register fp0. 127 | Step 4. Approximate exp(R)-1 by a polynomial 133 | |p - (exp(R)-1)| < 2^(-68.8) for all |R| <= 0.0062. 141 | Step 5. Compute 2^(J/64)*exp(R) = 2^(J/64)*(1+p) by 152 | Step 6. Reconstruction of exp(X) 153 | exp(X) = 2^M * 2^(J/64) * exp(R). 159 | |M| <= 16380, and Scale = 2^M. Moreover, exp(X) will 163 | Hence, exp(X) may overflow or underflow or neither. [all …]
|
D | round.S | 220 addw #0x1,LOCAL_EX(%a0) |and inc exp 306 cmpw #64,%d0 |see if exp > 64 308 bsr nrm_set |exp > 64 so exp won't exceed 0 330 lsrl %d5,%d6 |by the number in the exp, then 331 | ;set exp = 0. 333 movel #0,%d0 |same as if decremented exp to 0 346 bsr nrm_set |else exp won't go past 0 390 subw %d7,%d0 |subtract shift count from exp 393 movel %d1,LOCAL_HI(%a0) |store exp 442 subw LOCAL_EX(%a0),%d0 |diff = threshold - exp [all …]
|
D | res_func.S | 71 bsr nrm_set |normalize number (exp will go negative) 705 bfextu ETEMP_EX(%a6){#1:#15},%d0 |get src exp (always pos) 706 bfexts FPTEMP_EX(%a6){#1:#15},%d1 |get dest exp (always neg) 744 bfextu FPTEMP_EX(%a6){#1:#15},%d0 |get dest exp (always pos) 745 bfexts ETEMP_EX(%a6){#1:#15},%d1 |get src exp (always neg) 809 bfextu ETEMP_EX(%a6){#1:#15},%d0 |get src exp (always pos) 810 bfexts FPTEMP_EX(%a6){#1:#15},%d1 |get dest exp (always neg) 818 bfextu FPTEMP_EX(%a6){#1:#15},%d0 |get dest exp (always pos) 819 bfexts ETEMP_EX(%a6){#1:#15},%d1 |get src exp (always neg) 984 bfextu ETEMP_EX(%a6){#1:#15},%d0 |get src exp (always pos) [all …]
|
/arch/ia64/include/asm/ |
D | bitops.h | 385 long exp; in ia64_fls() local 387 exp = ia64_getf_exp(d); in ia64_fls() 388 return exp - 0xffff; in ia64_fls()
|
/arch/alpha/kernel/ |
D | traps.c | 700 unsigned long exp; in s_mem_to_reg() local 702 exp = (exp_msb << 10) | exp_low; /* common case */ in s_mem_to_reg() 705 exp = 0x7ff; in s_mem_to_reg() 709 exp = 0x000; in s_mem_to_reg() 711 exp |= (0x7 << 7); in s_mem_to_reg() 714 return (sign << 63) | (exp << 52) | (frac << 29); in s_mem_to_reg()
|
/arch/mn10300/kernel/ |
D | sys_mn10300.c | 76 fd_set *exp; member 87 return sys_select(a.n, a.inp, a.outp, a.exp, a.tvp); in old_select()
|
/arch/mips/math-emu/ |
D | ieee754.h | 138 ieee754sp ieee754sp_frexp(ieee754sp x, int *exp); 139 ieee754sp ieee754sp_ldexp(ieee754sp x, int exp); 189 ieee754dp ieee754dp_frexp(ieee754dp x, int *exp); 190 ieee754dp ieee754dp_ldexp(ieee754dp x, int exp);
|
/arch/xtensa/include/asm/ |
D | syscall.h | 37 fd_set __user *exp, struct timespec __user *tsp, void __user *sig);
|
/arch/m68knommu/kernel/ |
D | sys_m68k.c | 101 fd_set *inp, *outp, *exp; member 112 return sys_select(a.n, a.inp, a.outp, a.exp, a.tvp); in old_select()
|