From 83e2b1bbb0b771efadea41e5ab983cb4d4729fce Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Fri, 23 Nov 2018 01:53:37 +0000 Subject: [PATCH] Revert VS2013 workaround Introduced in https://github.com/sass/libsass/pull/2308, no longer necessary with VS2015. --- src/util.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/util.cpp b/src/util.cpp index 60f69ab766..f5cbb0dafb 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -9,22 +9,11 @@ #include #include -#if defined(_MSC_VER) && _MSC_VER >= 1800 && _MSC_VER < 1900 && defined(_M_X64) -#include -#endif namespace Sass { double round(double val, size_t precision) { - // Disable FMA3-optimized implementation when compiling with VS2013 for x64 targets - // See https://github.com/sass/node-sass/issues/1854 for details - // FIXME: Remove this workaround when we switch to VS2015+ - #if defined(_MSC_VER) && _MSC_VER >= 1800 && _MSC_VER < 1900 && defined(_M_X64) - static std::once_flag flag; - std::call_once(flag, []() { _set_FMA3_enable(0); }); - #endif - // https://github.com/sass/sass/commit/4e3e1d5684cc29073a507578fc977434ff488c93 if (fmod(val, 1) - 0.5 > - std::pow(0.1, precision + 1)) return std::ceil(val); else if (fmod(val, 1) - 0.5 > std::pow(0.1, precision)) return std::floor(val);