Searched refs:FP_LG (Results 1 - 8 of 8) sorted by relevance

/netbsd-6-1-5-RELEASE/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.c92 * The value FP_1 represents 2^FP_LG, so set the exponent
97 fp->fp_exp = FP_LG;
116 * The value FP_1 represents 2^FP_LG, so set the exponent
165 * We assume a single occupies at most (64-FP_LG) bits in the internal
173 #define SNG_SHIFT (SNG_FRACBITS - FP_LG)
184 * We assume this uses at most (96-FP_LG) bits.
191 #define DBL_SHIFT (DBL_FRACBITS - 32 - FP_LG)
/netbsd-6-1-5-RELEASE/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.c95 * The value FP_1 represents 2^FP_LG, so set the exponent
100 fp->fp_exp = FP_LG;
120 * The value FP_1 represents 2^FP_LG, so set the exponent
170 * We assume a single occupies at most (64-FP_LG) bits in the internal
178 #define SNG_SHIFT (SNG_FRACBITS - FP_LG)
189 * We assume this uses at most (96-FP_LG) bits.
196 #define DBL_SHIFT (DBL_FRACBITS - 32 - FP_LG)
215 #define EXT_SHIFT (-(EXT_FRACBITS - 3 * 32 - FP_LG)) /* left shift! */
/netbsd-6-1-5-RELEASE/sys/arch/m68k/fpe/
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.c96 * The value FP_1 represents 2^FP_LG, so set the exponent
101 fp->fp_exp = FP_LG;
142 * We assume a single occupies at most (64-FP_LG) bits in the internal
150 #define SNG_SHIFT (SNG_FRACBITS - FP_LG)
161 * We assume this uses at most (96-FP_LG) bits.
168 #define DBL_SHIFT (DBL_FRACBITS - 32 - FP_LG)
188 #define EXT_SHIFT (EXT_FRACBITS - 1 - 32 - FP_LG)
H A Dfpu_log.c206 if ((-1 == X.fp_exp && (0xf07d0000U >> (31 - FP_LG)) <= X.fp_mant[0]) ||
207 (0 == X.fp_exp && X.fp_mant[0] <= (0x88410000U >> (31 - FP_LG)))) {
305 F.fp_mant[0] = X.fp_mant[0] & (0xfe000000U >> (31 - FP_LG));
306 F.fp_mant[0] |= (0x01000000U >> (31 - FP_LG));
319 i = (F.fp_mant[0] >> (FP_LG - 7)) & 0x7e;
337 fe->fe_f2.fp_mant[0] = (logtbl[i].sp_m0 >> (31 - FP_LG));
338 fe->fe_f2.fp_mant[1] = (logtbl[i].sp_m0 << (FP_LG + 1)) |
339 (logtbl[i].sp_m1 >> (31 - FP_LG));
340 fe->fe_f2.fp_mant[2] = (u_int)(logtbl[i].sp_m1 << (FP_LG + 1));
443 fe->fe_f2.fp_mant[0] = (logtbl[i].sp_m0 >> (31 - FP_LG));
[all...]
H A Dfpu_subr.c169 rsh = 31 - rsh - FP_LG;
181 lsh = FP_LG - 31 + lsh;

Completed in 122 milliseconds