| /arch/powerpc/kernel/ |
| A D | vecemu.c | 41 int exp, pwr; in eexp2() local 46 if (exp > 7) { in eexp2() 58 if (exp > 0) in eexp2() 59 pwr <<= exp; in eexp2() 81 if (exp >= 0) in eexp2() 85 exp = -exp; in eexp2() 143 exp = -exp; in elog2() 165 exp = exp - 127 + scale; in ctsxs() 181 int exp; in ctuxs() local 188 exp = exp - 127 + scale; in ctuxs() [all …]
|
| /arch/m68k/math-emu/ |
| A D | fp_arith.c | 92 if ((diff = dest->exp - src->exp) > 0) in fp_fadd() 147 int exp; in fp_fmul() local 181 exp = dest->exp + src->exp - 0x3ffe; in fp_fmul() 197 exp--; in fp_fmul() 206 dest->exp = exp; in fp_fmul() 267 exp = dest->exp - src->exp + 0x3fff; in fp_fdiv() 292 dest->exp = exp; in fp_fdiv() 337 exp = dest->exp + src->exp - 0x3ffe; in fp_fsglmul() 348 dest->exp = exp; in fp_fsglmul() 403 exp = dest->exp - src->exp + 0x3fff; in fp_fsgldiv() [all …]
|
| A D | fp_log.c | 23 .exp = 0x3fff, 29 int i, exp; in fp_fsqrt() local 57 exp = dest->exp; in fp_fsqrt() 58 dest->exp = 0x3FFF; in fp_fsqrt() 59 if (!(exp & 1)) /* lowest bit of exponent is set */ in fp_fsqrt() 60 dest->exp++; in fp_fsqrt() 72 dest->exp--; /* * 1/2 */ in fp_fsqrt() 91 dest->exp--; in fp_fsqrt() 94 dest->exp += (exp - 0x3FFF) / 2; in fp_fsqrt() 184 fp_conv_long2ext(dest, (int)dest->exp - 0x3FFF); in fp_fgetexp() [all …]
|
| A D | fp_emu.h | 48 #define IS_INF(a) ((a)->exp == 0x7fff) 104 dest->exp = 0x7fff; \
|
| A 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/ |
| A D | fpu.c | 98 int exp, w; in denormal_mulf() local 115 if (exp > 0) in denormal_mulf() 165 int exp, w; in denormal_muld() local 187 if (exp > 0) in denormal_muld() 203 int exp; in denormal_subf1() local 230 int exp; in denormal_addf1() local 246 ++exp; in denormal_addf1() 288 int exp; in denormal_subd1() local 315 long long exp; in denormal_addd1() local 331 ++exp; in denormal_addd1() [all …]
|
| /arch/x86/math-emu/ |
| A D | reg_ld_str.c | 43 setexponent16(r, exp); in normalize_no_excep() 55 int exp; in FPU_tagof() local 58 if (exp == 0) { in FPU_tagof() 66 if (exp == 0x7fff) { in FPU_tagof() 97 int exp, tag, negative; in FPU_load_double() local 130 exp = 0; in FPU_load_double() 159 int exp, tag, negative; in FPU_load_single() local 384 int exp; in FPU_store_double() local 452 exp++; in FPU_store_double() 569 int exp; in FPU_store_single() local [all …]
|
| A 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; }
|
| A 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()
|
| A 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/ |
| A 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/ |
| A 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
|
| A 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
|
| A 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
|
| A 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
|
| A 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.
|
| A 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). 185 | Step 8. Handle exp(X) where |X| >= 16380log2. 196 | Step 9. Handle exp(X), |X| > 16480 log2. [all …]
|
| A 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 …]
|
| A 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) 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) 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) 994 bfexts ETEMP_EX(%a6){#1:#15},%d1 |get src exp (always neg) 1165 bfextu ETEMP_EX(%a6){#1:#15},%d0 |get src exp (always pos) 1997 clrw 2(%a0) |clear lower word of exp 2004 clrw 2(%a0) |clear lower word of exp [all …]
|
| A D | stwotox.S | 34 | 2**X = 2**(M') * 2**(M) * 2**(j/64) * exp(r). 50 | 10**X = 2**(M') * 2**(M) * 2**(j/64) * exp(r). 61 | 3. Calculate P where 1 + P approximates exp(r):
|
| /arch/powerpc/lib/ |
| A D | test_emulate_step.c | 1644 #define gpr_mismatch(gprn, exp, got) \ argument 1646 gprn, exp, got) 1648 #define reg_mismatch(name, exp, got) \ argument 1650 name, exp, got) 1656 struct pt_regs *regs, exp, got; in run_tests_compute() local 1685 exp.msr = MSR_KERNEL; in run_tests_compute() 1708 if (exp.link != got.link) { in run_tests_compute() 1710 reg_mismatch("LR", exp.link, got.link); in run_tests_compute() 1714 if (!ignore_xer && exp.xer != got.xer) { in run_tests_compute() 1716 reg_mismatch("XER", exp.xer, got.xer); in run_tests_compute() [all …]
|
| /arch/powerpc/perf/ |
| A D | isa207-common.c | 113 int exp = 0; in p10_thresh_cmp_val() local 132 exp++; in p10_thresh_cmp_val() 141 if (!(value & 0xC0) && exp) in p10_thresh_cmp_val() 144 result = (exp << 8) | value; in p10_thresh_cmp_val() 187 unsigned int cmp, exp; in is_thresh_cmp_valid() local 198 exp = cmp >> 7; in is_thresh_cmp_valid() 200 if (exp && (cmp & 0x60) == 0) in is_thresh_cmp_valid() 378 u64 exp = MMCRA_THR_CTR_EXP(mmcra); in isa207_get_mem_weight() local 389 weight_lat = mantissa << (2 * exp); in isa207_get_mem_weight()
|
| /arch/alpha/kernel/ |
| A D | traps.c | 591 unsigned long exp; in s_mem_to_reg() local 593 exp = (exp_msb << 10) | exp_low; /* common case */ in s_mem_to_reg() 596 exp = 0x7ff; in s_mem_to_reg() 600 exp = 0x000; in s_mem_to_reg() 602 exp |= (0x7 << 7); in s_mem_to_reg() 605 return (sign << 63) | (exp << 52) | (frac << 29); in s_mem_to_reg()
|
| /arch/x86/platform/uv/ |
| A 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()
|
| /arch/sh/kernel/cpu/sh4/ |
| A D | fpu.c | 150 int exp = 1023 - 126; in denormal_to_double() local 156 exp--; in denormal_to_double() 159 du |= (exp << 20) | (x >> 3); in denormal_to_double()
|