mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
Build fix for VS2012 and earlier.
This commit is contained in:
parent
bf49f81622
commit
10cc8c3a75
|
@ -383,7 +383,13 @@ 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) {
|
void hwf_manager::rem(hwf const & x, hwf const & y, hwf & o) {
|
||||||
|
#if defined(_WINDOWS) && _MSC_VER < 1800
|
||||||
|
o.value = fmod(x.value, y.value);
|
||||||
|
if (o.value >= (y.value/2))
|
||||||
|
o.value /= 2.0;
|
||||||
|
#else
|
||||||
o.value = remainder(x.value, y.value);
|
o.value = remainder(x.value, y.value);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
// Here is an x87 alternative if the above makes problems; this may also be faster.
|
// Here is an x87 alternative if the above makes problems; this may also be faster.
|
||||||
|
|
Loading…
Reference in a new issue