Disable attempting to change floating point precision in 64-bit MSVC builds

It's not supported and causes an assertion failure on startup.
This commit is contained in:
Jyrki Vesterinen 2019-12-02 19:43:33 +02:00
parent 1e19cd5d23
commit cba53cd471

View file

@ -645,6 +645,7 @@ static void check_fpu()
}
}
#ifndef _M_AMD64
if(precision_mode != _PC_53) {
std::cerr << "Floating point precision mode is currently '"
<< ((precision_mode == _PC_53)
@ -658,6 +659,8 @@ static void check_fpu()
std::cerr << "failed to set floating point precision type to 'double'\n";
}
}
#endif
} else {
std::cerr << "_controlfp_s failed.\n";
}