/arch/powerpc/kernel/ |
D | vecemu.c | 41 int exp, pwr; in eexp2() local 45 exp = ((s >> 23) & 0xff) - 127; in eexp2() 46 if (exp > 7) { in eexp2() 48 if (exp == 128 && (s & 0x7fffff) != 0) in eexp2() 53 if (exp < -23) in eexp2() 58 if (exp > 0) in eexp2() 59 pwr <<= exp; in eexp2() 61 pwr >>= -exp; in eexp2() 66 exp = (pwr >> 23) + 126; in eexp2() 67 if (exp >= 254) in eexp2() [all …]
|
D | syscalls.c | 82 ppc_select(int n, fd_set __user *inp, fd_set __user *outp, fd_set __user *exp, struct __kernel_old_… in ppc_select() argument 91 || __get_user(exp, ((fd_set __user * __user *)(buffer+3))) in ppc_select() 95 return sys_select(n, inp, outp, exp, tvp); in ppc_select()
|
/arch/m68k/math-emu/ |
D | fp_arith.c | 20 .exp = 0x7fff, 26 .exp = 0x7fff, 95 if ((diff = dest->exp - src->exp) > 0) in fp_fadd() 154 int exp; in fp_fmul() local 181 dest->exp = 0; in fp_fmul() 188 exp = dest->exp + src->exp - 0x3ffe; in fp_fmul() 194 exp -= fp_overnormalize(dest); in fp_fmul() 196 exp -= fp_overnormalize(src); in fp_fmul() 204 exp--; in fp_fmul() 209 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() 195 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 | 98 int exp, w; in denormal_mulf() local 105 exp = (iy & 0x7f800000) >> 23; in denormal_mulf() 114 exp += w - 126 - 46; in denormal_mulf() 115 if (exp > 0) in denormal_mulf() 116 ix = ((int) (m >> (w - 23)) & 0x007fffff) | (exp << 23); in denormal_mulf() 117 else if (exp + 22 >= 0) in denormal_mulf() 118 ix = (int) (m >> (w - 22 - exp)) & 0x007fffff; in denormal_mulf() 165 int exp, w; in denormal_muld() local 172 exp = (iy & 0x7ff0000000000000LL) >> 52; in denormal_muld() 186 exp += w - 1022 - 52 * 2; in denormal_muld() [all …]
|
/arch/x86/math-emu/ |
D | reg_ld_str.c | 39 static u_char normalize_no_excep(FPU_REG *r, int exp, int sign) in normalize_no_excep() argument 43 setexponent16(r, exp); in normalize_no_excep() 55 int exp; in FPU_tagof() local 57 exp = exponent16(ptr) & 0x7fff; in FPU_tagof() 58 if (exp == 0) { in FPU_tagof() 66 if (exp == 0x7fff) { in FPU_tagof() 97 int exp, tag, negative; in FPU_load_double() local 107 exp = ((m64 & 0x7ff00000) >> 20) - DOUBLE_Ebias + EXTENDED_Ebias; in FPU_load_double() 109 if (exp > DOUBLE_Emax + EXTENDED_Ebias) { in FPU_load_double() 115 exp = EXP_Infinity + EXTENDED_Ebias; in FPU_load_double() [all …]
|
D | fpu_emu.h | 121 short exp; member 172 *(short *)&(y->exp) = *(const short *)&(x->exp); in reg_copy() 176 #define exponent(x) (((*(short *)&((x)->exp)) & 0x7fff) - EXTENDED_Ebias) 177 #define setexponentpos(x,y) { (*(short *)&((x)->exp)) = \ 179 #define exponent16(x) (*(short *)&((x)->exp)) 180 #define setexponent16(x,y) { (*(short *)&((x)->exp)) = (u16)(y); } 181 #define addexponent(x,y) { (*(short *)&((x)->exp)) += (y); } 182 #define stdexp(x) { (*(short *)&((x)->exp)) += EXTENDED_Ebias; }
|
D | poly.h | 88 static inline void add_two_Xsig(Xsig *dest, const Xsig *x2, long int *exp) in add_two_Xsig() argument 98 "0: xorl %%eax,%%eax;\n" "1:\n":"=g" (*exp), "=g"(*dest) in add_two_Xsig() 99 :"g"(dest), "g"(x2), "g"(exp) in add_two_Xsig()
|
D | fpu_tags.c | 64 int exp = exponent(ptr); in FPU_Special() local 66 if (exp == EXP_BIAS + EXP_UNDER) in FPU_Special() 68 else if (exp != EXP_BIAS + EXP_OVER) in FPU_Special()
|
/arch/parisc/math-emu/ |
D | cnv_float.h | 95 #define Dbl_to_sgl_denormalized(srcA,srcB,exp,dest,inexact,guard,sticky,odd,tiny) \ argument 98 if (exp >= -2) { \ 99 if (exp == 0) { \ 143 inexact = Dallp2(srcB) << (2 + exp); \ 147 if (exp == -2) dest = Dallp1(srcA); \ 148 else Variable_shift_double(Dallp1(srcA),Dallp2(srcB),30-exp,dest); \ 154 if (exp > (1 - SGL_P)) { \ 155 dest = Dallp1(srcA) >> (- 2 - exp); \ 156 inexact = Dallp1(srcA) << (34 + exp); \ 165 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/powerpc/lib/ |
D | test_emulate_step.c | 1349 #define gpr_mismatch(gprn, exp, got) \ argument 1351 gprn, exp, got) 1353 #define reg_mismatch(name, exp, got) \ argument 1355 name, exp, got) 1361 struct pt_regs *regs, exp, got; in run_tests_compute() local 1383 memcpy(&exp, regs, sizeof(struct pt_regs)); in run_tests_compute() 1390 exp.msr = MSR_KERNEL; in run_tests_compute() 1398 } else if (rc || execute_compute_instr(&exp, instr)) { in run_tests_compute() 1406 if (!ignore_gpr && exp.gpr[k] != got.gpr[k]) { in run_tests_compute() 1408 gpr_mismatch(k, exp.gpr[k], got.gpr[k]); in run_tests_compute() [all …]
|
/arch/ia64/include/asm/ |
D | bitops.h | 381 long exp; in ia64_fls() local 383 exp = ia64_getf_exp(d); in ia64_fls() 384 return exp - 0xffff; in ia64_fls()
|
/arch/alpha/kernel/ |
D | traps.c | 651 unsigned long exp; in s_mem_to_reg() local 653 exp = (exp_msb << 10) | exp_low; /* common case */ in s_mem_to_reg() 656 exp = 0x7ff; in s_mem_to_reg() 660 exp = 0x000; in s_mem_to_reg() 662 exp |= (0x7 << 7); in s_mem_to_reg() 665 return (sign << 63) | (exp << 52) | (frac << 29); in s_mem_to_reg()
|
/arch/powerpc/perf/ |
D | isa207-common.c | 142 unsigned int cmp, exp; in is_thresh_cmp_valid() local 153 exp = cmp >> 7; in is_thresh_cmp_valid() 155 if (exp && (cmp & 0x60) == 0) in is_thresh_cmp_valid() 245 u64 exp = MMCRA_THR_CTR_EXP(mmcra); in isa207_get_mem_weight() local 256 *weight = mantissa << (2 * exp); in isa207_get_mem_weight()
|
/arch/x86/platform/uv/ |
D | uv_time.c | 178 u64 exp = head->cpu[c].expires; in uv_rtc_find_next_timer() local 179 if (exp < lowest) { in uv_rtc_find_next_timer() 181 lowest = exp; in uv_rtc_find_next_timer()
|