Home
last modified time | relevance | path

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

12345

/llvm-project-15.0.7/libcxx/test/std/depr/depr.c.headers/
H A Dstdint_h.pass.cpp30 static_assert(std::is_signed<int8_t>::value, in main()
35 static_assert(std::is_signed<int16_t>::value, in main()
40 static_assert(std::is_signed<int32_t>::value, in main()
45 static_assert(std::is_signed<int64_t>::value, in main()
72 static_assert(std::is_signed<int_least8_t>::value, in main()
77 static_assert(std::is_signed<int_least16_t>::value, in main()
82 static_assert(std::is_signed<int_least32_t>::value, in main()
114 static_assert(std::is_signed<int_fast8_t>::value, in main()
119 static_assert(std::is_signed<int_fast16_t>::value, in main()
156 static_assert(std::is_signed<intptr_t>::value, in main()
[all …]
/llvm-project-15.0.7/libcxx/test/std/language.support/cstdint/cstdint.syn/
H A Dcstdint.pass.cpp31 static_assert(std::is_signed<std::int8_t>::value, in main()
36 static_assert(std::is_signed<std::int16_t>::value, in main()
41 static_assert(std::is_signed<std::int32_t>::value, in main()
46 static_assert(std::is_signed<std::int64_t>::value, in main()
73 static_assert(std::is_signed<std::int_least8_t>::value, in main()
78 static_assert(std::is_signed<std::int_least16_t>::value, in main()
83 static_assert(std::is_signed<std::int_least32_t>::value, in main()
115 static_assert(std::is_signed<std::int_fast8_t>::value, in main()
120 static_assert(std::is_signed<std::int_fast16_t>::value, in main()
157 static_assert(std::is_signed<std::intptr_t>::value, in main()
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/
H A 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()
34 static_assert(!std::is_signed<T>::value, ""); in test_is_not_signed()
35 static_assert(!std::is_signed<const T>::value, ""); in test_is_not_signed()
36 static_assert(!std::is_signed<volatile T>::value, ""); in test_is_not_signed()
37 static_assert(!std::is_signed<const volatile T>::value, ""); in test_is_not_signed()
/llvm-project-15.0.7/lldb/source/Plugins/ABI/X86/
H A DABIMacOSX_i386.cpp125 bool is_signed, Process *process, in ReadIntegerArgument() argument
169 bool is_signed; in GetArgumentValues() local
170 if (compiler_type.IsIntegerOrEnumerationType(is_signed)) in GetArgumentValues()
198 bool is_signed; in SetReturnValueObject() local
205 if (compiler_type.IsIntegerOrEnumerationType(is_signed) || in SetReturnValueObject()
273 bool is_signed; in GetReturnValueObjectImpl() local
275 if (compiler_type.IsIntegerOrEnumerationType(is_signed)) { in GetReturnValueObjectImpl()
298 if (is_signed) in GetReturnValueObjectImpl()
304 if (is_signed) in GetReturnValueObjectImpl()
314 if (is_signed) in GetReturnValueObjectImpl()
[all …]
H A DABIWindows_x86_64.cpp217 if (is_signed) in ReadIntegerArgument()
280 bool is_signed; in GetArgumentValues() local
282 if (compiler_type.IsIntegerOrEnumerationType(is_signed)) { in GetArgumentValues()
312 bool is_signed; in SetReturnValueObject() local
319 if (compiler_type.IsIntegerOrEnumerationType(is_signed) || in SetReturnValueObject()
429 if (is_signed) in GetReturnValueObjectSimple()
437 if (is_signed) in GetReturnValueObjectSimple()
445 if (is_signed) in GetReturnValueObjectSimple()
453 if (is_signed) in GetReturnValueObjectSimple()
556 bool is_signed; in FlattenAggregateType() local
[all …]
H A DABISysV_x86_64.cpp201 if (is_signed) in ReadIntegerArgument()
273 bool is_signed; in GetArgumentValues() local
305 bool is_signed; in SetReturnValueObject() local
421 if (is_signed) in GetReturnValueObjectSimple()
429 if (is_signed) in GetReturnValueObjectSimple()
437 if (is_signed) in GetReturnValueObjectSimple()
445 if (is_signed) in GetReturnValueObjectSimple()
583 bool is_signed; in FlattenAggregateType() local
691 bool is_signed; in GetReturnValueObjectImpl() local
758 is_signed)) { in GetReturnValueObjectImpl()
[all …]
H A DABISysV_i386.cpp144 bool is_signed, Process *process, in ReadIntegerArgument() argument
153 is_signed, scalar, error)) { in ReadIntegerArgument()
186 bool is_signed; in GetArgumentValues() local
187 if (compiler_type.IsIntegerOrEnumerationType(is_signed)) { in GetArgumentValues()
188 ReadIntegerArgument(value->GetScalar(), *bit_size, is_signed, in GetArgumentValues()
397 const bool is_signed = ((type_flags & eTypeIsSigned) != 0); in GetReturnValueObjectSimple() local
416 if (is_signed) in GetReturnValueObjectSimple()
424 if (is_signed) in GetReturnValueObjectSimple()
432 if (is_signed) in GetReturnValueObjectSimple()
440 if (is_signed) in GetReturnValueObjectSimple()
/llvm-project-15.0.7/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/
H A Dis_signed.pass.cpp21 static_assert(std::numeric_limits<T>::is_signed == expected, "is_signed test 1"); in test()
22 static_assert(std::numeric_limits<const T>::is_signed == expected, "is_signed test 2"); in test()
23 static_assert(std::numeric_limits<volatile T>::is_signed == expected, "is_signed test 3"); in test()
24 static_assert(std::numeric_limits<const volatile T>::is_signed == expected, "is_signed test 4"); in test()
H A Dmin.pass.cpp29 assert(std::numeric_limits<T>::is_bounded || !std::numeric_limits<T>::is_signed); in test()
31 assert(std::numeric_limits<const T>::is_bounded || !std::numeric_limits<const T>::is_signed); in test()
33 …assert(std::numeric_limits<volatile T>::is_bounded || !std::numeric_limits<volatile T>::is_signed); in test()
35 …numeric_limits<const volatile T>::is_bounded || !std::numeric_limits<const volatile T>::is_signed); in test()
H A Ddigits.pass.cpp31 test<char, std::numeric_limits<char>::is_signed ? 7 : 8>(); in main()
34 …test<wchar_t, std::numeric_limits<wchar_t>::is_signed ? sizeof(wchar_t)*8-1 : sizeof(wchar_t)*8>(); in main()
/llvm-project-15.0.7/lldb/source/Plugins/ABI/PowerPC/
H A DABISysV_ppc.cpp323 if (is_signed) in ReadIntegerArgument()
400 bool is_signed; in GetArgumentValues() local
401 if (compiler_type.IsIntegerOrEnumerationType(is_signed)) in GetArgumentValues()
430 bool is_signed; in SetReturnValueObject() local
541 if (is_signed) in GetReturnValueObjectSimple()
549 if (is_signed) in GetReturnValueObjectSimple()
557 if (is_signed) in GetReturnValueObjectSimple()
565 if (is_signed) in GetReturnValueObjectSimple()
697 bool is_signed; in GetReturnValueObjectImpl() local
770 is_signed)) in GetReturnValueObjectImpl()
[all …]
H A DABISysV_ppc64.cpp200 bool is_signed, Thread &thread, in ReadIntegerArgument() argument
211 if (is_signed) in ReadIntegerArgument()
277 bool is_signed; in GetArgumentValues() local
279 if (compiler_type.IsIntegerOrEnumerationType(is_signed)) { in GetArgumentValues()
309 bool is_signed; in SetReturnValueObject() local
316 if (compiler_type.IsIntegerOrEnumerationType(is_signed) || in SetReturnValueObject()
595 bool is_signed = (type_flags & eTypeIsSigned) != 0; in GetIntegerValue() local
599 if (is_signed) in GetIntegerValue()
606 if (is_signed) in GetIntegerValue()
613 if (is_signed) in GetIntegerValue()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/ABI/SystemZ/
H A DABISysV_s390x.cpp282 bool is_signed, Thread &thread, in ReadIntegerArgument() argument
293 if (is_signed) in ReadIntegerArgument()
362 bool is_signed; in GetArgumentValues() local
364 if (compiler_type.IsIntegerOrEnumerationType(is_signed)) { in GetArgumentValues()
394 bool is_signed; in SetReturnValueObject() local
401 if (compiler_type.IsIntegerOrEnumerationType(is_signed) || in SetReturnValueObject()
502 const bool is_signed = (type_flags & eTypeIsSigned) != 0; in GetReturnValueObjectSimple() local
508 if (is_signed) in GetReturnValueObjectSimple()
516 if (is_signed) in GetReturnValueObjectSimple()
524 if (is_signed) in GetReturnValueObjectSimple()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/ABI/ARC/
H A DABISysV_arc.cpp327 bool is_signed = false; in SetReturnValueObject() local
328 if (!compiler_type.IsIntegerOrEnumerationType(is_signed) && in SetReturnValueObject()
375 static void SetInteger(Scalar &scalar, uint64_t raw_value, bool is_signed) { in SetInteger() argument
377 if (is_signed) in SetInteger()
384 uint8_t size_in_bytes, bool is_signed) { in SetSizedInteger() argument
390 SetInteger<uint64_t>(scalar, raw_value, is_signed); in SetSizedInteger()
394 SetInteger<uint32_t>(scalar, raw_value, is_signed); in SetSizedInteger()
398 SetInteger<uint16_t>(scalar, raw_value, is_signed); in SetSizedInteger()
402 SetInteger<uint8_t>(scalar, raw_value, is_signed); in SetSizedInteger()
464 const bool is_signed = (type_flags & eTypeIsSigned) != 0; in GetReturnValueObjectSimple() local
[all …]
/llvm-project-15.0.7/libcxx/include/__type_traits/
H A Dis_signed.h24 struct _LIBCPP_TEMPLATE_VIS is_signed : _BoolConstant<__is_signed(_Tp)> { }; struct
44 template <class _Tp> struct _LIBCPP_TEMPLATE_VIS is_signed : public __libcpp_is_signed<_Tp> {};
48 inline constexpr bool is_signed_v = is_signed<_Tp>::value;
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/cert/
H A Ddcl58-cpp.cpp246 static constexpr bool is_signed = true; member
252 inline constexpr bool numeric_limits<::ranges::detail::diffmax_t>::is_signed; member in std::numeric_limits<::ranges::detail::diffmax_t>
262 static constexpr bool is_signed = true; member
268 inline constexpr bool numeric_limits<::ranges::detail::LongT>::is_signed; member in std::numeric_limits<::ranges::detail::LongT>
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DCheckedArithmetic.h47 std::enable_if_t<std::is_signed<T>::value, llvm::Optional<T>>
56 std::enable_if_t<std::is_signed<T>::value, llvm::Optional<T>>
65 std::enable_if_t<std::is_signed<T>::value, llvm::Optional<T>>
74 std::enable_if_t<std::is_signed<T>::value, llvm::Optional<T>>
H A DScaledNumber.h54 static_assert(!std::numeric_limits<DigitsT>::is_signed, "expected unsigned"); in getRounded()
81 static_assert(!std::numeric_limits<DigitsT>::is_signed, "expected unsigned");
115 static_assert(!std::numeric_limits<DigitsT>::is_signed, "expected unsigned"); in getProduct()
154 static_assert(!std::numeric_limits<DigitsT>::is_signed, "expected unsigned"); in getQuotient()
189 static_assert(!std::numeric_limits<DigitsT>::is_signed, "expected unsigned"); in getLgImpl()
252 static_assert(!std::numeric_limits<DigitsT>::is_signed, "expected unsigned"); in compare()
288 static_assert(!std::numeric_limits<DigitsT>::is_signed, "expected unsigned"); in matchScales()
334 static_assert(!std::numeric_limits<DigitsT>::is_signed, "expected unsigned"); in getSum()
374 static_assert(!std::numeric_limits<DigitsT>::is_signed, "expected unsigned"); in getDifference()
494 static_assert(!std::numeric_limits<DigitsT>::is_signed,
/llvm-project-15.0.7/libcxx/test/support/
H A Dcharconv_test_helpers.h74 return _fits_in<X>(v, is_non_narrowing<X>(v), std::is_signed<T>(), std::is_signed<X>()); in fits_in()
189 -> decltype(fromchars128_impl(p, ep, base, std::is_signed<X>()))
191 return fromchars128_impl(p, ep, base, std::is_signed<X>());
197 -> decltype(fromchars_impl(p, ep, base, std::is_signed<X>()))
199 return fromchars_impl(p, ep, base, std::is_signed<X>());
236 if (std::is_signed<T>::value && v < 0 && std::is_unsigned<X>::value) in test()
/llvm-project-15.0.7/mlir/test/Dialect/Quant/
H A Dconvert-fakequant.mlir88 min = 0.0 : f32, max = 0.0 : f32, num_bits = 8, is_signed = true
103 min = 0.0 : f32, max = 0.0 : f32, num_bits = 8, narrow_range = true, is_signed = true
118 min = 0.0 : f32, max = 1.0 : f32, num_bits = 8, is_signed = true
133 min = 0.0 : f32, max = 1.0 : f32, num_bits = 8, narrow_range = true, is_signed = true
148 min = -1.0 : f32, max = 0.9921875 : f32, num_bits = 8, narrow_range = false, is_signed = true
164 min = -1.0 : f32, max = 0.999969482 : f32, num_bits = 16, is_signed = true
195 min = 0.5 : f32, max = 1.5 : f32, num_bits = 8, narrow_range = false, is_signed = true
211 min = -1.5 : f32, max = -0.5 : f32, num_bits = 8, narrow_range = false, is_signed = true
230 num_bits = 8, narrow_range = false, is_signed = true, axis = 2
/llvm-project-15.0.7/clang/test/Analysis/
H A Dllvm-conventions.cpp15 struct numeric_limits { const static bool is_signed; }; member
103 typename std::enable_if<std::numeric_limits<T>::is_signed, bool>::type
106 typename std::enable_if<!std::numeric_limits<T>::is_signed, bool>::type
109 typename std::enable_if<std::numeric_limits<T>::is_signed, bool>::type
112 typename std::enable_if<!std::numeric_limits<T>::is_signed, bool>::type
/llvm-project-15.0.7/lldb/source/Plugins/ABI/AArch64/
H A DABIMacOSX_arm64.cpp148 bool is_signed = false; in GetArgumentValues() local
150 if (value_type.IsIntegerOrEnumerationType(is_signed)) { in GetArgumentValues()
201 if (is_signed) in GetArgumentValues()
221 sp, arg_byte_size, is_signed, value->GetScalar(), error)) in GetArgumentValues()
672 const bool is_signed = (type_flags & eTypeIsSigned) != 0; in GetReturnValueObjectImpl() local
714 if (is_signed) in GetReturnValueObjectImpl()
722 if (is_signed) in GetReturnValueObjectImpl()
730 if (is_signed) in GetReturnValueObjectImpl()
738 if (is_signed) in GetReturnValueObjectImpl()
H A DABISysV_arm64.cpp147 bool is_signed = false; in GetArgumentValues() local
152 if (value_type.IsIntegerOrEnumerationType(is_signed)) { in GetArgumentValues()
172 if (is_signed) in GetArgumentValues()
193 sp, arg_byte_size, is_signed, value->GetScalar(), error)) in GetArgumentValues()
643 const bool is_signed = (type_flags & eTypeIsSigned) != 0; in GetReturnValueObjectImpl() local
686 if (is_signed) in GetReturnValueObjectImpl()
694 if (is_signed) in GetReturnValueObjectImpl()
702 if (is_signed) in GetReturnValueObjectImpl()
710 if (is_signed) in GetReturnValueObjectImpl()
/llvm-project-15.0.7/libcxx/include/
H A Dlimits31 static constexpr bool is_signed = false;
154 static _LIBCPP_CONSTEXPR const bool is_signed = false;
258 static _LIBCPP_CONSTEXPR const bool is_signed = false;
306 static _LIBCPP_CONSTEXPR const bool is_signed = true;
356 static _LIBCPP_CONSTEXPR const bool is_signed = true;
406 static _LIBCPP_CONSTEXPR const bool is_signed = true;
467 static _LIBCPP_CONSTEXPR const bool is_signed = __base::is_signed;
507 _LIBCPP_CONSTEXPR const bool numeric_limits<_Tp>::is_signed;
560 static _LIBCPP_CONSTEXPR const bool is_signed = __base::is_signed;
653 static _LIBCPP_CONSTEXPR const bool is_signed = __base::is_signed;
[all …]
/llvm-project-15.0.7/mlir/python/mlir/_mlir_libs/_mlir/dialects/
H A Dquant.pyi22 def default_minimum_for_integer(is_signed: bool, integral_width: int) -> int:
26 def default_maximum_for_integer(is_signed: bool, integral_width: int) -> int:
36 def is_signed(self) -> bool: ...

12345