From 67c8370f504562b7f35b5f4978ff31388e758192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Thu, 30 May 2002 12:32:17 +0000 Subject: [PATCH] add __alpha__ as supported cpu git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4298 a592a061-630c-0410-9148-cb99ea01b6c8 --- boost/boost/detail/limits.hpp | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/boost/boost/detail/limits.hpp b/boost/boost/detail/limits.hpp index 91d4d669fa..af0f78df91 100644 --- a/boost/boost/detail/limits.hpp +++ b/boost/boost/detail/limits.hpp @@ -51,7 +51,7 @@ // bit layout, but about floating-point NaN (etc.) bit patterns. #if defined(__sparc) || defined(__sparc__) || defined(__powerpc__) || defined(__ppc__) || defined(__hppa) || defined(_MIPSEB) #define BOOST_BIG_ENDIAN -#elif defined(__i386__) +#elif defined(__i386__) || defined(__alpha__) #define BOOST_LITTLE_ENDIAN #else #error The file boost/detail/limits.hpp needs to be set up for your CPU type. @@ -159,7 +159,7 @@ template -class _Integer_limits : public _Numeric_limits_base<_Int> +class _Integer_limits : public _Numeric_limits_base<_Int> { public: BOOST_STL_DECLARE_LIMITS_MEMBER(bool, is_specialized, true); @@ -170,9 +170,9 @@ public: BOOST_STL_DECLARE_LIMITS_MEMBER(int, digits, (__idigits < 0) ? (int)(sizeof(_Int) * CHAR_BIT) - - (__imin == 0 ? 0 : 1) + - (__imin == 0 ? 0 : 1) : __idigits); - BOOST_STL_DECLARE_LIMITS_MEMBER(int, digits10, (digits * 301) / 1000); + BOOST_STL_DECLARE_LIMITS_MEMBER(int, digits10, (digits * 301) / 1000); // log 2 = 0.301029995664... BOOST_STL_DECLARE_LIMITS_MEMBER(bool, is_signed, __imin != 0); @@ -192,7 +192,7 @@ public: // sizeof(long double) == 16 const unsigned int _S_word[4] = { Word, 0, 0, 0 }; return *reinterpret_cast(&_S_word); - } + } }; #else @@ -205,7 +205,7 @@ public: return *reinterpret_cast( reinterpret_cast(&_S_word)+16- (sizeof(Number) == 12 ? 10 : sizeof(Number))); - } + } }; #endif @@ -244,7 +244,7 @@ public: denorm_indeterminate); BOOST_STL_DECLARE_LIMITS_MEMBER(bool, has_denorm_loss, false); - + static __number infinity() throw() { return float_helper<__number, __InfinityWord>::get_word(); } @@ -267,7 +267,7 @@ public: // The unspecialized class. -template +template class numeric_limits : public _Numeric_limits_base {}; // Specializations for all built-in integral types. @@ -356,7 +356,7 @@ class numeric_limits #if !defined(LONGLONG_MIN) # define LONGLONG_MIN (-LONGLONG_MAX - 1) -#endif +#endif template<> class numeric_limits @@ -373,7 +373,7 @@ class numeric_limits // Specializations for all built-in floating-point type. template<> class numeric_limits - : public _Floating_limits class numeric_limits - : public _Floating_limits class numeric_limits - : public _Floating_limits