Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84191 - trunk/libs/log/src
From: andrey.semashev_at_[hidden]
Date: 2013-05-08 14:40:39


Author: andysem
Date: 2013-05-08 14:40:38 EDT (Wed, 08 May 2013)
New Revision: 84191
URL: http://svn.boost.org/trac/boost/changeset/84191

Log:
Fixed compilation with compilers not supporting AVX2.
Text files modified:
   trunk/libs/log/src/dump.cpp | 2 ++
   1 files changed, 2 insertions(+), 0 deletions(-)

Modified: trunk/libs/log/src/dump.cpp
==============================================================================
--- trunk/libs/log/src/dump.cpp (original)
+++ trunk/libs/log/src/dump.cpp 2013-05-08 14:40:38 EDT (Wed, 08 May 2013)
@@ -136,6 +136,7 @@
             if (ecx & (1u << 9))
                 enable_ssse3();
 
+#if defined(BOOST_LOG_USE_AVX2)
             if (max_cpuid_function >= 7)
             {
                 // To check for AVX2 availability we also need to verify that OS supports it
@@ -182,6 +183,7 @@
                     }
                 }
             }
+#endif // defined(BOOST_LOG_USE_AVX2)
         }
     }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk