diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2011-09-21 11:23:11 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2011-09-21 11:23:11 +0000 |
commit | fd1e62c239e732536345e8c6102669923455dd89 (patch) | |
tree | 4d0de25de9610cc6e1ef712dfcefe8f734480477 /libstdc++-v3/include/std | |
parent | 66d9474406bab72469beb3075dcad24c247d6905 (diff) | |
download | gcc-fd1e62c239e732536345e8c6102669923455dd89.tar.gz |
limits.cc: Replace everywhere __int128_t -> __int128, and __uint128_t -> unsigned __int128.
2011-09-21 Paolo Carlini <paolo.carlini@oracle.com>
* src/limits.cc: Replace everywhere __int128_t -> __int128, and
__uint128_t -> unsigned __int128.
* include/std/type_traits: Likewise.
* include/std/limits: Likewise.
* testsuite/18_support/numeric_limits/dr559.cc: Likewise.
* testsuite/18_support/numeric_limits/lowest.cc: Likewise.
* testsuite/18_support/numeric_limits/40856.cc: Likewise.
* testsuite/18_support/numeric_limits/max_digits10.cc: Likewise.
* testsuite/util/testsuite_common_types.h: Likewise.
* testsuite/20_util/make_signed/requirements/typedefs-1.cc: Likewise.
* testsuite/20_util/make_signed/requirements/typedefs-2.cc: Likewise.
* testsuite/20_util/is_floating_point/value.cc: Likewise.
* testsuite/20_util/make_unsigned/requirements/typedefs-1.cc: Likewise.
* testsuite/20_util/make_unsigned/requirements/typedefs-2.cc: Likewise.
* testsuite/20_util/is_signed/value.cc: Likewise.
* testsuite/20_util/is_unsigned/value.cc: Likewise.
* testsuite/20_util/is_integral/value.cc: Likewise.
* config/abi/pre/gnu.ver: Likewise.
* acinclude.m4: Likewise.
* configure: Regenerate.
* config.h.in: Likewise.
From-SVN: r179044
Diffstat (limited to 'libstdc++-v3/include/std')
-rw-r--r-- | libstdc++-v3/include/std/limits | 74 | ||||
-rw-r--r-- | libstdc++-v3/include/std/type_traits | 12 |
2 files changed, 43 insertions, 43 deletions
diff --git a/libstdc++-v3/include/std/limits b/libstdc++-v3/include/std/limits index fe6ee3da6ee..67a5af4d804 100644 --- a/libstdc++-v3/include/std/limits +++ b/libstdc++-v3/include/std/limits @@ -1400,27 +1400,27 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION }; #if !defined(__STRICT_ANSI__) && defined(_GLIBCXX_USE_INT128) - /// numeric_limits<__int128_t> specialization. + /// numeric_limits<__int128> specialization. template<> - struct numeric_limits<__int128_t> + struct numeric_limits<__int128> { static _GLIBCXX_USE_CONSTEXPR bool is_specialized = true; - static _GLIBCXX_CONSTEXPR __int128_t - min() _GLIBCXX_USE_NOEXCEPT { return __glibcxx_min (__int128_t); } + static _GLIBCXX_CONSTEXPR __int128 + min() _GLIBCXX_USE_NOEXCEPT { return __glibcxx_min (__int128); } - static _GLIBCXX_CONSTEXPR __int128_t - max() _GLIBCXX_USE_NOEXCEPT { return __glibcxx_max (__int128_t); } + static _GLIBCXX_CONSTEXPR __int128 + max() _GLIBCXX_USE_NOEXCEPT { return __glibcxx_max (__int128); } #ifdef __GXX_EXPERIMENTAL_CXX0X__ - static constexpr __int128_t + static constexpr __int128 lowest() noexcept { return min(); } #endif static _GLIBCXX_USE_CONSTEXPR int digits - = __glibcxx_digits (__int128_t); + = __glibcxx_digits (__int128); static _GLIBCXX_USE_CONSTEXPR int digits10 - = __glibcxx_digits10 (__int128_t); + = __glibcxx_digits10 (__int128); #ifdef __GXX_EXPERIMENTAL_CXX0X__ static constexpr int max_digits10 = 0; #endif @@ -1429,10 +1429,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION static _GLIBCXX_USE_CONSTEXPR bool is_exact = true; static _GLIBCXX_USE_CONSTEXPR int radix = 2; - static _GLIBCXX_CONSTEXPR __int128_t + static _GLIBCXX_CONSTEXPR __int128 epsilon() _GLIBCXX_USE_NOEXCEPT { return 0; } - static _GLIBCXX_CONSTEXPR __int128_t + static _GLIBCXX_CONSTEXPR __int128 round_error() _GLIBCXX_USE_NOEXCEPT { return 0; } static _GLIBCXX_USE_CONSTEXPR int min_exponent = 0; @@ -1447,21 +1447,21 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION = denorm_absent; static _GLIBCXX_USE_CONSTEXPR bool has_denorm_loss = false; - static _GLIBCXX_CONSTEXPR __int128_t + static _GLIBCXX_CONSTEXPR __int128 infinity() _GLIBCXX_USE_NOEXCEPT - { return static_cast<__int128_t>(0); } + { return static_cast<__int128>(0); } - static _GLIBCXX_CONSTEXPR __int128_t + static _GLIBCXX_CONSTEXPR __int128 quiet_NaN() _GLIBCXX_USE_NOEXCEPT - { return static_cast<__int128_t>(0); } + { return static_cast<__int128>(0); } - static _GLIBCXX_CONSTEXPR __int128_t + static _GLIBCXX_CONSTEXPR __int128 signaling_NaN() _GLIBCXX_USE_NOEXCEPT - { return static_cast<__int128_t>(0); } + { return static_cast<__int128>(0); } - static _GLIBCXX_CONSTEXPR __int128_t + static _GLIBCXX_CONSTEXPR __int128 denorm_min() _GLIBCXX_USE_NOEXCEPT - { return static_cast<__int128_t>(0); } + { return static_cast<__int128>(0); } static _GLIBCXX_USE_CONSTEXPR bool is_iec559 = false; static _GLIBCXX_USE_CONSTEXPR bool is_bounded = true; @@ -1474,27 +1474,27 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION = round_toward_zero; }; - /// numeric_limits<__uint128_t> specialization. + /// numeric_limits<unsigned __int128> specialization. template<> - struct numeric_limits<__uint128_t> + struct numeric_limits<unsigned __int128> { static _GLIBCXX_USE_CONSTEXPR bool is_specialized = true; - static _GLIBCXX_CONSTEXPR __uint128_t + static _GLIBCXX_CONSTEXPR unsigned __int128 min() _GLIBCXX_USE_NOEXCEPT { return 0; } - static _GLIBCXX_CONSTEXPR __uint128_t - max() _GLIBCXX_USE_NOEXCEPT { return __glibcxx_max (__uint128_t); } + static _GLIBCXX_CONSTEXPR unsigned __int128 + max() _GLIBCXX_USE_NOEXCEPT { return __glibcxx_max (unsigned __int128); } #ifdef __GXX_EXPERIMENTAL_CXX0X__ - static constexpr __uint128_t + static constexpr unsigned __int128 lowest() noexcept { return min(); } #endif static _GLIBCXX_USE_CONSTEXPR int digits - = __glibcxx_digits (__uint128_t); + = __glibcxx_digits (unsigned __int128); static _GLIBCXX_USE_CONSTEXPR int digits10 - = __glibcxx_digits10 (__uint128_t); + = __glibcxx_digits10 (unsigned __int128); #ifdef __GXX_EXPERIMENTAL_CXX0X__ static constexpr int max_digits10 = 0; #endif @@ -1503,10 +1503,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION static _GLIBCXX_USE_CONSTEXPR bool is_exact = true; static _GLIBCXX_USE_CONSTEXPR int radix = 2; - static _GLIBCXX_CONSTEXPR __uint128_t + static _GLIBCXX_CONSTEXPR unsigned __int128 epsilon() _GLIBCXX_USE_NOEXCEPT { return 0; } - static _GLIBCXX_CONSTEXPR __uint128_t + static _GLIBCXX_CONSTEXPR unsigned __int128 round_error() _GLIBCXX_USE_NOEXCEPT { return 0; } static _GLIBCXX_USE_CONSTEXPR int min_exponent = 0; @@ -1521,21 +1521,21 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION = denorm_absent; static _GLIBCXX_USE_CONSTEXPR bool has_denorm_loss = false; - static _GLIBCXX_CONSTEXPR __uint128_t + static _GLIBCXX_CONSTEXPR unsigned __int128 infinity() _GLIBCXX_USE_NOEXCEPT - { return static_cast<__uint128_t>(0); } + { return static_cast<unsigned __int128>(0); } - static _GLIBCXX_CONSTEXPR __uint128_t + static _GLIBCXX_CONSTEXPR unsigned __int128 quiet_NaN() _GLIBCXX_USE_NOEXCEPT - { return static_cast<__uint128_t>(0); } + { return static_cast<unsigned __int128>(0); } - static _GLIBCXX_CONSTEXPR __uint128_t + static _GLIBCXX_CONSTEXPR unsigned __int128 signaling_NaN() _GLIBCXX_USE_NOEXCEPT - { return static_cast<__uint128_t>(0); } + { return static_cast<unsigned __int128>(0); } - static _GLIBCXX_CONSTEXPR __uint128_t + static _GLIBCXX_CONSTEXPR unsigned __int128 denorm_min() _GLIBCXX_USE_NOEXCEPT - { return static_cast<__uint128_t>(0); } + { return static_cast<unsigned __int128>(0); } static _GLIBCXX_USE_CONSTEXPR bool is_iec559 = false; static _GLIBCXX_USE_CONSTEXPR bool is_bounded = true; diff --git a/libstdc++-v3/include/std/type_traits b/libstdc++-v3/include/std/type_traits index a03fb34e26e..a0208590bb5 100644 --- a/libstdc++-v3/include/std/type_traits +++ b/libstdc++-v3/include/std/type_traits @@ -215,11 +215,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION #if !defined(__STRICT_ANSI__) && defined(_GLIBCXX_USE_INT128) template<> - struct __is_integral_helper<__int128_t> + struct __is_integral_helper<__int128> : public true_type { }; template<> - struct __is_integral_helper<__uint128_t> + struct __is_integral_helper<unsigned __int128> : public true_type { }; #endif @@ -1416,8 +1416,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION #if !defined(__STRICT_ANSI__) && defined(_GLIBCXX_USE_INT128) template<> - struct __make_unsigned<__int128_t> - { typedef __uint128_t __type; }; + struct __make_unsigned<__int128> + { typedef unsigned __int128 __type; }; #endif // Select between integral and enum: not possible to be both. @@ -1498,8 +1498,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION #if !defined(__STRICT_ANSI__) && defined(_GLIBCXX_USE_INT128) template<> - struct __make_signed<__uint128_t> - { typedef __int128_t __type; }; + struct __make_signed<unsigned __int128> + { typedef __int128 __type; }; #endif // Select between integral and enum: not possible to be both. |