emit_x64_vector_floating_point: Correct value of smallest_normal_number

This commit is contained in:
MerryMage 2018-08-16 10:55:02 +01:00
parent e60d6c0d20
commit ec76f95f5a

View file

@ -147,7 +147,7 @@ Xbyak::Address GetNegativeZeroVector(BlockOfCode& code) {
template<size_t fsize>
Xbyak::Address GetSmallestNormalVector(BlockOfCode& code) {
using FPT = mp::unsigned_integer_of_size<fsize>;
constexpr FPT smallest_normal_number = FP::FPValue<FPT, false, FP::FPInfo<FPT>::exponent_min, FP::FPInfo<FPT>::implicit_leading_bit>();
constexpr FPT smallest_normal_number = FP::FPValue<FPT, false, FP::FPInfo<FPT>::exponent_min, 1>();
return GetVectorOf<fsize, smallest_normal_number>(code);
}