Home
last modified time | relevance | path

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

12345678910>>...15

/third_party/boost/boost/type_traits/
Dis_signed.hpp79 template <class T> struct is_signed : public integral_constant<bool, boost::detail::is_signed_impl<… struct
83 template <class T> struct is_signed : public false_type{};
88 template <class T> struct is_signed : public integral_constant<bool, __is_signed(T)>{};
91 template <> struct is_signed<signed char> : public true_type{}; struct
92 template <> struct is_signed<const signed char> : public true_type{}; struct
93 template <> struct is_signed<volatile signed char> : public true_type{}; struct
94 template <> struct is_signed<const volatile signed char> : public true_type{}; struct
95 template <> struct is_signed<short> : public true_type{}; struct
96 template <> struct is_signed<const short> : public true_type{}; struct
97 template <> struct is_signed<volatile short> : public true_type{}; struct
[all …]
/third_party/boost/libs/type_traits/test/
Dis_signed_test.cpp17 TT_TEST_BEGIN(is_signed)
19 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_signed<int>::value, true);
20 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_signed<long>::value, true);
21 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_signed<short>::value, true);
22 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_signed<signed char>::value, true);
23 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_signed<unsigned int>::value, false);
24 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_signed<unsigned long>::value, false);
25 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_signed<unsigned short>::value, false);
26 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_signed<unsigned char>::value, false);
28 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_signed<UDT>::value, false);
[all …]
/third_party/boost/libs/type_traits/doc/
Dis_signed.qbk8 [section:is_signed is_signed]
11 struct is_signed : public __tof {};
21 __header ` #include <boost/type_traits/is_signed.hpp>` or ` #include <boost/type_traits.hpp>`
25 [:`is_signed<int>` inherits from `__true_type`.]
27 [:`is_signed<int const volatile>::type` is the type `__true_type`.]
29 [:`is_signed<unsigned int>::value` is an integral constant
32 [:`is_signed<myclass>::value` is an integral constant
35 [:`is_signed<char>::value` is an integral constant
38 [:`is_signed<long long>::value` is an integral constant
41 [:`is_signed<T>::value_type` is the type `bool`.]
/third_party/boost/boost/endian/detail/
Dendian_load.hpp97 tmp[1] = boost::is_signed<T>::value && ( p[0] & 0x80 )? 0xFF: 0x00; in operator ()()
111 tmp[0] = boost::is_signed<T>::value && ( p[0] & 0x80 )? 0xFF: 0x00; in operator ()()
128 unsigned char fill = boost::is_signed<T>::value && ( p[0] & 0x80 )? 0xFF: 0x00; in operator ()()
147 unsigned char fill = boost::is_signed<T>::value && ( p[0] & 0x80 )? 0xFF: 0x00; in operator ()()
168 unsigned char fill = boost::is_signed<T>::value && ( p[1] & 0x80 )? 0xFF: 0x00; in operator ()()
187 unsigned char fill = boost::is_signed<T>::value && ( p[0] & 0x80 )? 0xFF: 0x00; in operator ()()
211 tmp[3] = boost::is_signed<T>::value && ( p[2] & 0x80 )? 0xFF: 0x00; in operator ()()
225 tmp[0] = boost::is_signed<T>::value && ( p[0] & 0x80 )? 0xFF: 0x00; in operator ()()
244 unsigned char fill = boost::is_signed<T>::value && ( p[0] & 0x80 )? 0xFF: 0x00; in operator ()()
268 unsigned char fill = boost::is_signed<T>::value && ( p[0] & 0x80 )? 0xFF: 0x00; in operator ()()
[all …]
/third_party/python/Objects/clinic/
Dlongobject.c.h194 int is_signed);
206 int is_signed = 0; in int_to_bytes() local
240 is_signed = PyObject_IsTrue(args[2]); in int_to_bytes()
241 if (is_signed < 0) { in int_to_bytes()
245 return_value = int_to_bytes_impl(self, length, byteorder, is_signed); in int_to_bytes()
276 PyObject *byteorder, int is_signed);
288 int is_signed = 0; in int_from_bytes() local
306 is_signed = PyObject_IsTrue(args[2]); in int_from_bytes()
307 if (is_signed < 0) { in int_from_bytes()
311 return_value = int_from_bytes_impl(type, bytes_obj, byteorder, is_signed); in int_from_bytes()
/third_party/boost/boost/numeric/conversion/detail/
Dold_numeric_cast.hpp87 : public if_true< std::numeric_limits<T>::is_signed >
106 BOOST_STATIC_CONSTANT(bool, is_signed = true);
130 BOOST_STATIC_CONSTANT(bool, is_signed = false);
244 return std::numeric_limits<T>::is_signed && (std::numeric_limits<T>::min)() >= 0 in BOOST_PREVENT_MACRO_SUBSTITUTION()
275 const bool arg_is_signed = arg_traits::is_signed; in numeric_cast()
276 const bool result_is_signed = result_traits::is_signed; in numeric_cast()
291 if ((arg < 0 && !result_traits::is_signed) // loss of negative range in numeric_cast()
292 || (arg_traits::is_signed && arg < (result_traits::min)()) // underflow in numeric_cast()
/third_party/boost/libs/detail/test/
Dnumeric_traits_test.cpp84 template <bool is_signed> struct complement_base;
113 BOOST_STATIC_CONSTANT(bool, is_signed = boost::is_signed<Number>::value);
115 complement_base<is_signed>::template values<Number>::min);
117 complement_base<is_signed>::template values<Number>::max);
244 BOOST_STATIC_ASSERT(!boost::is_signed<Number>::value); in test_aux()
291 BOOST_STATIC_ASSERT(boost::is_signed<Number>::value); in signed_test()
312 BOOST_STATIC_ASSERT(boost::is_signed<Number>::value); in signed_test()
337 BOOST_STATIC_ASSERT(boost::is_signed<Number>::value); in test_aux()
375 << "is_signed: " << (std::numeric_limits<Number>::is_signed ? "true\n" : "false\n") in test()
382 typedef boost::is_signed< in test()
[all …]
/third_party/boost/boost/random/
Dtraits.hpp41 BOOST_STATIC_ASSERT(std::numeric_limits<T>::is_signed == false);
71 …BOOST_STATIC_ASSERT((std::numeric_limits<T>::is_signed == false) || (std::numeric_limits<T>::is_bo…
99 template <class T> struct is_signed struct
100 … boost::is_signed<T>::value || (std::numeric_limits<T>::is_specialized && std::numeric_limits<T>::…
/third_party/skia/third_party/externals/tint/src/transform/
Drobustness.cc75 bool is_signed = false; in Transform() member
79 size.is_signed = false; // size is always unsigned in Transform()
108 limit.is_signed = false; // Like size, limit is always unsigned. in Transform()
131 idx.is_signed = true; in Transform()
134 idx.is_signed = false; in Transform()
145 idx.is_signed = idx_ty->Is<sem::I32>(); in Transform()
153 if (idx.is_signed) { in Transform()
159 idx.is_signed = false; in Transform()
162 idx.is_signed = false; in Transform()
178 if (idx.is_signed) { in Transform()
[all …]
/third_party/boost/libs/multiprecision/test/
Dconstexpr_arithmetric_test.hpp16 if constexpr(std::numeric_limits<U>::is_signed && std::numeric_limits<T>::is_signed) in do_test_constexpr_add_subtract()
29 if constexpr(std::numeric_limits<U>::is_signed && std::numeric_limits<T>::is_signed) in do_test_constexpr_add_subtract()
32 if constexpr(std::numeric_limits<T>::is_signed) in do_test_constexpr_add_subtract()
35 if constexpr(std::numeric_limits<U>::is_signed) in do_test_constexpr_add_subtract()
81 if constexpr(std::numeric_limits<T>::is_signed && std::numeric_limits<U>::is_signed) in do_test_constexpr_mul_divide()
88 if constexpr(std::numeric_limits<T>::is_signed && std::numeric_limits<U>::is_signed) in do_test_constexpr_mul_divide()
146 if constexpr (std::numeric_limits<T>::is_signed == false) in do_test_constexpr_bitwise()
Dtest_convert_from_cpp_bin_float.cpp83 …from, boost::mpl::bool_ < std::numeric_limits<From>::is_signed && std::numeric_limits<To>::is_sign… in test_convert_imp()
111 …from, boost::mpl::bool_ < std::numeric_limits<From>::is_signed && std::numeric_limits<To>::is_sign… in test_convert_imp()
143 …from, boost::mpl::bool_ < std::numeric_limits<From>::is_signed && std::numeric_limits<To>::is_sign… in test_convert_imp()
Dtest_convert_from_mpfr_float.cpp85 …from, boost::mpl::bool_ < std::numeric_limits<From>::is_signed && std::numeric_limits<To>::is_sign… in test_convert_imp()
113 …from, boost::mpl::bool_ < std::numeric_limits<From>::is_signed && std::numeric_limits<To>::is_sign… in test_convert_imp()
145 …from, boost::mpl::bool_ < std::numeric_limits<From>::is_signed && std::numeric_limits<To>::is_sign… in test_convert_imp()
Dtest_convert_from_mpf_float.cpp85 …from, boost::mpl::bool_ < std::numeric_limits<From>::is_signed && std::numeric_limits<To>::is_sign… in test_convert_imp()
115 …from, boost::mpl::bool_ < std::numeric_limits<From>::is_signed && std::numeric_limits<To>::is_sign… in test_convert_imp()
147 …from, boost::mpl::bool_ < std::numeric_limits<From>::is_signed && std::numeric_limits<To>::is_sign… in test_convert_imp()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dfuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp187 uint32_t is_signed = constant->AsVectorConstant() in Apply() local
197 is_signed, num_iterations); in Apply()
234 uint32_t bit_width, bool is_signed, in FindSuitableStepAndInitialValueConstants() argument
245 fuzzerutil::IntToWords(initial_value, bit_width, is_signed), bit_width, in FindSuitableStepAndInitialValueConstants()
246 is_signed, false); in FindSuitableStepAndInitialValueConstants()
249 fuzzerutil::IntToWords(step_value, bit_width, is_signed), bit_width, in FindSuitableStepAndInitialValueConstants()
250 is_signed, false); in FindSuitableStepAndInitialValueConstants()
Dtransformation_add_type_int.cpp28 bool is_signed) { in TransformationAddTypeInt() argument
31 message_.set_is_signed(is_signed); in TransformationAddTypeInt()
72 message_.is_signed()) == 0; in IsApplicable()
82 {message_.is_signed() ? 1u : 0u}}}); in Apply()
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
Dfuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp187 uint32_t is_signed = constant->AsVectorConstant() in Apply() local
197 is_signed, num_iterations); in Apply()
234 uint32_t bit_width, bool is_signed, in FindSuitableStepAndInitialValueConstants() argument
245 fuzzerutil::IntToWords(initial_value, bit_width, is_signed), bit_width, in FindSuitableStepAndInitialValueConstants()
246 is_signed, false); in FindSuitableStepAndInitialValueConstants()
249 fuzzerutil::IntToWords(step_value, bit_width, is_signed), bit_width, in FindSuitableStepAndInitialValueConstants()
250 is_signed, false); in FindSuitableStepAndInitialValueConstants()
Dtransformation_add_type_int.cpp28 bool is_signed) { in TransformationAddTypeInt() argument
31 message_.set_is_signed(is_signed); in TransformationAddTypeInt()
72 message_.is_signed()) == 0; in IsApplicable()
82 {message_.is_signed() ? 1u : 0u}}}); in Apply()
/third_party/boost/boost/spirit/home/x3/char/detail/
Dcast_char.hpp33 if (is_signed<TargetChar>::value != is_signed<SourceChar>::value) in cast_char()
35 if (is_signed<SourceChar>::value) in cast_char()
/third_party/flutter/skia/third_party/externals/spirv-tools/source/
Dspirv_stats.cpp123 const uint32_t is_signed = type_decl_inst.GetOperandAs<uint32_t>(2); in ProcessConstant() local
124 assert(is_signed == 0 || is_signed == 1); in ProcessConstant()
126 if (is_signed) in ProcessConstant()
131 if (is_signed) in ProcessConstant()
136 if (is_signed) in ProcessConstant()
/third_party/boost/boost/safe_numerics/
Dautomatic.hpp46 std::numeric_limits<T>::is_signed,
58 ! std::numeric_limits<T>::is_signed
59 && ! std::numeric_limits<U>::is_signed,
135 ! std::numeric_limits<T>::is_signed
136 && ! std::numeric_limits<U>::is_signed,
177 ! std::numeric_limits<T>::is_signed
178 && ! std::numeric_limits<U>::is_signed,
237 ! std::numeric_limits<T>::is_signed
238 && ! std::numeric_limits<U>::is_signed,
300 ! std::numeric_limits<T>::is_signed
[all …]
Dsafe_compare.hpp22 std::is_signed<T>::value,
77 std::is_signed<T>::value, in less_than()
78 std::is_signed<U>::value in less_than()
157 std::numeric_limits<T>::is_signed, in equal()
158 std::numeric_limits<U>::is_signed in equal()
/third_party/flutter/skia/third_party/externals/angle2/src/common/third_party/base/anglebase/numerics/
Dsafe_math_impl.h103 std::numeric_limits<Integer>::is_signed>::type>::type type;
167 if (std::numeric_limits<T>::is_signed)
197 if (std::numeric_limits<T>::is_signed)
231 typename std::enable_if<std::numeric_limits<T>::is_integer && std::numeric_limits<T>::is_signed &&
261 typename std::enable_if<std::numeric_limits<T>::is_integer && !std::numeric_limits<T>::is_signed &&
277 if (std::numeric_limits<T>::is_signed && x == std::numeric_limits<T>::min() &&
289 typename std::enable_if<std::numeric_limits<T>::is_integer && std::numeric_limits<T>::is_signed,
298 typename std::enable_if<std::numeric_limits<T>::is_integer && !std::numeric_limits<T>::is_signed,
307 typename std::enable_if<std::numeric_limits<T>::is_integer && std::numeric_limits<T>::is_signed,
317 typename std::enable_if<std::numeric_limits<T>::is_integer && !std::numeric_limits<T>::is_signed,
[all …]
/third_party/gn/src/base/numerics/
Dsafe_conversions_impl.h38 std::is_signed<NumericType>::value;
51 typename std::enable_if<std::is_signed<T>::value>::type* = nullptr>
58 typename std::enable_if<!std::is_signed<T>::value>::type* = nullptr>
149 IntegerRepresentation DstSign = std::is_signed<Dst>::value
152 IntegerRepresentation SrcSign = std::is_signed<Src>::value
280 IntegerRepresentation DstSign = std::is_signed<Dst>::value
283 IntegerRepresentation SrcSign = std::is_signed<Src>::value
416 std::is_signed<I>::value> { \
436 template <typename Integer, bool IsSigned = std::is_signed<Integer>::value>
471 std::is_signed<Lhs>::value
[all …]
/third_party/skia/third_party/externals/angle2/src/common/third_party/base/anglebase/numerics/
Dsafe_conversions_impl.h44 std::numeric_limits<NumericType>::digits + std::is_signed<NumericType>::value;
57 template <typename T, typename std::enable_if<std::is_signed<T>::value>::type * = nullptr>
64 template <typename T, typename std::enable_if<!std::is_signed<T>::value>::type * = nullptr>
165 IntegerRepresentation DstSign = std::is_signed<Dst>::value ? INTEGER_REPRESENTATION_SIGNED
167 IntegerRepresentation SrcSign = std::is_signed<Src>::value ? INTEGER_REPRESENTATION_SIGNED
294 IntegerRepresentation DstSign = std::is_signed<Dst>::value ? INTEGER_REPRESENTATION_SIGNED
296 IntegerRepresentation SrcSign = std::is_signed<Src>::value ? INTEGER_REPRESENTATION_SIGNED
436 struct IntegerForDigitsAndSign<IntegerBitsPlusSign<I>::value, std::is_signed<I>::value> \
457 template <typename Integer, bool IsSigned = std::is_signed<Integer>::value>
494 std::is_signed<Lhs>::value
[all …]
Dsafe_conversions_arm_impl.h26 std::is_signed<Src>::value && std::is_integral<Dst>::value &&
35 typename std::conditional<std::is_signed<Dst>::value, int32_t, uint32_t>::type result; in Do()
36 if (std::is_signed<Dst>::value) in Do()

12345678910>>...15