mirror of
https://github.com/Z3Prover/z3
synced 2025-04-07 18:05:21 +00:00
Remove remainder workaround for pre-MSVC2013. (#6204)
This workaround was built for _MSC_VER <= 1700. 1700 was Visual Studio 2012, which is no longer supported for building Z3.
This commit is contained in:
parent
eba29a280d
commit
8e0d9bf42d
|
@ -312,13 +312,7 @@ void hwf_manager::round_to_integral(mpf_rounding_mode rm, hwf const & x, hwf & o
|
|||
}
|
||||
|
||||
void hwf_manager::rem(hwf const & x, hwf const & y, hwf & o) {
|
||||
#if defined(_WINDOWS) && _MSC_VER <= 1700
|
||||
o.value = fmod(x.value, y.value);
|
||||
if (o.value >= (y.value/2.0))
|
||||
o.value -= y.value;
|
||||
#else
|
||||
o.value = remainder(x.value, y.value);
|
||||
#endif
|
||||
}
|
||||
|
||||
void hwf_manager::maximum(hwf const & x, hwf const & y, hwf & o) {
|
||||
|
|
Loading…
Reference in a new issue