summaryrefslogtreecommitdiff
path: root/boost/interprocess/detail/math_functions.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/interprocess/detail/math_functions.hpp')
-rw-r--r--boost/interprocess/detail/math_functions.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/boost/interprocess/detail/math_functions.hpp b/boost/interprocess/detail/math_functions.hpp
index 2fc457c683..3826f161e2 100644
--- a/boost/interprocess/detail/math_functions.hpp
+++ b/boost/interprocess/detail/math_functions.hpp
@@ -1,7 +1,7 @@
//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Stephen Cleary 2000.
-// (C) Copyright Ion Gaztanaga 2007-2011.
+// (C) Copyright Ion Gaztanaga 2007-2012.
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
@@ -16,6 +16,10 @@
#ifndef BOOST_INTERPROCESS_DETAIL_MATH_FUNCTIONS_HPP
#define BOOST_INTERPROCESS_DETAIL_MATH_FUNCTIONS_HPP
+#if defined(_MSC_VER)
+# pragma once
+#endif
+
#include <climits>
#include <boost/static_assert.hpp>
@@ -93,7 +97,7 @@ inline std::size_t floor_log2 (std::size_t x)
std::size_t n = x;
std::size_t log2 = 0;
-
+
for(std::size_t shift = Bits >> 1; shift; shift >>= 1){
std::size_t tmp = n >> shift;
if (tmp)