Home
last modified time | relevance | path

Searched refs:FP_LG (Results 1 – 9 of 9) sorted by relevance

/netbsd-src/sys/arch/m68k/fpe/
H A Dfpu_log.c206 if ((-1 == X.fp_exp && (0xf07d0000U >> (31 - FP_LG)) <= X.fp_mant[0]) || in __fpu_logn()
207 (0 == X.fp_exp && X.fp_mant[0] <= (0x88410000U >> (31 - FP_LG)))) { in __fpu_logn()
305 F.fp_mant[0] = X.fp_mant[0] & (0xfe000000U >> (31 - FP_LG)); in __fpu_logn()
306 F.fp_mant[0] |= (0x01000000U >> (31 - FP_LG)); in __fpu_logn()
319 i = (F.fp_mant[0] >> (FP_LG - 7)) & 0x7e; in __fpu_logn()
337 fe->fe_f2.fp_mant[0] = (logtbl[i].sp_m0 >> (31 - FP_LG)); in __fpu_logn()
338 fe->fe_f2.fp_mant[1] = (logtbl[i].sp_m0 << (FP_LG + 1)) | in __fpu_logn()
339 (logtbl[i].sp_m1 >> (31 - FP_LG)); in __fpu_logn()
341 (uint32_t)(logtbl[i].sp_m1 << (FP_LG + 1)); in __fpu_logn()
444 fe->fe_f2.fp_mant[0] = (logtbl[i].sp_m0 >> (31 - FP_LG)); in __fpu_logn()
[all …]
H A Dfpu_emulate.h89 #define FP_LG ((FP_NMANT - 1) & 31) /* log2(1.0) for fp_mant[0] */ macro
90 #define FP_QUIETBIT (1 << (FP_LG - 1)) /* Quiet bit in NaNs (0.5) */
91 #define FP_1 (1 << FP_LG) /* 1.0 in fp_mant[0] */
92 #define FP_2 (1 << (FP_LG + 1)) /* 2.0 in fp_mant[0] */
H A Dfpu_explode.c101 fp->fp_exp = FP_LG; in fpu_itof()
150 #define SNG_SHIFT (SNG_FRACBITS - FP_LG) in fpu_stof()
168 #define DBL_SHIFT (DBL_FRACBITS - 32 - FP_LG) in fpu_dtof()
187 #define EXT_SHIFT (EXT_FRACBITS - 1 - 32 - FP_LG) in fpu_xtof()
H A Dfpu_subr.c188 rsh = 31 - rsh - FP_LG; in fpu_norm()
200 lsh = FP_LG - 31 + lsh; in fpu_norm()
H A Dfpu_exp.c151 k = fp->fp_mant[0] >> (FP_LG - fp->fp_exp); in fpu_etox()
/netbsd-src/sys/arch/sparc/fpu/
H A Dfpu_emu.h92 #define FP_LG ((FP_NMANT - 1) & 31) /* log2(1.0) for fp_mant[0] */ macro
94 #define FP_QUIETBIT (1 << (FP_LG - 1)) /* Quiet bit in NaNs (0.5) */
95 #define FP_1 (1 << FP_LG) /* 1.0 in fp_mant[0] */
96 #define FP_2 (1 << (FP_LG + 1)) /* 2.0 in fp_mant[0] */
H A Dfpu_explode.c100 fp->fp_exp = FP_LG; in fpu_itof()
178 #define SNG_SHIFT (SNG_FRACBITS - FP_LG) in fpu_stof()
196 #define DBL_SHIFT (DBL_FRACBITS - 32 - FP_LG) in fpu_dtof()
215 #define EXT_SHIFT (-(EXT_FRACBITS - 3 * 32 - FP_LG)) /* left shift! */ in fpu_qtof()
/netbsd-src/sys/arch/powerpc/fpu/
H A Dfpu_emu.h88 #define FP_LG ((FP_NMANT - 1) & 31) /* log2(1.0) for fp_mant[0] */ macro
90 #define FP_QUIETBIT (1 << (FP_LG - 1)) /* Quiet bit in NaNs (0.5) */
91 #define FP_1 (1 << FP_LG) /* 1.0 in fp_mant[0] */
92 #define FP_2 (1 << (FP_LG + 1)) /* 2.0 in fp_mant[0] */
H A Dfpu_explode.c102 fp->fp_exp = FP_LG; in fpu_itof()
178 #define SNG_SHIFT (SNG_FRACBITS - FP_LG) in fpu_stof()
196 #define DBL_SHIFT (DBL_FRACBITS - 32 - FP_LG) in fpu_dtof()