Home
last modified time | relevance | path

Searched refs:UnderlyingType (Results 1 – 25 of 36) sorted by relevance

12

/third_party/node/deps/v8/src/base/
Dsafe_conversions_impl.h587 struct UnderlyingType {
596 struct UnderlyingType<CheckedNumeric<T>> {
605 struct UnderlyingType<ClampedNumeric<T>> {
614 struct UnderlyingType<StrictNumeric<T>> {
625 UnderlyingType<L>::is_numeric && UnderlyingType<R>::is_numeric &&
626 (UnderlyingType<L>::is_checked || UnderlyingType<R>::is_checked);
632 UnderlyingType<L>::is_numeric && UnderlyingType<R>::is_numeric &&
633 (UnderlyingType<L>::is_clamped || UnderlyingType<R>::is_clamped) &&
634 !(UnderlyingType<L>::is_checked || UnderlyingType<R>::is_checked);
640 UnderlyingType<L>::is_numeric && UnderlyingType<R>::is_numeric &&
[all …]
Dsafe_conversions.h100 using SrcType = typename internal::UnderlyingType<Src>::type;
117 using SrcType = typename internal::UnderlyingType<Src>::type;
212 using SrcType = typename UnderlyingType<Src>::type;
229 using SrcType = typename UnderlyingType<Src>::type;
230 static_assert(UnderlyingType<Src>::is_numeric, "Argument must be numeric.");
315 constexpr StrictNumeric<typename UnderlyingType<T>::type> MakeStrictNum(
334 return SafeCompare<NAME, typename UnderlyingType<L>::type, \
335 typename UnderlyingType<R>::type>(lhs, rhs); \
/third_party/gn/src/base/numerics/
Dsafe_conversions_impl.h607 struct UnderlyingType {
616 struct UnderlyingType<CheckedNumeric<T>> {
625 struct UnderlyingType<ClampedNumeric<T>> {
634 struct UnderlyingType<StrictNumeric<T>> {
645 UnderlyingType<L>::is_numeric && UnderlyingType<R>::is_numeric &&
646 (UnderlyingType<L>::is_checked || UnderlyingType<R>::is_checked);
652 UnderlyingType<L>::is_numeric && UnderlyingType<R>::is_numeric &&
653 (UnderlyingType<L>::is_clamped || UnderlyingType<R>::is_clamped) &&
654 !(UnderlyingType<L>::is_checked || UnderlyingType<R>::is_checked);
660 UnderlyingType<L>::is_numeric && UnderlyingType<R>::is_numeric &&
[all …]
Dsafe_conversions.h84 using SrcType = typename internal::UnderlyingType<Src>::type;
102 using SrcType = typename internal::UnderlyingType<Src>::type;
188 using SrcType = typename UnderlyingType<Src>::type;
205 using SrcType = typename UnderlyingType<Src>::type;
206 static_assert(UnderlyingType<Src>::is_numeric, "Argument must be numeric.");
292 constexpr StrictNumeric<typename UnderlyingType<T>::type> MakeStrictNum(
309 return SafeCompare<NAME, typename UnderlyingType<L>::type, \
310 typename UnderlyingType<R>::type>(lhs, rhs); \
Dclamped_math.h54 constexpr ClampedNumeric<typename UnderlyingType<Dst>::type> Cast() const { in Cast()
182 return static_cast<typename UnderlyingType<Src>::type>(value); in value()
190 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum( in MakeClampedNum()
Dchecked_math.h108 constexpr CheckedNumeric<typename UnderlyingType<Dst>::type> Cast() const { in Cast()
167 using R = typename UnderlyingType<U>::type; in Max()
182 using R = typename UnderlyingType<U>::type; in Min()
312 constexpr CheckedNumeric<typename UnderlyingType<T>::type> MakeCheckedNum(
Dsafe_math_shared_impl.h170 using math = M<typename UnderlyingType<L>::type,
171 typename UnderlyingType<R>::type,
/third_party/skia/third_party/externals/angle2/src/common/third_party/base/anglebase/numerics/
Dsafe_conversions_impl.h632 struct UnderlyingType
642 struct UnderlyingType<CheckedNumeric<T>>
652 struct UnderlyingType<ClampedNumeric<T>>
662 struct UnderlyingType<StrictNumeric<T>>
674 static const bool value = UnderlyingType<L>::is_numeric && UnderlyingType<R>::is_numeric &&
675 (UnderlyingType<L>::is_checked || UnderlyingType<R>::is_checked);
681 static const bool value = UnderlyingType<L>::is_numeric && UnderlyingType<R>::is_numeric &&
682 (UnderlyingType<L>::is_clamped || UnderlyingType<R>::is_clamped) &&
683 !(UnderlyingType<L>::is_checked || UnderlyingType<R>::is_checked);
689 static const bool value = UnderlyingType<L>::is_numeric && UnderlyingType<R>::is_numeric &&
[all …]
Dsafe_conversions.h104 using SrcType = typename internal::UnderlyingType<Src>::type;
118 using SrcType = typename internal::UnderlyingType<Src>::type;
217 using SrcType = typename UnderlyingType<Src>::type;
233 using SrcType = typename UnderlyingType<Src>::type;
234 static_assert(UnderlyingType<Src>::is_numeric, "Argument must be numeric.");
323 constexpr StrictNumeric<typename UnderlyingType<T>::type> MakeStrictNum(const T value)
343 return SafeCompare<NAME, typename UnderlyingType<L>::type, \
344 typename UnderlyingType<R>::type>(lhs, rhs); \
Dclamped_math.h59 constexpr ClampedNumeric<typename UnderlyingType<Dst>::type> Cast() const in Cast()
193 return static_cast<typename UnderlyingType<Src>::type>(value); in value()
201 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum(const T value) in MakeClampedNum()
Dsafe_math_shared_impl.h190 using math = M<typename UnderlyingType<L>::type, typename UnderlyingType<R>::type, void>;
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DBinaryStream.h73 using UnderlyingType = typename std::underlying_type<EnumT>::type; in readEnum() local
74 return static_cast<EnumT>(readInt<UnderlyingType>()); in readEnum()
242 using UnderlyingType = typename std::underlying_type<EnumT>::type; in writeEnum() local
243 writeInt<UnderlyingType>(static_cast<UnderlyingType>(param)); in writeEnum()
/third_party/skia/third_party/externals/angle2/src/common/
DPackedEnums.h30 using UnderlyingType = typename std::underlying_type<E>::type; in EnumSize() local
31 return static_cast<UnderlyingType>(E::EnumCount); in EnumSize()
44 using UnderlyingType = typename std::underlying_type<E>::type;
47 EnumIterator(E value) : mValue(static_cast<UnderlyingType>(value)) {} in EnumIterator()
58 UnderlyingType mValue;
73 using UnderlyingType = typename std::underlying_type<E>::type; variable
90 mPrivateData)[static_cast<UnderlyingType>(it->first)]) = it->second;
92 mPrivateData[static_cast<UnderlyingType>(it->first)] = it->second;
136 return mPrivateData[static_cast<UnderlyingType>(n)];
142 return mPrivateData[static_cast<UnderlyingType>(n)];
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ExecutionEngine/
DJITSymbol.h76 using UnderlyingType = uint8_t;
79 enum FlagNames : UnderlyingType {
150 UnderlyingType getRawFlagsValue() const { in getRawFlagsValue()
151 return static_cast<UnderlyingType>(Flags); in getRawFlagsValue()
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DTypedIntegerTests.cpp148 TEST_F(TypedIntegerTest, UnderlyingType) { in TEST_F() argument
149 static_assert(std::is_same<UnderlyingType<Unsigned>, uint32_t>::value, ""); in TEST_F()
150 static_assert(std::is_same<UnderlyingType<Signed>, int32_t>::value, ""); in TEST_F()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/Native/
DNativeTypeEnum.cpp299 const auto UnderlyingType = in getLength() local
301 return UnderlyingType ? UnderlyingType->getLength() : 0; in getLength()
/third_party/skia/third_party/externals/dawn/src/common/
DUnderlyingType.h49 using UnderlyingType = typename detail::UnderlyingTypeImpl<T>::type;
Dityp_span.h31 using I = UnderlyingType<Index>;
Dityp_stack_vec.h26 using I = UnderlyingType<Index>;
Dityp_array.h33 using I = UnderlyingType<Index>;
Dityp_vector.h30 using I = UnderlyingType<Index>;
DCMakeLists.txt57 "UnderlyingType.h"
Dityp_bitset.h28 using I = UnderlyingType<Index>;
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
DEmulatedIntrinsics.cpp27 struct UnderlyingType struct
33 using UnderlyingTypeT = typename UnderlyingType<T>::Type;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/CodeView/
DTypeRecord.h529 StringRef Name, StringRef UniqueName, TypeIndex UnderlyingType) in EnumRecord() argument
532 UnderlyingType(UnderlyingType) {} in EnumRecord()
534 TypeIndex getUnderlyingType() const { return UnderlyingType; } in getUnderlyingType()
536 TypeIndex UnderlyingType; variable

12