Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70061 - trunk/boost/random/detail
From: steven_at_[hidden]
Date: 2011-03-17 11:45:13


Author: steven_watanabe
Date: 2011-03-17 11:45:12 EDT (Thu, 17 Mar 2011)
New Revision: 70061
URL: http://svn.boost.org/trac/boost/changeset/70061

Log:
Add missing inline
Text files modified:
   trunk/boost/random/detail/large_arithmetic.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/boost/random/detail/large_arithmetic.hpp
==============================================================================
--- trunk/boost/random/detail/large_arithmetic.hpp (original)
+++ trunk/boost/random/detail/large_arithmetic.hpp 2011-03-17 11:45:12 EDT (Thu, 17 Mar 2011)
@@ -29,7 +29,7 @@
     boost::uintmax_t remainder;
 };
 
-div_t muldivmod(boost::uintmax_t a, boost::uintmax_t b, boost::uintmax_t m)
+inline div_t muldivmod(boost::uintmax_t a, boost::uintmax_t b, boost::uintmax_t m)
 {
     static const int bits =
         ::std::numeric_limits< ::boost::uintmax_t>::digits / 2;
@@ -107,10 +107,10 @@
     return result;
 }
 
-boost::uintmax_t muldiv(boost::uintmax_t a, boost::uintmax_t b, boost::uintmax_t m)
+inline boost::uintmax_t muldiv(boost::uintmax_t a, boost::uintmax_t b, boost::uintmax_t m)
 { return detail::muldivmod(a, b, m).quotient; }
 
-boost::uintmax_t mulmod(boost::uintmax_t a, boost::uintmax_t b, boost::uintmax_t m)
+inline boost::uintmax_t mulmod(boost::uintmax_t a, boost::uintmax_t b, boost::uintmax_t m)
 { return detail::muldivmod(a, b, m).remainder; }
 
 } // namespace detail


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