Home
last modified time | relevance | path

Searched refs:U (Results 1 – 25 of 44) sorted by relevance

12

/system/bt/stack/smp/
Dp_256_multprecision.cc228 uint32_t U; in multiprecision_mult() local
231 U = V = W = 0; in multiprecision_mult()
236 U = 0; in multiprecision_mult()
242 V = V + U; in multiprecision_mult()
243 U = (V < U); in multiprecision_mult()
244 U += W; in multiprecision_mult()
246 U += (V < c[i + j]); in multiprecision_mult()
249 c[i + keyLength] = U; in multiprecision_mult()
254 uint32_t U; in multiprecision_fast_mod() local
259 U = c[0] < a[0]; in multiprecision_fast_mod()
[all …]
/system/core/libutils/include/utils/
DStrongPointer.h36 template<typename U> \
37 inline bool operator _op_ (const sp<U>& o) const { \
40 template<typename U> \
41 inline bool operator _op_ (const U* o) const { \
49 template<template<typename C> class comparator, typename T, typename U>
50 static inline bool _sp_compare_(T* a, U* b) { in _sp_compare_()
51 return comparator<typename std::common_type<T*, U*>::type>()(a, b); in _sp_compare_()
57 template<typename U> \
58 inline bool operator _op_ (const sp<U>& o) const { \
61 template<typename U> \
[all …]
DRefBase.h197 template<typename U> \
198 inline bool operator _op_ (const U* o) const { \
206 template<template<typename C> class comparator, typename T, typename U>
207 static inline bool _wp_compare_(T* a, U* b) { in _wp_compare_()
208 return comparator<typename std::common_type<T*, U*>::type>()(a, b); in _wp_compare_()
214 template<typename U> \
215 inline bool operator _op_ (const U* o) const { \
371 template<typename U> wp(U* other); // NOLINT(implicit)
372 template<typename U> wp(const sp<U>& other); // NOLINT(implicit)
373 template<typename U> wp(const wp<U>& other); // NOLINT(implicit)
[all …]
DList.h86 typename U,
90 typedef _ListIterator<U, Constness> _Iter;
91 typedef typename Constness<U>::NodePtr _NodePtr;
92 typedef typename Constness<U>::Type _Type;
271 typename U,
276 _ListIterator<U, CL> first, _ListIterator<U, CR> last) const in distance() argument
DTypeHelpers.h58 template <typename T, typename U>
63 traits<T>::has_trivial_ctor && traits<U>::has_trivial_ctor,
65 traits<T>::has_trivial_dtor && traits<U>::has_trivial_dtor,
67 traits<T>::has_trivial_copy && traits<U>::has_trivial_copy,
69 traits<T>::has_trivial_move && traits<U>::has_trivial_move
/system/core/libpixelflinger/codeflinger/tinyutils/
Dsmartpointer.h37 template<typename U> \
38 inline bool operator _op_ (const sp<U>& o) const { \
41 template<typename U> \
42 inline bool operator _op_ (const U* o) const { \
56 template<typename U> sp(U* other); // NOLINT, implicit
57 template<typename U> sp(const sp<U>& other); // NOLINT, implicit
66 template<typename U> sp& operator = (const sp<U>& other);
67 template<typename U> sp& operator = (U* other);
110 template<typename T> template<typename U>
111 sp<T>::sp(U* other) : m_ptr(other) in sp()
[all …]
/system/media/audio_utils/include/audio_utils/
Dsafe_math.h24 template <typename T, typename U,
26 std::is_same<std::decay_t<T>, std::decay_t<U>>{}>>
29 auto safe_sub_overflow(const T& a, const U& b) { in safe_sub_overflow()
37 template <typename T, typename U,
39 std::is_same<std::decay_t<T>, std::decay_t<U>>{}>>
42 auto safe_add_overflow(const T& a, const U& b) { in safe_add_overflow()
DSimpleLog.h134 template <typename U>
135 void logs(int64_t nowNs, U&& buffer) in logs()
142 mLog.emplace_back(nowNs, std::forward<U>(buffer)); in logs()
/system/iorap/src/common/
Dexpected.h64 template <typename U>
65 constexpr expected_data(U&& either, expected_tag_right)
66 : right_{std::forward<U>(either)}, is_right_{true} {}
68 template <typename U>
69 constexpr expected_data(U&& either, expected_tag_error)
70 : error_{std::forward<U>(either)}, is_right_{false} {}
211 template <typename U>
212 constexpr expected_data(U&& either, expected_tag_right)
213 : right_{std::forward<U>(either)}, is_right_{true} {}
215 template <typename U>
[all …]
Dintrospection.h71 template <typename U>
72 static constexpr decltype(auto) value(U&& v) {
73 static_assert(std::is_same_v<T, std::decay_t<U>>, "U must be cvref of T");
75 using U_noref = std::remove_reference_t<U>;
Dtype.h162 template <typename T, typename U>
163 constexpr decltype(auto) aliasing_forward(U&& val) noexcept { in decltype()
/system/libhidl/base/include/hidl/
DStatus.h144 template <typename T, typename U>
145 friend Return<U> StatusOf(const Return<T> &other);
243 template<typename U> Return(sp<U> v) : details::return_status(), mVal{v} {} in Return()
244 template<typename U> Return(U* v) : details::return_status(), mVal{v} {} in Return()
287 template <typename T, typename U>
288 Return<U> StatusOf(const Return<T> &other) { in StatusOf()
292 return Return<U>{other.mStatus}; in StatusOf()
/system/core/libmemunreachable/
DAllocator.h113 template <typename U>
114 STLAllocator(const STLAllocator<U>& other) in STLAllocator()
125 template <typename U>
126 bool operator==(const STLAllocator<U>& other) const {
129 template <typename U>
130 inline bool operator!=(const STLAllocator<U>& other) const {
134 template <typename U>
153 template <typename U>
154 Allocator(const STLAllocator<U>& other) in Allocator()
/system/netd/libnetdutils/include/netdutils/
DMisc.h26 template <typename U, typename V>
27 inline const V& findWithDefault(const std::map<U, V>& map, const U& key, const V& dflt) { in findWithDefault() argument
DInternetAddresses.h37 uint8_t cidrlen{0U}; // written and read in host-byte order
38 in_port_t port{0U}; // written and read in host-byte order
39 uint32_t scope_id{0U};
128 : mData({AF_INET, IPV4_ADDR_BITS, 0U, 0U, {.v4 = ipv4}}) {} in IPAddress()
130 : mData({AF_INET6, IPV6_ADDR_BITS, 0U, 0U, {.v6 = ipv6}}) {} in IPAddress()
134 0U, in IPAddress()
136 usesScopedIds(ipv6) ? scope_id : 0U, in IPAddress()
139 mData.scope_id = (family() == AF_INET6 && usesScopedIds(mData.ip.v6)) ? scope_id : 0U; in IPAddress()
166 mData.port = 0U; in IPAddress()
170 mData.scope_id = 0U; in IPAddress()
[all …]
DMemBlock.h34 MemBlock() : MemBlock(0U) {} in MemBlock()
36 : mData((len > 0U) ? new uint8_t[len]{} : nullptr), in MemBlock()
DSlice.h90 template <typename U, size_t V>
91 inline const Slice makeSlice(const std::array<U, V>& a) { in makeSlice() argument
92 return {const_cast<U*>(a.data()), a.size() * sizeof(U)}; in makeSlice()
/system/bt/packet/base/
Dpacket.h70 template <class T, class U>
71 static std::shared_ptr<T> Specialize(const std::shared_ptr<U>& pkt) { in Specialize()
72 static_assert(std::is_convertible<U*, Packet*>::value, in Specialize()
76 static_assert(std::is_convertible<T*, U*>::value, in Specialize()
/system/core/property_service/libpropertyinfoserializer/include/property_info_serializer/
Dproperty_info_serializer.h28 template <typename T, typename U, typename V>
29 PropertyInfoEntry(T&& name, U&& context, V&& type, bool exact_match) in PropertyInfoEntry()
31 context(std::forward<U>(context)), in PropertyInfoEntry()
/system/keymaster/include/keymaster/
DList.h84 typename U,
88 typedef _ListIterator<U, Constness> _Iter;
89 typedef typename Constness<U>::NodePtr _NodePtr;
90 typedef typename Constness<U>::Type _Type;
269 typename U,
274 _ListIterator<U, CL> first, _ListIterator<U, CR> last) const in distance() argument
/system/apex/apexd/
Dstring_log.h37 template <class U>
38 T& operator<<(const U& t) {
/system/iorap/src/perfetto/
Drx_producer.h83 template <typename U>
84 std::optional<U> MaybeUnserialize() { in MaybeUnserialize()
85 U unencoded; in MaybeUnserialize()
/system/core/init/
Dresult.h158 template <typename U, typename... V,
159 typename = std::enable_if_t<!(std::is_same_v<std::decay_t<U>, Result<T>> &&
161 Result(U&& result, V&&... results) in Result()
162 : contents_(std::in_place_index_t<0>(), std::forward<U>(result), in Result()
/system/core/libpixelflinger/codeflinger/
Dtexturing.cpp465 int U = 0; in build_textures() local
506 U = scratches.obtain(); in build_textures()
517 AND(AL, 0, U, u, imm((1<<FRAC_BITS)-1)); in build_textures()
638 case 1: filter8(parts, texel, tmu, U, V, txPtr, FRAC_BITS); break; in build_textures()
639 case 2: filter16(parts, texel, tmu, U, V, txPtr, FRAC_BITS); break; in build_textures()
640 case 3: filter24(parts, texel, tmu, U, V, txPtr, FRAC_BITS); break; in build_textures()
641 case 4: filter32(parts, texel, tmu, U, V, txPtr, FRAC_BITS); break; in build_textures()
688 int U, int V, pointer_t& txPtr, in filter8() argument
720 SMULBB(AL, u, U, V); in filter8()
725 RSB(AL, 0, U, U, imm(1<<FRAC_BITS)); in filter8()
[all …]
/system/tools/aidl/tests/
Dtest_helpers.h31 template <typename T, typename U, typename V>
35 U input) { in RepeatPrimitive()

12