diff --git a/libcxx/test/libcxx/algorithms/half_positive.pass.cpp b/libcxx/test/libcxx/algorithms/half_positive.pass.cpp --- a/libcxx/test/libcxx/algorithms/half_positive.pass.cpp +++ b/libcxx/test/libcxx/algorithms/half_positive.pass.cpp @@ -36,9 +36,9 @@ assert(test()); assert((test, int>())); assert(test()); -#if !defined(_LIBCPP_HAS_NO_INT128) +#if !defined(TEST_HAS_NO_INT128) assert(test<__int128_t>()); -#endif // !defined(_LIBCPP_HAS_NO_INT128) +#endif // !defined(TEST_HAS_NO_INT128) } #if TEST_STD_VER >= 11 @@ -47,9 +47,9 @@ static_assert(test(), ""); static_assert(test(), ""); static_assert(test(), ""); -#if !defined(_LIBCPP_HAS_NO_INT128) +#if !defined(TEST_HAS_NO_INT128) static_assert(test<__int128_t>(), ""); -#endif // !defined(_LIBCPP_HAS_NO_INT128) +#endif // !defined(TEST_HAS_NO_INT128) } #endif // TEST_STD_VER >= 11 diff --git a/libcxx/test/libcxx/numerics/numeric.ops/midpoint.integer.pass.cpp b/libcxx/test/libcxx/numerics/numeric.ops/midpoint.integer.pass.cpp --- a/libcxx/test/libcxx/numerics/numeric.ops/midpoint.integer.pass.cpp +++ b/libcxx/test/libcxx/numerics/numeric.ops/midpoint.integer.pass.cpp @@ -53,7 +53,7 @@ test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t>(); test<__uint128_t>(); #endif diff --git a/libcxx/test/libcxx/type_traits/convert_to_integral.pass.cpp b/libcxx/test/libcxx/type_traits/convert_to_integral.pass.cpp --- a/libcxx/test/libcxx/type_traits/convert_to_integral.pass.cpp +++ b/libcxx/test/libcxx/type_traits/convert_to_integral.pass.cpp @@ -107,7 +107,7 @@ check_integral_types(); check_integral_types(); check_integral_types(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 check_integral_types<__int128_t, __int128_t>(); check_integral_types<__uint128_t, __uint128_t>(); #endif diff --git a/libcxx/test/libcxx/utilities/format/format.arguments/format.arg/visit_format_arg.pass.cpp b/libcxx/test/libcxx/utilities/format/format.arguments/format.arg/visit_format_arg.pass.cpp --- a/libcxx/test/libcxx/utilities/format/format.arguments/format.arg/visit_format_arg.pass.cpp +++ b/libcxx/test/libcxx/utilities/format/format.arguments/format.arg/visit_format_arg.pass.cpp @@ -181,7 +181,7 @@ test(std::numeric_limits::max()); test(std::numeric_limits::max()); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test(std::numeric_limits<__int128_t>::min()); test(std::numeric_limits::min()); test(std::numeric_limits::min()); @@ -242,7 +242,7 @@ test( std::numeric_limits::max()); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test(0); test( std::numeric_limits::max()); diff --git a/libcxx/test/libcxx/utilities/format/format.arguments/format.args/get.pass.cpp b/libcxx/test/libcxx/utilities/format/format.arguments/format.args/get.pass.cpp --- a/libcxx/test/libcxx/utilities/format/format.arguments/format.args/get.pass.cpp +++ b/libcxx/test/libcxx/utilities/format/format.arguments/format.args/get.pass.cpp @@ -172,7 +172,7 @@ test(std::numeric_limits::max()); test(std::numeric_limits::max()); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test(std::numeric_limits<__int128_t>::min()); test(std::numeric_limits::min()); test(std::numeric_limits::min()); @@ -233,7 +233,7 @@ test( std::numeric_limits::max()); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test(0); test( std::numeric_limits::max()); diff --git a/libcxx/test/std/concepts/concepts.lang/concept.common/common_with.compile.pass.cpp b/libcxx/test/std/concepts/concepts.lang/concept.common/common_with.compile.pass.cpp --- a/libcxx/test/std/concepts/concepts.lang/concept.common/common_with.compile.pass.cpp +++ b/libcxx/test/std/concepts/concepts.lang/concept.common/common_with.compile.pass.cpp @@ -60,7 +60,7 @@ static_assert(CheckCommonWith()); static_assert(CheckCommonWith()); static_assert(CheckCommonWith()); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(CheckCommonWith()); #endif static_assert(CheckCommonWith()); diff --git a/libcxx/test/std/concepts/concepts.lang/concept.commonref/common_reference.compile.pass.cpp b/libcxx/test/std/concepts/concepts.lang/concept.commonref/common_reference.compile.pass.cpp --- a/libcxx/test/std/concepts/concepts.lang/concept.commonref/common_reference.compile.pass.cpp +++ b/libcxx/test/std/concepts/concepts.lang/concept.commonref/common_reference.compile.pass.cpp @@ -54,7 +54,7 @@ static_assert(CheckCommonReferenceWith()); static_assert(CheckCommonReferenceWith()); static_assert(CheckCommonReferenceWith()); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(CheckCommonReferenceWith()); #endif static_assert(CheckCommonReferenceWith()); diff --git a/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/integral.pass.cpp b/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/integral.pass.cpp --- a/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/integral.pass.cpp +++ b/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/integral.pass.cpp @@ -60,7 +60,7 @@ static_assert(CheckIntegralQualifiers()); // extended integers -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(CheckIntegralQualifiers<__int128_t>()); static_assert(CheckIntegralQualifiers<__uint128_t>()); #endif diff --git a/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/signed_integral.pass.cpp b/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/signed_integral.pass.cpp --- a/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/signed_integral.pass.cpp +++ b/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/signed_integral.pass.cpp @@ -74,7 +74,7 @@ static_assert(!CheckSignedIntegralQualifiers()); // extended integers -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(CheckSignedIntegralQualifiers<__int128_t>()); static_assert(!CheckSignedIntegralQualifiers<__uint128_t>()); #endif diff --git a/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/unsigned_integral.pass.cpp b/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/unsigned_integral.pass.cpp --- a/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/unsigned_integral.pass.cpp +++ b/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/unsigned_integral.pass.cpp @@ -69,7 +69,7 @@ !std::is_signed_v); // extended integers -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(CheckUnsignedIntegralQualifiers<__uint128_t>()); static_assert(!CheckUnsignedIntegralQualifiers<__int128_t>()); #endif diff --git a/libcxx/test/std/language.support/cmp/cmp.concept/three_way_comparable.compile.pass.cpp b/libcxx/test/std/language.support/cmp/cmp.concept/three_way_comparable.compile.pass.cpp --- a/libcxx/test/std/language.support/cmp/cmp.concept/three_way_comparable.compile.pass.cpp +++ b/libcxx/test/std/language.support/cmp/cmp.concept/three_way_comparable.compile.pass.cpp @@ -34,7 +34,7 @@ static_assert(std::three_way_comparable); static_assert(std::three_way_comparable); #endif -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(std::three_way_comparable<__int128_t const&>); static_assert(std::three_way_comparable<__uint128_t const&>); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/is_specialized.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/is_specialized.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/is_specialized.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/is_specialized.pass.cpp @@ -63,7 +63,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t>(); test<__uint128_t>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/const_data_members.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/const_data_members.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/const_data_members.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/const_data_members.pass.cpp @@ -138,7 +138,7 @@ TEST_NUMERIC_LIMITS(volatile long) TEST_NUMERIC_LIMITS(const volatile long) -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 TEST_NUMERIC_LIMITS(__int128_t) TEST_NUMERIC_LIMITS(const __int128_t) TEST_NUMERIC_LIMITS(volatile __int128_t) @@ -175,7 +175,7 @@ TEST_NUMERIC_LIMITS(volatile unsigned long long) TEST_NUMERIC_LIMITS(const volatile unsigned long long) -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 TEST_NUMERIC_LIMITS(__uint128_t) TEST_NUMERIC_LIMITS(const __uint128_t) TEST_NUMERIC_LIMITS(volatile __uint128_t) diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/denorm_min.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/denorm_min.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/denorm_min.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/denorm_min.pass.cpp @@ -48,7 +48,7 @@ test(0); test(0); test(0); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t>(0); test<__uint128_t>(0); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/digits.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/digits.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/digits.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/digits.pass.cpp @@ -47,7 +47,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t, 127>(); test<__uint128_t, 128>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/digits10.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/digits10.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/digits10.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/digits10.pass.cpp @@ -51,7 +51,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t, 38>(); test<__uint128_t, 38>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/epsilon.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/epsilon.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/epsilon.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/epsilon.pass.cpp @@ -48,7 +48,7 @@ test(0); test(0); test(0); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t>(0); test<__uint128_t>(0); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_denorm.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_denorm.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_denorm.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_denorm.pass.cpp @@ -46,7 +46,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t, std::denorm_absent>(); test<__uint128_t, std::denorm_absent>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_denorm_loss.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_denorm_loss.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_denorm_loss.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_denorm_loss.pass.cpp @@ -46,7 +46,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t, false>(); test<__uint128_t, false>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_infinity.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_infinity.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_infinity.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_infinity.pass.cpp @@ -46,7 +46,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t, false>(); test<__uint128_t, false>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_quiet_NaN.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_quiet_NaN.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_quiet_NaN.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_quiet_NaN.pass.cpp @@ -46,7 +46,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t, false>(); test<__uint128_t, false>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_signaling_NaN.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_signaling_NaN.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_signaling_NaN.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_signaling_NaN.pass.cpp @@ -46,7 +46,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t, false>(); test<__uint128_t, false>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/infinity.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/infinity.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/infinity.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/infinity.pass.cpp @@ -50,7 +50,7 @@ test(0); test(0); test(0); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t>(0); test<__uint128_t>(0); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_bounded.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_bounded.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_bounded.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_bounded.pass.cpp @@ -46,7 +46,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t, true>(); test<__uint128_t, true>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_exact.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_exact.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_exact.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_exact.pass.cpp @@ -46,7 +46,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t, true>(); test<__uint128_t, true>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_iec559.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_iec559.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_iec559.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_iec559.pass.cpp @@ -46,7 +46,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t, false>(); test<__uint128_t, false>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_integer.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_integer.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_integer.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_integer.pass.cpp @@ -46,7 +46,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t, true>(); test<__uint128_t, true>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_modulo.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_modulo.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_modulo.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_modulo.pass.cpp @@ -46,7 +46,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t, false>(); test<__uint128_t, true>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_signed.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_signed.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_signed.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_signed.pass.cpp @@ -46,7 +46,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t, true>(); test<__uint128_t, false>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/lowest.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/lowest.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/lowest.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/lowest.pass.cpp @@ -59,7 +59,7 @@ test(0); test(LLONG_MIN); test(0); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t>(-__int128_t(__uint128_t(-1)/2) - 1); test<__uint128_t>(0); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max.pass.cpp @@ -59,7 +59,7 @@ test(ULONG_MAX); test(LLONG_MAX); test(ULLONG_MAX); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t>(__int128_t(__uint128_t(-1)/2)); test<__uint128_t>(__uint128_t(-1)); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_digits10.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_digits10.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_digits10.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_digits10.pass.cpp @@ -47,7 +47,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t, 0>(); test<__uint128_t, 0>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_exponent.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_exponent.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_exponent.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_exponent.pass.cpp @@ -47,7 +47,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t, 0>(); test<__uint128_t, 0>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_exponent10.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_exponent10.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_exponent10.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_exponent10.pass.cpp @@ -47,7 +47,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t, 0>(); test<__uint128_t, 0>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min.pass.cpp @@ -59,7 +59,7 @@ test(0); test(LLONG_MIN); test(0); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t>(-__int128_t(__uint128_t(-1)/2) - 1); test<__uint128_t>(0); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min_exponent.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min_exponent.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min_exponent.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min_exponent.pass.cpp @@ -47,7 +47,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t, 0>(); test<__uint128_t, 0>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min_exponent10.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min_exponent10.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min_exponent10.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min_exponent10.pass.cpp @@ -47,7 +47,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t, 0>(); test<__uint128_t, 0>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/quiet_NaN.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/quiet_NaN.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/quiet_NaN.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/quiet_NaN.pass.cpp @@ -67,7 +67,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t>(); test<__uint128_t>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/radix.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/radix.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/radix.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/radix.pass.cpp @@ -47,7 +47,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t, 2>(); test<__uint128_t, 2>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/round_error.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/round_error.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/round_error.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/round_error.pass.cpp @@ -48,7 +48,7 @@ test(0); test(0); test(0); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t>(0); test<__uint128_t>(0); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/round_style.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/round_style.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/round_style.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/round_style.pass.cpp @@ -46,7 +46,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t, std::round_toward_zero>(); test<__uint128_t, std::round_toward_zero>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/signaling_NaN.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/signaling_NaN.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/signaling_NaN.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/signaling_NaN.pass.cpp @@ -67,7 +67,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t>(); test<__uint128_t>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/tinyness_before.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/tinyness_before.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/tinyness_before.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/tinyness_before.pass.cpp @@ -46,7 +46,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t, false>(); test<__uint128_t, false>(); #endif diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/traps.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/traps.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/traps.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/traps.pass.cpp @@ -53,7 +53,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t, integral_types_trap>(); test<__uint128_t, integral_types_trap>(); #endif diff --git a/libcxx/test/std/numerics/bit/bit.pow.two/bit_ceil.pass.cpp b/libcxx/test/std/numerics/bit/bit.pow.two/bit_ceil.pass.cpp --- a/libcxx/test/std/numerics/bit/bit.pow.two/bit_ceil.pass.cpp +++ b/libcxx/test/std/numerics/bit/bit.pow.two/bit_ceil.pass.cpp @@ -53,7 +53,7 @@ assert(std::bit_ceil(T(68)) == T(128)); assert(std::bit_ceil(T(69)) == T(128)); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 if constexpr (std::is_same_v) { T val = 168; T ceil = 256; @@ -80,7 +80,7 @@ static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(!std::is_invocable_v); #endif @@ -112,7 +112,7 @@ static_assert(test()); static_assert(test()); static_assert(test()); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(test<__uint128_t>()); #endif static_assert(test()); @@ -128,7 +128,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__uint128_t>(); #endif test(); diff --git a/libcxx/test/std/numerics/bit/bit.pow.two/bit_floor.pass.cpp b/libcxx/test/std/numerics/bit/bit.pow.two/bit_floor.pass.cpp --- a/libcxx/test/std/numerics/bit/bit.pow.two/bit_floor.pass.cpp +++ b/libcxx/test/std/numerics/bit/bit.pow.two/bit_floor.pass.cpp @@ -49,7 +49,7 @@ assert(std::bit_floor(T(129)) == T(128)); assert(std::bit_floor(max) == T(max - (max >> 1))); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 if constexpr (std::is_same_v) { T val = T(128) << 32; assert(std::bit_floor(val-1) == val/2); @@ -76,7 +76,7 @@ static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(!std::is_invocable_v); #endif @@ -108,7 +108,7 @@ static_assert(test()); static_assert(test()); static_assert(test()); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(test<__uint128_t>()); #endif @@ -125,7 +125,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__uint128_t>(); #endif diff --git a/libcxx/test/std/numerics/bit/bit.pow.two/bit_width.pass.cpp b/libcxx/test/std/numerics/bit/bit.pow.two/bit_width.pass.cpp --- a/libcxx/test/std/numerics/bit/bit.pow.two/bit_width.pass.cpp +++ b/libcxx/test/std/numerics/bit/bit.pow.two/bit_width.pass.cpp @@ -52,7 +52,7 @@ assert(std::bit_width(T(max - 1)) == T(std::numeric_limits::digits)); assert(std::bit_width(max) == T(std::numeric_limits::digits)); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 if constexpr (std::is_same_v) { T val = 128; val <<= 32; @@ -81,7 +81,7 @@ static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(!std::is_invocable_v); #endif @@ -113,7 +113,7 @@ static_assert(test()); static_assert(test()); static_assert(test()); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(test<__uint128_t>()); #endif static_assert(test()); @@ -129,7 +129,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__uint128_t>(); #endif test(); diff --git a/libcxx/test/std/numerics/bit/bit.pow.two/has_single_bit.pass.cpp b/libcxx/test/std/numerics/bit/bit.pow.two/has_single_bit.pass.cpp --- a/libcxx/test/std/numerics/bit/bit.pow.two/has_single_bit.pass.cpp +++ b/libcxx/test/std/numerics/bit/bit.pow.two/has_single_bit.pass.cpp @@ -46,7 +46,7 @@ assert(!std::has_single_bit(T(129))); assert(!std::has_single_bit(max)); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 if constexpr (std::is_same_v) { T val = T(1) << 32; assert(!std::has_single_bit(val-1)); @@ -79,7 +79,7 @@ static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(!std::is_invocable_v); #endif @@ -111,7 +111,7 @@ static_assert(test()); static_assert(test()); static_assert(test()); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(test<__uint128_t>()); #endif static_assert(test()); @@ -127,7 +127,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__uint128_t>(); #endif test(); diff --git a/libcxx/test/std/numerics/bit/bitops.count/countl_one.pass.cpp b/libcxx/test/std/numerics/bit/bitops.count/countl_one.pass.cpp --- a/libcxx/test/std/numerics/bit/bitops.count/countl_one.pass.cpp +++ b/libcxx/test/std/numerics/bit/bitops.count/countl_one.pass.cpp @@ -51,7 +51,7 @@ assert(std::countl_one(T(max - 127)) == std::numeric_limits::digits - 7); assert(std::countl_one(T(max - 128)) == std::numeric_limits::digits - 8); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 if constexpr (std::is_same_v) { T val = 128; assert(std::countl_one(~val) == 120); @@ -76,7 +76,7 @@ static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(!std::is_invocable_v); #endif @@ -108,7 +108,7 @@ static_assert(test()); static_assert(test()); static_assert(test()); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(test<__uint128_t>()); #endif static_assert(test()); @@ -124,7 +124,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__uint128_t>(); #endif test(); diff --git a/libcxx/test/std/numerics/bit/bitops.count/countl_zero.pass.cpp b/libcxx/test/std/numerics/bit/bitops.count/countl_zero.pass.cpp --- a/libcxx/test/std/numerics/bit/bitops.count/countl_zero.pass.cpp +++ b/libcxx/test/std/numerics/bit/bitops.count/countl_zero.pass.cpp @@ -48,7 +48,7 @@ assert(std::countl_zero(T(128)) == dig - 8); assert(std::countl_zero(max) == 0); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 if constexpr (std::is_same_v) { T val = T(128) << 32; assert(std::countl_zero(val-1) == 89); @@ -75,7 +75,7 @@ static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(!std::is_invocable_v); #endif @@ -107,7 +107,7 @@ static_assert(test()); static_assert(test()); static_assert(test()); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(test<__uint128_t>()); #endif static_assert(test()); @@ -123,7 +123,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__uint128_t>(); #endif test(); diff --git a/libcxx/test/std/numerics/bit/bitops.count/countr_one.pass.cpp b/libcxx/test/std/numerics/bit/bitops.count/countr_one.pass.cpp --- a/libcxx/test/std/numerics/bit/bitops.count/countr_one.pass.cpp +++ b/libcxx/test/std/numerics/bit/bitops.count/countr_one.pass.cpp @@ -49,7 +49,7 @@ assert(std::countr_one(T(max - 1)) == 0); assert(std::countr_one(max) == std::numeric_limits::digits); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 if constexpr (std::is_same_v) { T val = 128; assert(std::countr_one(val-1) == 7); @@ -80,7 +80,7 @@ static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(!std::is_invocable_v); #endif @@ -112,7 +112,7 @@ static_assert(test()); static_assert(test()); static_assert(test()); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(test<__uint128_t>()); #endif static_assert(test()); @@ -128,7 +128,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__uint128_t>(); #endif test(); diff --git a/libcxx/test/std/numerics/bit/bitops.count/countr_zero.pass.cpp b/libcxx/test/std/numerics/bit/bitops.count/countr_zero.pass.cpp --- a/libcxx/test/std/numerics/bit/bitops.count/countr_zero.pass.cpp +++ b/libcxx/test/std/numerics/bit/bitops.count/countr_zero.pass.cpp @@ -50,7 +50,7 @@ assert(std::countr_zero(T(130)) == 1); assert(std::countr_zero(max) == 0); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 if constexpr (std::is_same_v) { T val = T(128) << 32; assert(std::countr_zero(val-1) == 0); @@ -77,7 +77,7 @@ static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(!std::is_invocable_v); #endif @@ -109,7 +109,7 @@ static_assert(test()); static_assert(test()); static_assert(test()); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(test<__uint128_t>()); #endif static_assert(test()); @@ -125,7 +125,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__uint128_t>(); #endif test(); diff --git a/libcxx/test/std/numerics/bit/bitops.count/popcount.pass.cpp b/libcxx/test/std/numerics/bit/bitops.count/popcount.pass.cpp --- a/libcxx/test/std/numerics/bit/bitops.count/popcount.pass.cpp +++ b/libcxx/test/std/numerics/bit/bitops.count/popcount.pass.cpp @@ -50,7 +50,7 @@ assert(std::popcount(T(max - 1)) == std::numeric_limits::digits - 1); assert(std::popcount(max) == std::numeric_limits::digits); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 if constexpr (std::is_same_v) { T val = 128; assert(std::popcount(val-1) == 7); @@ -87,7 +87,7 @@ static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(!std::is_invocable_v); #endif @@ -119,7 +119,7 @@ static_assert(test()); static_assert(test()); static_assert(test()); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(test<__uint128_t>()); #endif static_assert(test()); @@ -135,7 +135,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__uint128_t>(); #endif test(); diff --git a/libcxx/test/std/numerics/bit/bitops.rot/rotl.pass.cpp b/libcxx/test/std/numerics/bit/bitops.rot/rotl.pass.cpp --- a/libcxx/test/std/numerics/bit/bitops.rot/rotl.pass.cpp +++ b/libcxx/test/std/numerics/bit/bitops.rot/rotl.pass.cpp @@ -49,7 +49,7 @@ assert(std::rotl(T(1), 6) == T(64)); assert(std::rotl(T(1), 7) == T(128)); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 if constexpr (std::is_same_v) { T val = (T(1) << 63) | (T(1) << 64); assert(std::rotl(val, 0) == val); @@ -75,7 +75,7 @@ static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(!std::is_invocable_v); #endif @@ -107,7 +107,7 @@ static_assert(test()); static_assert(test()); static_assert(test()); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(test<__uint128_t>()); #endif @@ -124,7 +124,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__uint128_t>(); #endif diff --git a/libcxx/test/std/numerics/bit/bitops.rot/rotr.pass.cpp b/libcxx/test/std/numerics/bit/bitops.rot/rotr.pass.cpp --- a/libcxx/test/std/numerics/bit/bitops.rot/rotr.pass.cpp +++ b/libcxx/test/std/numerics/bit/bitops.rot/rotr.pass.cpp @@ -50,7 +50,7 @@ assert(std::rotr(T(128), 6) == T(2)); assert(std::rotr(T(128), 7) == T(1)); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 if constexpr (std::is_same_v) { T val = (T(1) << 63) | (T(1) << 64); assert(std::rotr(val, 0) == val); @@ -76,7 +76,7 @@ static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(!std::is_invocable_v); #endif @@ -108,7 +108,7 @@ static_assert(test()); static_assert(test()); static_assert(test()); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(test<__uint128_t>()); #endif @@ -125,7 +125,7 @@ test(); test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__uint128_t>(); #endif diff --git a/libcxx/test/std/numerics/bit/byteswap.pass.cpp b/libcxx/test/std/numerics/bit/byteswap.pass.cpp --- a/libcxx/test/std/numerics/bit/byteswap.pass.cpp +++ b/libcxx/test/std/numerics/bit/byteswap.pass.cpp @@ -64,7 +64,7 @@ test_num(0x01234567, 0x67452301); test_num(0x0123456789ABCDEF, 0xEFCDAB8967452301); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 const auto in = static_cast<__uint128_t>(0x0123456789ABCDEF) << 64 | 0x13579BDF02468ACE; const auto expected = static_cast<__uint128_t>(0xCE8A4602DF9B5713) << 64 | 0xEFCDAB8967452301; test_num<__uint128_t>(in, expected); diff --git a/libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.integer.pass.cpp b/libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.integer.pass.cpp --- a/libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.integer.pass.cpp +++ b/libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.integer.pass.cpp @@ -129,7 +129,7 @@ unsigned_test(); unsigned_test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 unsigned_test<__uint128_t>(); signed_test<__int128_t>(); #endif diff --git a/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/eval.pass.cpp b/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/eval.pass.cpp --- a/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/eval.pass.cpp +++ b/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/eval.pass.cpp @@ -133,7 +133,7 @@ // or unsigned long long. // (We support __int128 as an extension.) -#if !defined(_LIBCPP_HAS_NO_INT128) && !defined(TEST_BUGGY_I128_FP) +#if !defined(TEST_HAS_NO_INT128) && !defined(TEST_BUGGY_I128_FP) test_statistics<__int128_t, std::minstd_rand0>(); test_statistics<__uint128_t, std::minstd_rand0>(); diff --git a/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/int128.pass.cpp b/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/int128.pass.cpp --- a/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/int128.pass.cpp +++ b/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/int128.pass.cpp @@ -22,7 +22,7 @@ int main(int, char**) { -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 // Test that values outside of the 64-bit range can be produced. { @@ -80,7 +80,7 @@ } } -#endif // _LIBCPP_HAS_NO_INT128 +#endif // TEST_HAS_NO_INT128 return 0; } diff --git a/libcxx/test/std/numerics/rand/rand.req/rand.req.urng/uniform_random_bit_generator.compile.pass.cpp b/libcxx/test/std/numerics/rand/rand.req/rand.req.urng/uniform_random_bit_generator.compile.pass.cpp --- a/libcxx/test/std/numerics/rand/rand.req/rand.req.urng/uniform_random_bit_generator.compile.pass.cpp +++ b/libcxx/test/std/numerics/rand/rand.req/rand.req.urng/uniform_random_bit_generator.compile.pass.cpp @@ -19,7 +19,7 @@ static_assert(std::uniform_random_bit_generator< std::linear_congruential_engine >); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert(std::uniform_random_bit_generator< std::subtract_with_carry_engine<__uint128_t, 1U, 2U, 3U> >); #endif diff --git a/libcxx/test/std/utilities/format/format.formatter/format.context/format.formatter.spec/formatter.signed_integral.pass.cpp b/libcxx/test/std/utilities/format/format.formatter/format.context/format.formatter.spec/formatter.signed_integral.pass.cpp --- a/libcxx/test/std/utilities/format/format.formatter/format.context/format.formatter.spec/formatter.signed_integral.pass.cpp +++ b/libcxx/test/std/utilities/format/format.formatter/format.context/format.formatter.spec/formatter.signed_integral.pass.cpp @@ -110,7 +110,7 @@ test_signed_integral_type(); test_signed_integral_type(); test_signed_integral_type(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test_signed_integral_type<__int128_t, CharT>(); #endif } diff --git a/libcxx/test/std/utilities/format/format.formatter/format.context/format.formatter.spec/formatter.unsigned_integral.pass.cpp b/libcxx/test/std/utilities/format/format.formatter/format.context/format.formatter.spec/formatter.unsigned_integral.pass.cpp --- a/libcxx/test/std/utilities/format/format.formatter/format.context/format.formatter.spec/formatter.unsigned_integral.pass.cpp +++ b/libcxx/test/std/utilities/format/format.formatter/format.context/format.formatter.spec/formatter.unsigned_integral.pass.cpp @@ -98,7 +98,7 @@ test_unsigned_integral_type(); test_unsigned_integral_type(); test_unsigned_integral_type(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test_unsigned_integral_type<__uint128_t, CharT>(); #endif } diff --git a/libcxx/test/std/utilities/format/format.formatter/format.context/types.compile.pass.cpp b/libcxx/test/std/utilities/format/format.formatter/format.context/types.compile.pass.cpp --- a/libcxx/test/std/utilities/format/format.formatter/format.context/types.compile.pass.cpp +++ b/libcxx/test/std/utilities/format/format.formatter/format.context/types.compile.pass.cpp @@ -61,7 +61,7 @@ std::is_same_v:: template formatter_type, std::formatter>); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 static_assert( std::is_same_v::template formatter_type<__int128_t>, diff --git a/libcxx/test/std/utilities/format/format.functions/format_tests.h b/libcxx/test/std/utilities/format/format.functions/format_tests.h --- a/libcxx/test/std/utilities/format/format.functions/format_tests.h +++ b/libcxx/test/std/utilities/format/format.functions/format_tests.h @@ -733,7 +733,7 @@ format_test_integer(check, check_exception); format_test_integer(check, check_exception); format_test_integer(check, check_exception); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 format_test_integer<__int128_t, CharT>(check, check_exception); #endif // *** check the minma and maxima *** @@ -790,7 +790,7 @@ format_test_integer(check, check_exception); format_test_integer(check, check_exception); format_test_integer(check, check_exception); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 format_test_integer<__uint128_t, CharT>(check, check_exception); #endif // *** test the maxima *** @@ -2564,7 +2564,7 @@ check(STR("hello 42"), STR("hello {}"), static_cast(42)); check(STR("hello 42"), STR("hello {}"), static_cast(42)); check(STR("hello 42"), STR("hello {}"), static_cast(42)); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 check(STR("hello 42"), STR("hello {}"), static_cast<__int128_t>(42)); { // Note 128-bit support is only partly implemented test the range @@ -2587,7 +2587,7 @@ check(STR("hello 42"), STR("hello {}"), static_cast(42)); check(STR("hello 42"), STR("hello {}"), static_cast(42)); check(STR("hello 42"), STR("hello {}"), static_cast(42)); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 check(STR("hello 42"), STR("hello {}"), static_cast<__uint128_t>(42)); { // Note 128-bit support is only partly implemented test the range diff --git a/libcxx/test/std/utilities/function.objects/unord.hash/integral.pass.cpp b/libcxx/test/std/utilities/function.objects/unord.hash/integral.pass.cpp --- a/libcxx/test/std/utilities/function.objects/unord.hash/integral.pass.cpp +++ b/libcxx/test/std/utilities/function.objects/unord.hash/integral.pass.cpp @@ -110,7 +110,7 @@ test(); test(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test<__int128_t>(); test<__uint128_t>(); #endif diff --git a/libcxx/test/std/utilities/meta/meta.trans/meta.trans.sign/make_signed.pass.cpp b/libcxx/test/std/utilities/meta/meta.trans/meta.trans.sign/make_signed.pass.cpp --- a/libcxx/test/std/utilities/meta/meta.trans/meta.trans.sign/make_signed.pass.cpp +++ b/libcxx/test/std/utilities/meta/meta.trans/meta.trans.sign/make_signed.pass.cpp @@ -26,7 +26,7 @@ big = 0xFFFFFFFFFFFFFFFFULL }; -#if !defined(_LIBCPP_HAS_NO_INT128) && !defined(_LIBCPP_HAS_NO_STRONG_ENUMS) +#if !defined(TEST_HAS_NO_INT128) && !defined(_LIBCPP_HAS_NO_STRONG_ENUMS) enum HugeEnum : __uint128_t { hugezero @@ -59,7 +59,7 @@ test_make_signed< const wchar_t, std::conditional::type >(); test_make_signed< const Enum, std::conditional::type >(); test_make_signed< BigEnum, std::conditional::type >(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test_make_signed< __int128_t, __int128_t >(); test_make_signed< __uint128_t, __int128_t >(); # ifndef _LIBCPP_HAS_NO_STRONG_ENUMS diff --git a/libcxx/test/std/utilities/meta/meta.trans/meta.trans.sign/make_unsigned.pass.cpp b/libcxx/test/std/utilities/meta/meta.trans/meta.trans.sign/make_unsigned.pass.cpp --- a/libcxx/test/std/utilities/meta/meta.trans/meta.trans.sign/make_unsigned.pass.cpp +++ b/libcxx/test/std/utilities/meta/meta.trans/meta.trans.sign/make_unsigned.pass.cpp @@ -26,7 +26,7 @@ big = 0xFFFFFFFFFFFFFFFFULL }; -#if !defined(_LIBCPP_HAS_NO_INT128) && !defined(_LIBCPP_HAS_NO_STRONG_ENUMS) +#if !defined(TEST_HAS_NO_INT128) && !defined(_LIBCPP_HAS_NO_STRONG_ENUMS) enum HugeEnum : __int128_t { hugezero @@ -60,7 +60,7 @@ test_make_unsigned::type >(); test_make_unsigned::type> (); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test_make_unsigned<__int128_t, __uint128_t>(); test_make_unsigned<__uint128_t, __uint128_t>(); # ifndef _LIBCPP_HAS_NO_STRONG_ENUMS diff --git a/libcxx/test/std/utilities/meta/meta.unary/meta.unary.cat/integral.pass.cpp b/libcxx/test/std/utilities/meta/meta.unary/meta.unary.cat/integral.pass.cpp --- a/libcxx/test/std/utilities/meta/meta.unary/meta.unary.cat/integral.pass.cpp +++ b/libcxx/test/std/utilities/meta/meta.unary/meta.unary.cat/integral.pass.cpp @@ -60,7 +60,7 @@ test_integral(); test_integral(); test_integral(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test_integral<__int128_t>(); test_integral<__uint128_t>(); #endif diff --git a/libcxx/test/std/utilities/meta/meta.unary/meta.unary.comp/integral.pass.cpp b/libcxx/test/std/utilities/meta/meta.unary/meta.unary.comp/integral.pass.cpp --- a/libcxx/test/std/utilities/meta/meta.unary/meta.unary.comp/integral.pass.cpp +++ b/libcxx/test/std/utilities/meta/meta.unary/meta.unary.comp/integral.pass.cpp @@ -50,7 +50,7 @@ test_integral(); test_integral(); test_integral(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test_integral<__int128_t>(); test_integral<__uint128_t>(); #endif diff --git a/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_signed.pass.cpp b/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_signed.pass.cpp --- a/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_signed.pass.cpp +++ b/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_signed.pass.cpp @@ -119,7 +119,7 @@ test_is_not_signed(); test_is_not_signed(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test_is_signed<__int128_t>(); test_is_not_signed<__uint128_t>(); #endif diff --git a/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_unsigned.pass.cpp b/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_unsigned.pass.cpp --- a/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_unsigned.pass.cpp +++ b/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_unsigned.pass.cpp @@ -119,7 +119,7 @@ test_is_unsigned(); test_is_unsigned(); -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 test_is_unsigned<__uint128_t>(); test_is_not_unsigned<__int128_t>(); #endif diff --git a/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_equal/cmp_equal.pass.cpp b/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_equal/cmp_equal.pass.cpp --- a/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_equal/cmp_equal.pass.cpp +++ b/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_equal/cmp_equal.pass.cpp @@ -89,7 +89,7 @@ constexpr bool test() { std::tuple< -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 __int128_t, __uint128_t, #endif unsigned long long, long long, unsigned long, long, unsigned int, int, diff --git a/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_greater/cmp_greater.pass.cpp b/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_greater/cmp_greater.pass.cpp --- a/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_greater/cmp_greater.pass.cpp +++ b/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_greater/cmp_greater.pass.cpp @@ -80,7 +80,7 @@ constexpr bool test() { std::tuple< -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 __int128_t, __uint128_t, #endif unsigned long long, long long, unsigned long, long, unsigned int, int, diff --git a/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_greater_equal/cmp_greater_equal.pass.cpp b/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_greater_equal/cmp_greater_equal.pass.cpp --- a/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_greater_equal/cmp_greater_equal.pass.cpp +++ b/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_greater_equal/cmp_greater_equal.pass.cpp @@ -82,7 +82,7 @@ constexpr bool test() { std::tuple< -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 __int128_t, __uint128_t, #endif unsigned long long, long long, unsigned long, long, unsigned int, int, diff --git a/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_less/cmp_less.pass.cpp b/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_less/cmp_less.pass.cpp --- a/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_less/cmp_less.pass.cpp +++ b/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_less/cmp_less.pass.cpp @@ -81,7 +81,7 @@ constexpr bool test() { std::tuple< -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 __int128_t, __uint128_t, #endif unsigned long long, long long, unsigned long, long, unsigned int, int, diff --git a/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_less_equal/cmp_less_equal.pass.cpp b/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_less_equal/cmp_less_equal.pass.cpp --- a/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_less_equal/cmp_less_equal.pass.cpp +++ b/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_less_equal/cmp_less_equal.pass.cpp @@ -81,7 +81,7 @@ constexpr bool test() { std::tuple< -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 __int128_t, __uint128_t, #endif unsigned long long, long long, unsigned long, long, unsigned int, int, diff --git a/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_not_equal/cmp_not_equal.pass.cpp b/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_not_equal/cmp_not_equal.pass.cpp --- a/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_not_equal/cmp_not_equal.pass.cpp +++ b/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_not_equal/cmp_not_equal.pass.cpp @@ -88,7 +88,7 @@ constexpr bool test() { std::tuple< -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 __int128_t, __uint128_t, #endif unsigned long long, long long, unsigned long, long, unsigned int, int, diff --git a/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.in_range/in_range.pass.cpp b/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.in_range/in_range.pass.cpp --- a/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.in_range/in_range.pass.cpp +++ b/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.in_range/in_range.pass.cpp @@ -64,7 +64,7 @@ constexpr bool test() { std::tuple< -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 __int128_t, __uint128_t, #endif unsigned long long, long long, unsigned long, long, unsigned int, int, diff --git a/libcxx/test/support/msvc_stdlib_force_include.h b/libcxx/test/support/msvc_stdlib_force_include.h --- a/libcxx/test/support/msvc_stdlib_force_include.h +++ b/libcxx/test/support/msvc_stdlib_force_include.h @@ -62,9 +62,6 @@ #pragma warning(disable: 28251) // Inconsistent annotation for 'new': this instance has no annotations. #endif // !defined(__clang__) -// MSVC doesn't have __int128_t. -#define _LIBCPP_HAS_NO_INT128 - #ifndef _LIBCXX_IN_DEVCRT // atomic_is_lock_free.pass.cpp needs this VS 2015 Update 2 fix. #define _ENABLE_ATOMIC_ALIGNMENT_FIX diff --git a/libcxx/test/support/poisoned_hash_helper.h b/libcxx/test/support/poisoned_hash_helper.h --- a/libcxx/test/support/poisoned_hash_helper.h +++ b/libcxx/test/support/poisoned_hash_helper.h @@ -72,7 +72,7 @@ unsigned long, long long, unsigned long long, -#ifndef _LIBCPP_HAS_NO_INT128 +#ifndef TEST_HAS_NO_INT128 __int128_t, __uint128_t, #endif diff --git a/libcxx/test/support/test_macros.h b/libcxx/test/support/test_macros.h --- a/libcxx/test/support/test_macros.h +++ b/libcxx/test/support/test_macros.h @@ -368,6 +368,10 @@ # define TEST_HAS_NO_UNICODE #endif +#if defined(_LIBCPP_HAS_NO_INT128) || defined(TEST_COMPILER_MSVC) +# define TEST_HAS_NO_INT128 +#endif + #if defined(__GNUC__) #pragma GCC diagnostic pop #endif