|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r84975 - trunk/boost/multiprecision/detail
From: john_at_[hidden]
Date: 2013-07-07 12:49:36
Author: johnmaddock
Date: 2013-07-07 12:49:36 EDT (Sun, 07 Jul 2013)
New Revision: 84975
URL: http://svn.boost.org/trac/boost/changeset/84975
Log:
enable intrinsics for more compilers
Text files modified:
trunk/boost/multiprecision/detail/bitscan.hpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Modified: trunk/boost/multiprecision/detail/bitscan.hpp
==============================================================================
--- trunk/boost/multiprecision/detail/bitscan.hpp Sun Jul 7 12:35:42 2013 (r84974)
+++ trunk/boost/multiprecision/detail/bitscan.hpp 2013-07-07 12:49:36 EDT (Sun, 07 Jul 2013) (r84975)
@@ -104,7 +104,8 @@
return find_msb(static_cast<ui_type>(mask), tag_type());
}
-#elif defined(BOOST_GCC)
+#elif defined(BOOST_GCC) || defined(__clang__) || (defined(BOOST_INTEL) && defined(__GNUC__))
+
BOOST_FORCEINLINE unsigned find_lsb(unsigned mask, mpl::int_<1> const&)
{
return __builtin_ctz(mask);
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