Home
last modified time | relevance | path

Searched refs:T2 (Results 1 – 10 of 10) sorted by relevance

/art/runtime/interpreter/
Dsafe_math.h27 template <typename T1, typename T2>
29 typedef typename std::conditional<sizeof(T1) >= sizeof(T2), T1, T2>::type type;
33 template<template <typename OpT> class Op, typename T1, typename T2>
34 static inline typename select_bigger<T1, T2>::type SafeMath(T1 a, T2 b) { in SafeMath()
35 typedef typename select_bigger<T1, T2>::type biggest_T; in SafeMath()
38 static_assert(std::is_signed<T2>::value, "Expected T2 to be signed"); in SafeMath()
45 template<typename T1, typename T2>
46 static inline typename select_bigger<T1, T2>::type SafeAdd(T1 a, T2 b) { in SafeAdd()
51 template<typename T1, typename T2>
52 static inline typename select_bigger<T1, T2>::type SafeSub(T1 a, T2 b) { in SafeSub()
[all …]
/art/test/1962-multi-thread-events/src/art/
DTest1962.java56 Thread T2 = new Thread(threadRun, "T2 Thread"); in doTest() local
58 T2.start(); in doTest()
64 setupThread(T2, t2Events, target); in doTest()
69 T2.join(); in doTest()
/art/test/1974-resize-array/
Dexpected.txt47 T2: Test local multi-thread
48 T2: val is: [1, 2, 3] resize -2
49 T2: val is: [1]
50 T2: Same value? true
/art/libartbase/base/
Dbit_struct.h149 template <typename T2>
150 T2& Assign(T2& what, T value) { in Assign()
154 static_assert(std::is_base_of<BitStructField, T2>::value, "T2 must inherit BitStructField"); in Assign()
Dbit_utils.h444 template <typename T, typename T2>
445 inline static constexpr T BitFieldInsert(T value, T2 data, size_t lsb, size_t width) { in BitFieldInsert()
448 DCHECK_GE(MaxInt<T2>(width), data) << "Data out of range [too large] for bitwidth"; in BitFieldInsert()
449 DCHECK_LE(MinInt<T2>(width), data) << "Data out of range [too small] for bitwidth"; in BitFieldInsert()
451 DCHECK_EQ(static_cast<T2>(0), data) << "Data out of range [nonzero] for bitwidth 0"; in BitFieldInsert()
453 const auto data_mask = MaskLeastSignificant<T2>(width); in BitFieldInsert()
/art/test/1962-multi-thread-events/
Dexpected.txt4 Hit event on T2 Thread
/art/cmdline/
Dcmdline_parse_result.h113 template <typename T2>
114 static CmdlineParseResult<T> CastError(const CmdlineParseResult<T2>& other) { in CastError()
/art/cmdline/detail/
Dcmdline_parser_detail.h33 template <typename T2, typename TStream2 = std::ostream>
45 decltype(InsertionOperatorTest(FakeReference<TStream2>(), std::declval<T2>()))::value;
/art/runtime/verifier/
Dverifier_deps.cc619 template<typename T1, typename T2>
620 static inline void EncodeTuple(std::vector<uint8_t>* out, const std::tuple<T1, T2>& t) { in EncodeTuple()
625 template<typename T1, typename T2>
626 static inline void DecodeTuple(const uint8_t** in, const uint8_t* end, std::tuple<T1, T2>* t) { in DecodeTuple()
628 T2 v2 = Decode<T2>(DecodeUint32WithOverflowCheck(in, end)); in DecodeTuple()
632 template<typename T1, typename T2, typename T3>
633 static inline void EncodeTuple(std::vector<uint8_t>* out, const std::tuple<T1, T2, T3>& t) { in EncodeTuple() argument
639 template<typename T1, typename T2, typename T3>
640 static inline void DecodeTuple(const uint8_t** in, const uint8_t* end, std::tuple<T1, T2, T3>* t) { in DecodeTuple() argument
642 T2 v2 = Decode<T2>(DecodeUint32WithOverflowCheck(in, end)); in DecodeTuple()
/art/runtime/
Dsubtype_check_test.cc599 template <typename T, typename T2>
603 T2 transition_func, in EnsureStateChangedTestRecursiveGeneric()