diff options
Diffstat (limited to '3rdparty/assimp/code/BoostWorkaround/boost/math/common_factor_rt.hpp')
-rw-r--r-- | 3rdparty/assimp/code/BoostWorkaround/boost/math/common_factor_rt.hpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/3rdparty/assimp/code/BoostWorkaround/boost/math/common_factor_rt.hpp b/3rdparty/assimp/code/BoostWorkaround/boost/math/common_factor_rt.hpp deleted file mode 100644 index 76dd9b10..00000000 --- a/3rdparty/assimp/code/BoostWorkaround/boost/math/common_factor_rt.hpp +++ /dev/null @@ -1,37 +0,0 @@ - - -#ifndef BOOST_MATH_COMMON_FACTOR_RT_HPP -#define BOOST_MATH_COMMON_FACTOR_RT_HPP - - -namespace boost { -namespace math { - -// TODO: use binary GCD for unsigned integers .... -template < typename IntegerType > -IntegerType gcd( IntegerType a, IntegerType b ) -{ - const IntegerType zero = (IntegerType)0; - while ( true ) - { - if ( a == zero ) - return b; - b %= a; - - if ( b == zero ) - return a; - a %= b; - } -} - -template < typename IntegerType > -IntegerType lcm( IntegerType a, IntegerType b ) -{ - const IntegerType t = gcd (a,b); - if (!t)return t; - return a / t * b; -} - -}} - -#endif |