[Bf-blender-cvs] [fc982c102bb] master: Cleanup: Remove FMA3 Disable for msvc

Lazydodo noreply at git.blender.org
Thu Aug 1 04:18:51 CEST 2019


Commit: fc982c102bb7af6db9c30463f961ead88b2e4356
Author: Lazydodo
Date:   Wed Jul 31 20:18:44 2019 -0600
Branches: master
https://developer.blender.org/rBfc982c102bb7af6db9c30463f961ead88b2e4356

Cleanup: Remove FMA3 Disable for msvc

We no longer build with or support msvc2013, so this hack can be removed.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D5298

===================================================================

M	source/creator/creator.c

===================================================================

diff --git a/source/creator/creator.c b/source/creator/creator.c
index b257564519a..afcde70670a 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -25,9 +25,6 @@
 #include <string.h>
 
 #ifdef WIN32
-#  if defined(_MSC_VER) && defined(_M_X64)
-#    include <math.h> /* needed for _set_FMA3_enable */
-#  endif
 #  include <windows.h>
 #  include "utfconv.h"
 #endif
@@ -237,12 +234,6 @@ int main(int argc,
   _putenv_s("OMP_WAIT_POLICY", "PASSIVE");
 #  endif
 
-  /* FMA3 support in the 2013 CRT is broken on Vista and Windows 7 RTM
-   * (fixed in SP1). Just disable it. */
-#  if defined(_MSC_VER) && defined(_M_X64)
-  _set_FMA3_enable(0);
-#  endif
-
   /* Win32 Unicode Args */
   /* NOTE: cannot use guardedalloc malloc here, as it's not yet initialized
    *       (it depends on the args passed in, which is what we're getting here!)



More information about the Bf-blender-cvs mailing list