Home
last modified time | relevance | path

Searched refs:IntType (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/libs/binary_translation/intrinsics/include/berberis/intrinsics/
Dintrinsics_atomics_impl.h57 template <typename IntType, bool aq, bool rl, enum PreferredIntrinsicsImplementation>
58 std::tuple<IntType> AmoAdd(int64_t arg1, IntType arg2) { in AmoAdd()
59 static_assert(std::is_integral_v<IntType>, "AmoAdd: IntType must be integral"); in AmoAdd()
60 static_assert(std::is_signed_v<IntType>, "AmoAdd: IntType must be signed"); in AmoAdd()
61 auto ptr = ToHostAddr<IntType>(arg1); in AmoAdd()
65 template <typename IntType, bool aq, bool rl, enum PreferredIntrinsicsImplementation>
66 std::tuple<IntType> AmoAnd(int64_t arg1, IntType arg2) { in AmoAnd()
67 static_assert(std::is_integral_v<IntType>, "AmoAnd: IntType must be integral"); in AmoAnd()
68 static_assert(std::is_signed_v<IntType>, "AmoAnd: IntType must be signed"); in AmoAnd()
69 auto ptr = ToHostAddr<IntType>(arg1); in AmoAnd()
[all …]
Dintrinsics_floating_point_impl.h52 using IntType = std::make_unsigned_t<typename TypeTraits<FloatType>::Int>; in FClass() local
53 constexpr IntType quiet_bit = in FClass()
54 __builtin_bit_cast(IntType, std::numeric_limits<FloatType>::quiet_NaN()) & in FClass()
55 ~__builtin_bit_cast(IntType, std::numeric_limits<FloatType>::signaling_NaN()); in FClass()
56 const IntType raw_bits = bit_cast<IntType>(arg); in FClass()
/frameworks/libs/binary_translation/intrinsics/riscv64_to_x86_64/include/berberis/intrinsics/
Dmacro_assembler_arith_impl.h31 template <typename IntType>
35 Test<IntType>(src, src); in MacroDiv()
38 if constexpr (std::is_signed_v<IntType>) { in MacroDiv()
42 Cmp<IntType>(src, int8_t{-1}); in MacroDiv()
45 if constexpr (std::is_same_v<IntType, int64_t>) { in MacroDiv()
46 Cmp<IntType>(gpr_a, in MacroDiv()
47 {.disp = constants_pool::kVectorConst<std::numeric_limits<IntType>::min()>}); in MacroDiv()
49 Cmp<IntType>(gpr_a, std::numeric_limits<IntType>::min()); in MacroDiv()
55 if constexpr (std::is_same_v<IntType, int8_t>) { in MacroDiv()
58 } else if constexpr (std::is_same_v<IntType, int16_t>) { in MacroDiv()
[all …]
Dmacro_assembler_bitmanip_impl.h28 template <typename IntType>
30 Bsr<IntType>(result, src); in MacroClz()
31 Cmov<IntType>(Condition::kZero, result, {.disp = constants_pool::kBsrToClz<IntType>}); in MacroClz()
32 Xor<IntType>(result, sizeof(IntType) * CHAR_BIT - 1); in MacroClz()
36 template <typename IntType>
38 Bsf<IntType>(result, src); in MacroCtz()
39 Cmov<IntType>(Condition::kZero, result, {.disp = constants_pool::kWidthInBits<IntType>}); in MacroCtz()
43 template <typename IntType>
45 Mov<IntType>(result, src1); in MacroMax()
46 Cmp<IntType>(src1, src2); in MacroMax()
[all …]
/frameworks/libs/native_bridge_support/android_api/libvulkan/proxy/
Dvulkan_types.go86 "NvSciSyncAttrList": cpp_types.IntType,
87 "NvSciSyncObj": cpp_types.IntType,
88 "NvSciSyncFence": cpp_types.IntType,
89 "NvSciBufAttrList": cpp_types.IntType,
90 "NvSciBufObj": cpp_types.IntType,
104 "int": cpp_types.IntType,
116 …"StdVideoDecodeH264MvcElementFlags": cpp_types.IntType, // That's actually a struct with bitfi…
118 …"StdVideoDecodeH264PictureInfoFlags": cpp_types.IntType, // That's actually a struct with bitfi…
120 …"StdVideoDecodeH264ReferenceInfoFlags": cpp_types.IntType, // That's actually a struct with bitfi…
122 …"StdVideoDecodeH265PictureInfoFlags": cpp_types.IntType, // That's actually a struct with bitfi…
[all …]
Dcpp_types_test.go121 const_pointer := ConstType(PointerType(IntType))
125 const_pointer = PointerType(ConstType(IntType))
129 const_pointer = ConstType(PointerType(ConstType(IntType)))
136 const_pointer := ConstType(PointerType(ArrayType(IntType, 10)))
140 const_pointer = PointerType(ArrayType(ConstType(IntType), 10))
144 const_pointer = ConstType(PointerType(ArrayType(ConstType(IntType), 10)))
152 PointerType(FunctionType(VoidType, []FieldInfo{Field("sig1", IntType)})),
154 Field("sig2", IntType),
156 VoidType, []FieldInfo{Field("sig3", IntType)})))}))
181 if IsInputCompatible(PointerType(FunctionType(IntType, []FieldInfo{})), X86, Arm) {
[all …]
Dcpp_types.go318 var IntType Type = &signedFixedType{fixedType{32, 32, Int, "int"}} var
/frameworks/libs/binary_translation/base/include/berberis/base/
Dbit_util.h331 template <typename IntType,
332 typename = std::enable_if_t<std::is_integral_v<IntType> &&
333 sizeof(IntType) == sizeof(BaseType)>>
334 [[nodiscard]] constexpr operator IntType() const { in IntType() function
335 return static_cast<IntType>(value); in IntType()
337 template <typename IntType,
339 std::is_integral_v<IntType> && sizeof(BaseType) == sizeof(IntType) &&
340 !std::is_signed_v<IntType> && !std::is_same_v<IntType, BaseType>>>
341 [[nodiscard]] constexpr operator Raw<IntType>() const {
342 return {static_cast<IntType>(value)};
[all …]
/frameworks/compile/mclinker/include/mcld/Support/
DLEB128.h22 template <typename IntType>
23 size_t encode(ByteType*& pBuf, IntType pValue);
25 template <typename IntType>
26 IntType decode(const ByteType* pBuf, size_t& pSize);
28 template <typename IntType>
29 IntType decode(const ByteType*& pBuf);
35 template <typename IntType>
36 size_t size(IntType pValue) { in size()
95 template <typename IntType>
96 size_t encode(char*& pBuf, IntType pValue) { in encode()
[all …]
/frameworks/compile/slang/
Dslang_rs_special_func.cpp44 const clang::QualType &IntType = FD->getASTContext().IntTy; in isGraphicsRootRSFunc() local
45 if (FD->getReturnType().getCanonicalType() == IntType) { in isGraphicsRootRSFunc()
60 const clang::QualType &IntType = FD->getASTContext().IntTy; in validateSpecialFuncDecl() local
67 if (QT != IntType) { in validateSpecialFuncDecl()
77 if (FD->getReturnType().getCanonicalType() != IntType) { in validateSpecialFuncDecl()
/frameworks/libs/binary_translation/heavy_optimizer/riscv64/
Dfrontend.h117 template <typename IntType>
119 if constexpr (std::is_same_v<IntType, int8_t>) { in ToLoadOperandType()
121 } else if constexpr (std::is_same_v<IntType, int16_t>) { in ToLoadOperandType()
123 } else if constexpr (std::is_same_v<IntType, int32_t>) { in ToLoadOperandType()
125 } else if constexpr (std::is_same_v<IntType, int64_t> || std::is_same_v<IntType, uint64_t>) { in ToLoadOperandType()
127 } else if constexpr (std::is_same_v<IntType, uint8_t>) { in ToLoadOperandType()
129 } else if constexpr (std::is_same_v<IntType, uint16_t>) { in ToLoadOperandType()
131 } else if constexpr (std::is_same_v<IntType, uint32_t>) { in ToLoadOperandType()
134 static_assert(kDependentTypeFalse<IntType>); in ToLoadOperandType()
138 template <typename IntType>
[all …]
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/framework/util/
DParameterTest.kt34 navArgument("int_param") { type = NavType.IntType }, in navRouteTest()
45 navArgument("int_param") { type = NavType.IntType }, in navLinkTest()
84 navArgument("int_param") { type = NavType.IntType }, in normalizeTest()
123 navArgument("int_param") { type = NavType.IntType }, in getArgTest()
DUniqueIdTest.kt36 navArgument("int_param") { type = NavType.IntType }, in testUniquePageId()
46 navArgument("int_param") { type = NavType.IntType }, in testUniquePageId()
/frameworks/libs/binary_translation/intrinsics/common_to_x86/include/berberis/intrinsics/
Dmacro_assembler-inl.h33 template <typename IntType>
35 std::conditional_t<sizeof(IntType) <= sizeof(int32_t), std::make_signed_t<IntType>, int32_t>;
40 template <typename IntType>
42 kFormatIs<IntType, int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t, uint64_t>;
44 template <typename IntType>
45 static constexpr bool kIntTypeBW = kFormatIs<IntType, int8_t, uint8_t, int16_t, uint16_t>;
47 template <typename IntType>
49 kFormatIs<IntType, int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t>;
51 template <typename IntType>
52 static constexpr bool kIntTypeWL = kFormatIs<IntType, int16_t, uint16_t, int32_t, uint32_t>;
[all …]
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/util/
DParameter.kt50 NavType.IntType -> { in List()
79 NavType.IntType -> { in normalize()
113 if (navArg.argument.type == NavType.IntType && navArg.name == name) return true in containsIntArg()
/frameworks/libs/binary_translation/intrinsics/riscv64/include/berberis/intrinsics/riscv64/
Dvector_intrinsics.h1057 DEFINE_2OP_ARITHMETIC_INTRINSIC_VV(feq, using IntType = typename TypeTraits<ElementType>::Int;
1058 (~IntType{0}) * IntType(std::get<0>(Feq(args...))))
1059 DEFINE_2OP_ARITHMETIC_INTRINSIC_VX(feq, using IntType = typename TypeTraits<ElementType>::Int;
1060 (~IntType{0}) * IntType(std::get<0>(Feq(args...))))
1061 DEFINE_2OP_ARITHMETIC_INTRINSIC_VV(fne, using IntType = typename TypeTraits<ElementType>::Int;
1062 (~IntType{0}) * IntType(!std::get<0>(Feq(args...))))
1063 DEFINE_2OP_ARITHMETIC_INTRINSIC_VX(fne, using IntType = typename TypeTraits<ElementType>::Int;
1064 (~IntType{0}) * IntType(!std::get<0>(Feq(args...))))
1065 DEFINE_2OP_ARITHMETIC_INTRINSIC_VV(flt, using IntType = typename TypeTraits<ElementType>::Int;
1066 (~IntType{0}) * IntType(std::get<0>(Flt(args...))))
[all …]
/frameworks/libs/binary_translation/decoder/include/berberis/decoder/riscv64/
Dsemantics_player.h59 template <typename IntType>
63 return Amo<IntType, true, true>(opcode, arg1, arg2); in Amo()
65 return Amo<IntType, true, false>(opcode, arg1, arg2); in Amo()
69 return Amo<IntType, false, true>(opcode, arg1, arg2); in Amo()
71 return Amo<IntType, false, false>(opcode, arg1, arg2); in Amo()
76 template <typename IntType, bool aq, bool rl>
80 return listener_->template Lr<IntType, aq, rl>(arg1); in Amo()
82 return listener_->template Sc<IntType, aq, rl>(arg1, arg2); in Amo()
84 return listener_->template AmoSwap<IntType, aq, rl>(arg1, arg2); in Amo()
86 return listener_->template AmoAdd<IntType, aq, rl>(arg1, arg2); in Amo()
[all …]
/frameworks/libs/binary_translation/intrinsics/include/berberis/intrinsics/common/
Dintrinsics_float.h61 template <typename IntType,
63 sizeof(BaseType) == sizeof(IntType)>>
64 [[nodiscard]] constexpr operator Raw<IntType>() const {
66 Raw<IntType> result;
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/framework/common/
DSettingsPageTest.kt72 navArgument("int_param") { type = NavType.IntType }, in testParamPage()
95 navArgument("int_param") { type = NavType.IntType }, in testRtParamPage()
/frameworks/av/media/module/foundation/include/media/stagefright/foundation/
DFlagged.h321 using IntType = typename underlying_integral_type<Flag>::type;
322 static constexpr IntType value = T::sFlagMask;
324 static constexpr IntType effective_value = T::sEffectiveMask;
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/tests/testutils/
DSpaEnvironmentForTest.kt233 navArgument("int_param") { type = NavType.IntType }, in <lambda>()
240 navArgument("int_param") { type = NavType.IntType }, in <lambda>()
/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/page/
DArgumentPageModel.kt50 navArgument(INT_PARAM_NAME) { type = NavType.IntType }, in <lambda>()
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/template/app/
DTogglePermissionAppInfoPage.kt83 navArgument(USER_ID) { type = NavType.IntType }, in <lambda>()
/frameworks/libs/binary_translation/lite_translator/riscv64_to_x86_64/
Dlite_translator.h413 template <typename IntType, bool aq, bool rl>
419 template <typename IntType, bool aq, bool rl>
/frameworks/libs/binary_translation/interpreter/riscv64/
Dinterpreter.h141 template <typename IntType, bool aq, bool rl>
143 static_assert(std::is_integral_v<IntType>, "Lr: IntType must be integral"); in Lr()
144 static_assert(std::is_signed_v<IntType>, "Lr: IntType must be signed"); in Lr()
147 CHECK((addr % sizeof(IntType)) == 0ULL); in Lr()
148 return MemoryRegionReservation::Load<IntType>(&state_->cpu, addr, AqRlToStdMemoryOrder(aq, rl)); in Lr()
151 template <typename IntType, bool aq, bool rl>
152 Register Sc(int64_t addr, IntType val) { in Sc()
153 static_assert(std::is_integral_v<IntType>, "Sc: IntType must be integral"); in Sc()
154 static_assert(std::is_signed_v<IntType>, "Sc: IntType must be signed"); in Sc()
157 CHECK((addr % sizeof(IntType)) == 0ULL); in Sc()
[all …]

12