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:
parent
1e19cd5d23
commit
cba53cd471
1 changed files with 3 additions and 0 deletions
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue