Lines Matching defs:FP32_BITS
68 #define FP32_BITS 32
84 #define FP32_MANT_BITS (FP32_BITS - FP32_EXP_BITS - 1)
308 return sgn << (FP32_BITS - 1) | exp << FP32_MANT_BITS | FP32_MANT(mnt);
412 *sgn = x >> (FP32_BITS - 1);
1456 // Convert to FP32_BITS bits, collapsing error into bottom bit:
1457 x_mnt = lsr64(x_mnt, FP32_BITS - 1) | !!lsl64(x_mnt, FP32_BITS + 1);
1662 // Normalise into FP32_BITS bits, collapsing error into bottom bit:
1664 x_mnt = x_mnt >> (FP32_BITS - 1) | !!(uint32_t)(x_mnt << 1);
1833 x_exp = a_exp - b_exp + (FP32_EXP_BIAS + FP32_BITS + 2 * FP32_EXP_BITS - 3);
1838 // Normalise into FP32_BITS bits, collapsing error into bottom bit:
1840 x_mnt = x_mnt >> (FP32_BITS - 1) | !!(uint32_t)(x_mnt << 1);
2367 return op & ~(1ULL << (FP32_BITS - 1));
2512 return fp16_pack(op >> (FP32_BITS - 1), FP16_EXP_INF,
2552 return fp64_pack(op >> (FP32_BITS - 1), FP64_EXP_INF,
2776 mnt >> (FP64_MANT_BITS - FP32_BITS) |
2777 !!(mnt & ((1ULL << (FP64_MANT_BITS - FP32_BITS)) - 1)),
2854 (uint64_t)mnt << (FP64_MANT_BITS - FP32_BITS + 1));
3486 return op ^ 1ULL << (FP32_BITS - 1);
3575 (mnt >> (FP32_BITS - 8) & 127)];
3818 (mnt >> (FP32_BITS - 10) | 1) + 1) >> 1;
4157 uint32_t x = expint - exp >= FP32_BITS ? 0 : mnt >> (expint - exp);
4158 int err = exp < expint - FP32_BITS ? 1 :
4160 ((uint32_t)(mnt << 2 << (FP32_BITS + exp - expint)) != 0));
4414 fp32_muladd(coeff[op2 >> (FP32_BITS - 1)][coeff_index], op1,
4488 result = (result & ~(1ULL << (FP32_BITS - 1))) | op2 << (FP32_BITS - 1);
4531 return op1 ^ ((op2 >> 1) << (FP32_BITS - 1));
4599 if (u ? x >= 1ULL << FP32_BITS :
4600 !(x < 1ULL << (FP32_BITS - 1) ||
4601 (uint64_t)-x <= (uint64_t)1 << (FP32_BITS - 1))) {
4603 x = ((uint32_t)!u << (FP32_BITS - 1)) - !sgn;
4860 // Normalise into FP32_BITS bits, collapsing error into bottom bit:
4862 x_mnt = (x_mnt >> (FP64_BITS - FP32_BITS - 1) |
4863 !!(x_mnt & ((1ULL << (FP64_BITS - FP32_BITS - 1)) - 1)));