Lines Matching refs:op

2358 fplibAbs(uint16_t op)
2360 return op & ~(1ULL << (FP16_BITS - 1));
2365 fplibAbs(uint32_t op)
2367 return op & ~(1ULL << (FP32_BITS - 1));
2372 fplibAbs(uint64_t op)
2374 return op & ~(1ULL << (FP64_BITS - 1));
2510 fp16_FPConvertNaN_32(uint32_t op)
2512 return fp16_pack(op >> (FP32_BITS - 1), FP16_EXP_INF,
2514 op >> (FP32_MANT_BITS - FP16_MANT_BITS));
2518 fp16_FPConvertNaN_64(uint64_t op)
2520 return fp16_pack(op >> (FP64_BITS - 1), FP16_EXP_INF,
2522 op >> (FP64_MANT_BITS - FP16_MANT_BITS));
2526 fp32_FPConvertNaN_16(uint16_t op)
2528 return fp32_pack(op >> (FP16_BITS - 1), FP32_EXP_INF,
2530 (uint32_t)op << (FP32_MANT_BITS - FP16_MANT_BITS));
2534 fp32_FPConvertNaN_64(uint64_t op)
2536 return fp32_pack(op >> (FP64_BITS - 1), FP32_EXP_INF,
2538 op >> (FP64_MANT_BITS - FP32_MANT_BITS));
2542 fp64_FPConvertNaN_16(uint16_t op)
2544 return fp64_pack(op >> (FP16_BITS - 1), FP64_EXP_INF,
2546 (uint64_t)op << (FP64_MANT_BITS - FP16_MANT_BITS));
2550 fp64_FPConvertNaN_32(uint32_t op)
2552 return fp64_pack(op >> (FP32_BITS - 1), FP64_EXP_INF,
2554 (uint64_t)op << (FP64_MANT_BITS - FP32_MANT_BITS));
2613 fplibConvert(uint32_t op, FPRounding rounding, FPSCR &fpscr)
2622 fp32_unpack(&sgn, &exp, &mnt, op, mode, &flags);
2632 result = fp16_FPConvertNaN_32(op);
2662 fplibConvert(uint64_t op, FPRounding rounding, FPSCR &fpscr)
2671 fp64_unpack(&sgn, &exp, &mnt, op, mode, &flags);
2681 result = fp16_FPConvertNaN_64(op);
2711 fplibConvert(uint16_t op, FPRounding rounding, FPSCR &fpscr)
2720 fp16_unpack(&sgn, &exp, &mnt, op, mode & 0xf, &flags);
2726 result = fp32_FPConvertNaN_16(op);
2749 fplibConvert(uint64_t op, FPRounding rounding, FPSCR &fpscr)
2758 fp64_unpack(&sgn, &exp, &mnt, op, mode, &flags);
2764 result = fp32_FPConvertNaN_64(op);
2788 fplibConvert(uint16_t op, FPRounding rounding, FPSCR &fpscr)
2797 fp16_unpack(&sgn, &exp, &mnt, op, mode & 0xf, &flags);
2803 result = fp64_FPConvertNaN_16(op);
2826 fplibConvert(uint32_t op, FPRounding rounding, FPSCR &fpscr)
2835 fp32_unpack(&sgn, &exp, &mnt, op, mode, &flags);
2841 result = fp64_FPConvertNaN_32(op);
2924 fplibExpA(uint16_t op)
2960 return ((((op >> 5) & ((1 << FP16_EXP_BITS) - 1)) << FP16_MANT_BITS) |
2961 coeff[op & ((1 << 5) - 1)]);
2966 fplibExpA(uint32_t op)
3034 return ((((op >> 6) & ((1 << FP32_EXP_BITS) - 1)) << FP32_MANT_BITS) |
3035 coeff[op & ((1 << 6) - 1)]);
3040 fplibExpA(uint64_t op)
3108 return ((((op >> 6) & ((1 << FP64_EXP_BITS) - 1)) << FP64_MANT_BITS) |
3109 coeff[op & ((1 << 6) - 1)]);
3477 fplibNeg(uint16_t op)
3479 return op ^ 1ULL << (FP16_BITS - 1);
3484 fplibNeg(uint32_t op)
3486 return op ^ 1ULL << (FP32_BITS - 1);
3491 fplibNeg(uint64_t op)
3493 return op ^ 1ULL << (FP64_BITS - 1);
3517 fplibRSqrtEstimate(uint16_t op, FPSCR &fpscr)
3524 fp16_unpack(&sgn, &exp, &mnt, op, mode, &flags);
3527 result = fp16_process_NaN(op, mode, &flags);
3552 fplibRSqrtEstimate(uint32_t op, FPSCR &fpscr)
3559 fp32_unpack(&sgn, &exp, &mnt, op, mode, &flags);
3562 result = fp32_process_NaN(op, mode, &flags);
3587 fplibRSqrtEstimate(uint64_t op, FPSCR &fpscr)
3594 fp64_unpack(&sgn, &exp, &mnt, op, mode, &flags);
3597 result = fp64_process_NaN(op, mode, &flags);
3712 fplibRecipEstimate(uint16_t op, FPSCR &fpscr)
3719 fp16_unpack(&sgn, &exp, &mnt, op, mode, &flags);
3722 result = fp16_process_NaN(op, mode, &flags);
3728 } else if (!((uint16_t)(op << 1) >> (FP16_MANT_BITS - 1))) {
3774 fplibRecipEstimate(uint32_t op, FPSCR &fpscr)
3781 fp32_unpack(&sgn, &exp, &mnt, op, mode, &flags);
3784 result = fp32_process_NaN(op, mode, &flags);
3790 } else if (!((uint32_t)(op << 1) >> (FP32_MANT_BITS - 1))) {
3836 fplibRecipEstimate(uint64_t op, FPSCR &fpscr)
3843 fp64_unpack(&sgn, &exp, &mnt, op, mode, &flags);
3846 result = fp64_process_NaN(op, mode, &flags);
3852 } else if (!((uint64_t)(op << 1) >> (FP64_MANT_BITS - 1))) {
3988 fplibRecpX(uint16_t op, FPSCR &fpscr)
3995 fp16_unpack(&sgn, &exp, &mnt, op, mode, &flags);
3998 result = fp16_process_NaN(op, mode, &flags);
4015 fplibRecpX(uint32_t op, FPSCR &fpscr)
4022 fp32_unpack(&sgn, &exp, &mnt, op, mode, &flags);
4025 result = fp32_process_NaN(op, mode, &flags);
4042 fplibRecpX(uint64_t op, FPSCR &fpscr)
4049 fp64_unpack(&sgn, &exp, &mnt, op, mode, &flags);
4052 result = fp64_process_NaN(op, mode, &flags);
4069 fplibRoundInt(uint16_t op, FPRounding rounding, bool exact, FPSCR &fpscr)
4078 fp16_unpack(&sgn, &exp, &mnt, op, mode, &flags);
4082 result = fp16_process_NaN(op, mode, &flags);
4089 result = op;
4134 fplibRoundInt(uint32_t op, FPRounding rounding, bool exact, FPSCR &fpscr)
4143 fp32_unpack(&sgn, &exp, &mnt, op, mode, &flags);
4147 result = fp32_process_NaN(op, mode, &flags);
4154 result = op;
4199 fplibRoundInt(uint64_t op, FPRounding rounding, bool exact, FPSCR &fpscr)
4208 fp64_unpack(&sgn, &exp, &mnt, op, mode, &flags);
4212 result = fp64_process_NaN(op, mode, &flags);
4219 result = op;
4294 fplibSqrt(uint16_t op, FPSCR &fpscr)
4297 uint16_t result = fp16_sqrt(op, modeConv(fpscr), &flags);
4304 fplibSqrt(uint32_t op, FPSCR &fpscr)
4307 uint32_t result = fp32_sqrt(op, modeConv(fpscr), &flags);
4314 fplibSqrt(uint64_t op, FPSCR &fpscr)
4317 uint64_t result = fp64_sqrt(op, modeConv(fpscr), &flags);
4624 fplibFPToFixed(uint16_t op, int fbits, bool u, FPRounding rounding,
4632 fp16_unpack(&sgn, &exp, &mnt, op, modeConv(fpscr), &flags);
4654 fplibFPToFixed(uint16_t op, int fbits, bool u, FPRounding rounding,
4663 fp16_unpack(&sgn, &exp, &mnt, op, modeConv(fpscr), &flags);
4686 fplibFPToFixed(uint32_t op, int fbits, bool u, FPRounding rounding, FPSCR &fpscr)
4693 fp32_unpack(&sgn, &exp, &mnt, op, modeConv(fpscr), &flags);
4715 fplibFPToFixed(uint64_t op, int fbits, bool u, FPRounding rounding, FPSCR &fpscr)
4723 fp64_unpack(&sgn, &exp, &mnt, op, modeConv(fpscr), &flags);
4742 fplibFPToFixed(uint16_t op, int fbits, bool u, FPRounding rounding,
4751 fp16_unpack(&sgn, &exp, &mnt, op, modeConv(fpscr), &flags);
4774 fplibFPToFixed(uint32_t op, int fbits, bool u, FPRounding rounding, FPSCR &fpscr)
4782 fp32_unpack(&sgn, &exp, &mnt, op, modeConv(fpscr), &flags);
4804 fplibFPToFixed(uint64_t op, int fbits, bool u, FPRounding rounding, FPSCR &fpscr)
4811 fp64_unpack(&sgn, &exp, &mnt, op, modeConv(fpscr), &flags);
4887 fplibFixedToFP(uint64_t op, int fbits, bool u, FPRounding rounding,
4891 uint16_t res = fp16_cvtf(op, fbits, u,
4900 fplibFixedToFP(uint64_t op, int fbits, bool u, FPRounding rounding, FPSCR &fpscr)
4903 uint32_t res = fp32_cvtf(op, fbits, u,
4912 fplibFixedToFP(uint64_t op, int fbits, bool u, FPRounding rounding, FPSCR &fpscr)
4915 uint64_t res = fp64_cvtf(op, fbits, u,