Do not unmask "Invalid" FP exceptions

This commit removes code that enables "Invalid" FP exceptions. Its
intent is unclear since it predates the git history of OpenSpades, but
it's probably for debugging.

Fixes #784.
This commit is contained in:
yvt 2018-10-28 17:51:17 +09:00
parent ac4799abaf
commit cafb664e8e

View File

@ -45,16 +45,6 @@ namespace spades {
void Run() override {
SPADES_MARK_FUNCTION();
// Enable FPE
#if 1
#ifdef __APPLE__
short fpflags = 0x1332; // Default FP flags, change this however you want.
__asm__("fnclex\n\tfldcw %0\n\t" : "=m"(fpflags));
_MM_SET_EXCEPTION_MASK(_MM_GET_EXCEPTION_MASK() & ~_MM_MASK_INVALID);
#endif
#endif
renderer->UpdateDirtyChunks();
done = true;