Home
last modified time | relevance | path

Searched refs:is_signed (Results 1 – 25 of 38) sorted by relevance

12

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/meta/meta.unary/meta.unary.prop/
Dis_signed.pass.cpp19 static_assert( std::is_signed<T>::value, ""); in test_is_signed()
20 static_assert( std::is_signed<const T>::value, ""); in test_is_signed()
21 static_assert( std::is_signed<volatile T>::value, ""); in test_is_signed()
22 static_assert( std::is_signed<const volatile T>::value, ""); in test_is_signed()
28 static_assert(!std::is_signed<T>::value, ""); in test_is_not_signed()
29 static_assert(!std::is_signed<const T>::value, ""); in test_is_not_signed()
30 static_assert(!std::is_signed<volatile T>::value, ""); in test_is_not_signed()
31 static_assert(!std::is_signed<const volatile T>::value, ""); in test_is_not_signed()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/depr/depr.c.headers/
Dstdint_h.pass.cpp25 static_assert(std::is_signed<int8_t>::value, in main()
30 static_assert(std::is_signed<int16_t>::value, in main()
35 static_assert(std::is_signed<int32_t>::value, in main()
40 static_assert(std::is_signed<int64_t>::value, in main()
67 static_assert(std::is_signed<int_least8_t>::value, in main()
72 static_assert(std::is_signed<int_least16_t>::value, in main()
77 static_assert(std::is_signed<int_least32_t>::value, in main()
82 static_assert(std::is_signed<int_least64_t>::value, in main()
109 static_assert(std::is_signed<int_fast8_t>::value, in main()
114 static_assert(std::is_signed<int_fast16_t>::value, in main()
[all …]
Dstddef_h.pass.cpp33 static_assert(std::is_signed<ptrdiff_t>::value, in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/cstdint/cstdint.syn/
Dcstdint.pass.cpp25 static_assert(std::is_signed<std::int8_t>::value, in main()
30 static_assert(std::is_signed<std::int16_t>::value, in main()
35 static_assert(std::is_signed<std::int32_t>::value, in main()
40 static_assert(std::is_signed<std::int64_t>::value, in main()
67 static_assert(std::is_signed<std::int_least8_t>::value, in main()
72 static_assert(std::is_signed<std::int_least16_t>::value, in main()
77 static_assert(std::is_signed<std::int_least32_t>::value, in main()
82 static_assert(std::is_signed<std::int_least64_t>::value, in main()
109 static_assert(std::is_signed<std::int_fast8_t>::value, in main()
114 static_assert(std::is_signed<std::int_fast16_t>::value, in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.limits/limits/numeric.limits.members/
Dis_signed.pass.cpp20 static_assert(std::numeric_limits<T>::is_signed == expected, "is_signed test 1"); in test()
21 static_assert(std::numeric_limits<const T>::is_signed == expected, "is_signed test 2"); in test()
22 static_assert(std::numeric_limits<volatile T>::is_signed == expected, "is_signed test 3"); in test()
23 static_assert(std::numeric_limits<const volatile T>::is_signed == expected, "is_signed test 4"); in test()
Dmin.pass.cpp25 assert(std::numeric_limits<T>::is_bounded || !std::numeric_limits<T>::is_signed); in test()
27 assert(std::numeric_limits<const T>::is_bounded || !std::numeric_limits<const T>::is_signed); in test()
29 …assert(std::numeric_limits<volatile T>::is_bounded || !std::numeric_limits<volatile T>::is_signed); in test()
31 …numeric_limits<const volatile T>::is_bounded || !std::numeric_limits<const volatile T>::is_signed); in test()
Ddigits.pass.cpp30 test<char, std::numeric_limits<char>::is_signed ? 7 : 8>(); in main()
33 …test<wchar_t, std::numeric_limits<wchar_t>::is_signed ? sizeof(wchar_t)*8-1 : sizeof(wchar_t)*8>(); in main()
/ndk/tests/device/test-stlport/unit/
Dlimits_test.cpp70 bool test_integral_limits_base(const _Tp &, bool unknown_sign = true, bool is_signed = true) { in test_integral_limits_base() argument
78 …CHECK_COND((unknown_sign && ((lim::is_signed && (lim::min() != 0)) || (!lim::is_signed && (lim::mi… in test_integral_limits_base()
79 (!unknown_sign && ((lim::is_signed && is_signed) || (!lim::is_signed && !is_signed)))); in test_integral_limits_base()
82 CHECK_COND(valid_sign_info(lim::is_signed, _Tp())); in test_integral_limits_base()
88 bool test_integral_limits(const _Tp &val, bool unknown_sign = true, bool is_signed = true) { in test_integral_limits() argument
89 if (!test_integral_limits_base(val, unknown_sign, is_signed)) in test_integral_limits()
97 (!lim::is_bounded && !lim::is_signed)) { in test_integral_limits()
129 CHECK_COND(lim::is_signed); in test_float_limits()
/ndk/tests/device/test-gnustl-full/unit/
Dlimits_test.cpp70 bool test_integral_limits_base(const _Tp &, bool unknown_sign = true, bool is_signed = true) { in test_integral_limits_base() argument
78 …CHECK_COND((unknown_sign && ((lim::is_signed && (lim::min() != 0)) || (!lim::is_signed && (lim::mi… in test_integral_limits_base()
79 (!unknown_sign && ((lim::is_signed && is_signed) || (!lim::is_signed && !is_signed)))); in test_integral_limits_base()
82 CHECK_COND(valid_sign_info(lim::is_signed, _Tp())); in test_integral_limits_base()
88 bool test_integral_limits(const _Tp &val, bool unknown_sign = true, bool is_signed = true) { in test_integral_limits() argument
89 if (!test_integral_limits_base(val, unknown_sign, is_signed)) in test_integral_limits()
97 (!lim::is_bounded && !lim::is_signed)) { in test_integral_limits()
129 CHECK_COND(lim::is_signed); in test_float_limits()
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/numeric/conversion/detail/
Dsign_mixture.hpp38 typedef mpl::bool_< ::std::numeric_limits<S>::is_signed > S_signed ;
39 typedef mpl::bool_< ::std::numeric_limits<T>::is_signed > T_signed ;
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/iostreams.base/stream.types/
Dstreamsize.pass.cpp20 static_assert(std::is_signed<std::streamsize>::value, ""); in main()
Dstreamoff.pass.cpp20 static_assert(std::is_signed<std::streamoff>::value, ""); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/depr/depr.ios.members/
Dstreamoff.pass.cpp24 static_assert((std::is_signed<std::ios_base::streamoff>::value), ""); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.types/
Dptrdiff_t.pass.cpp23 static_assert(std::is_signed<std::ptrdiff_t>::value, in main()
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/type_traits/
Dis_signed.hpp131 BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_signed,T,__is_signed(T))
133 BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_signed,T,::boost::detail::is_signed_imp<T>::value)
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/
Dminutes.pass.cpp23 static_assert(std::is_signed<Rep>::value, ""); in main()
Dhours.pass.cpp23 static_assert(std::is_signed<Rep>::value, ""); in main()
Dnanoseconds.pass.cpp23 static_assert(std::is_signed<Rep>::value, ""); in main()
Dmicroseconds.pass.cpp23 static_assert(std::is_signed<Rep>::value, ""); in main()
Dseconds.pass.cpp23 static_assert(std::is_signed<Rep>::value, ""); in main()
Dmilliseconds.pass.cpp23 static_assert(std::is_signed<Rep>::value, ""); in main()
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/
Dlimits.hpp58 BOOST_STATIC_CONSTANT(bool, is_signed = true);
111 BOOST_STATIC_CONSTANT(bool, is_signed = false);
/ndk/sources/cxx-stl/stlport/stlport/stl/
D_limits.c43 __declare_numeric_base_member(bool, is_signed);
72 __declare_integer_limits_member(bool, is_signed);
88 _STLP_TEMPLATE_NULL const bool numeric_limits<__integer>::is_signed; \
118 __declare_float_limits_member(bool, is_signed);
D_limits.h77 _STLP_STATIC_CONSTANT(bool, is_signed = false);
128 _STLP_STATIC_CONSTANT(bool, is_signed = (__imin != 0));
158 _STLP_STATIC_CONSTANT(bool, is_signed = true);
307 _STLP_STATIC_CONSTANT(bool, is_signed = true);
326 _STLP_STATIC_CONSTANT(bool, is_signed = false);
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/
Dlimits32 static constexpr bool is_signed = false;
154 static _LIBCPP_CONSTEXPR const bool is_signed = false;
185 template <class _Tp, int digits, bool is_signed>
205 static _LIBCPP_CONSTEXPR const bool is_signed = type(-1) < type(0);
206 …ic _LIBCPP_CONSTEXPR const int digits = static_cast<int>(sizeof(type) * __CHAR_BIT__ - is_signed);
209 … static _LIBCPP_CONSTEXPR const type __min = __libcpp_compute_min<type, digits, is_signed>::value;
210 static _LIBCPP_CONSTEXPR const type __max = is_signed ? type(type(~0) ^ __min) : type(~0);
257 static _LIBCPP_CONSTEXPR const bool is_signed = false;
305 static _LIBCPP_CONSTEXPR const bool is_signed = true;
351 static _LIBCPP_CONSTEXPR const bool is_signed = true;
[all …]

12