I'm not really able with compiler/sse, but for some purpose I need to check if the denormals numbers are deactivated (for optimizing performances).
How do I check if my compiler has those flags (FTZ
and DMZ
) on/off? I'm on Visual Studio 2015 and Windows 10 Professional.
Theoretically is in the x86intrin.h
? I can't find it.
EDIT
Within C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\crt\src\linkopts\loosefpmath.cpp
I have this code:
//
// loosefpmath.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// A link option that sets the DAZ and FTZ bits for SSE2 architectures.
//
#include <float.h>
extern "C" void __CRTDECL _initialize_denormal_control()
{
_controlfp_s(nullptr, _DN_FLUSH, _MCW_DN);
}