Home
last modified time | relevance | path

Searched refs:T (Results 1 – 25 of 35) sorted by relevance

12

/bionic/linker/
Dlinked_list.h33 template<typename T>
35 LinkedListEntry<T>* next;
36 T* element;
40 template<typename T>
44 LinkedListIterator(const LinkedListIterator<T>& that) : entry_(that.entry_) {} in LinkedListIterator()
45 explicit LinkedListIterator(LinkedListEntry<T>* entry) : entry_(entry) {} in LinkedListIterator()
47 LinkedListIterator<T>& operator=(const LinkedListIterator<T>& that) {
52 LinkedListIterator<T>& operator++() {
57 T* const operator*() {
61 bool operator==(const LinkedListIterator<T>& that) const {
[all …]
Dlinker_block_allocator.h88 template<typename T>
91 LinkerTypeAllocator() : block_allocator_(sizeof(T)) {} in LinkerTypeAllocator()
92 T* alloc() { return reinterpret_cast<T*>(block_allocator_.alloc()); } in alloc()
93 void free(T* t) { block_allocator_.free(t); } in free()
Dlinker_note_gnu_property_test.cpp107 template <typename T>
108 bool push(ElfW(Word) pr_type, ElfW(Word) pr_datasz, const T* pr_data) { in push()
160 template <typename T>
161 void dump_member(const char* name, T value) const { in dump_member()
167 template <typename T>
168 void step(T value) { in step()
/bionic/libm/upstream-freebsd/lib/msun/src/
Ds_cbrtf.c33 double r,T; in cbrtf() local
60 T=t; in cbrtf()
61 r=T*T*T; in cbrtf()
62 T=T*((double)x+x+r)/(x+r+r); in cbrtf()
68 r=T*T*T; in cbrtf()
69 T=T*((double)x+x+r)/(x+r+r); in cbrtf()
72 return(T); in cbrtf()
Dk_tan.c75 #define T xxx macro
102 r = T[1] + w * (T[3] + w * (T[5] + w * (T[7] + w * (T[9] + in __kernel_tan()
103 w * T[11])))); in __kernel_tan()
104 v = z * (T[2] + w * (T[4] + w * (T[6] + w * (T[8] + w * (T[10] + in __kernel_tan()
105 w * T[12]))))); in __kernel_tan()
108 r += T[0] * s; in __kernel_tan()
Dk_tanf.c26 T[] = { variable
58 r = T[4]+z*T[5]; in __kernel_tandf()
59 t = T[2]+z*T[3]; in __kernel_tandf()
62 u = T[0]+z*T[1]; in __kernel_tandf()
/bionic/libc/dns/nameser/
Dns_print.c71 #define T(x) \ macro
126 T(addstr("\t\t\t", (size_t)3, &buf, &buflen)); in ns_sprintrrf()
132 T(addstr("@\t\t\t", (size_t)4, &buf, &buflen)); in ns_sprintrrf()
134 T(addstr(name, (size_t)len, &buf, &buflen)); in ns_sprintrrf()
140 T(addstr(".", (size_t)1, &buf, &buflen)); in ns_sprintrrf()
143 T(spaced = addtab((size_t)len, 24, spaced, &buf, &buflen)); in ns_sprintrrf()
150 T(x = ns_format_ttl(ttl, buf, buflen)); in ns_sprintrrf()
153 T(addstr(tmp, (size_t)len, &buf, &buflen)); in ns_sprintrrf()
154 T(spaced = addtab((size_t)(x + len), (size_t)16, spaced, &buf, &buflen)); in ns_sprintrrf()
174 T(addname(msg, msglen, &rdata, origin, &buf, &buflen)); in ns_sprintrrf()
[all …]
Dns_ttl.c45 #define T(x) do { if ((x) < 0) return (-1); } while(0) macro
63 T(fmt1(weeks, 'W', &dst, &dstlen)); in ns_format_ttl()
67 T(fmt1(days, 'D', &dst, &dstlen)); in ns_format_ttl()
71 T(fmt1(hours, 'H', &dst, &dstlen)); in ns_format_ttl()
75 T(fmt1(mins, 'M', &dst, &dstlen)); in ns_format_ttl()
79 T(fmt1(secs, 'S', &dst, &dstlen)); in ns_format_ttl()
/bionic/libc/platform/bionic/
Dmacros.h42 template <typename T>
43 static inline T* _Nonnull align_down(T* _Nonnull p, size_t align) { in align_down()
44 return reinterpret_cast<T*>(align_down(reinterpret_cast<uintptr_t>(p), align)); in align_down()
47 template <typename T>
48 static inline T* _Nonnull align_up(T* _Nonnull p, size_t align) { in align_up()
49 return reinterpret_cast<T*>(align_up(reinterpret_cast<uintptr_t>(p), align)); in align_up()
75 template <typename T, size_t N>
76 char (&ArraySizeHelper(T (&array)[N]))[N]; // NOLINT(readability/casting)
96 template <typename T>
97 static inline T* _Nonnull untag_address(T* _Nonnull p) { in untag_address()
[all …]
/bionic/tools/versioner/src/
DArch.h39 template <typename T>
42 template <typename T>
48 ArchMap(std::initializer_list<std::pair<Arch, T>> initializer) { in ArchMap()
54 T& operator[](Arch arch) {
58 const T& operator[](Arch arch) const {
71 ArchMapIterator<T> begin() const { in begin()
72 return ArchMapIterator<T>(*this, Arch::arm); in begin()
75 ArchMapIterator<T> end() const { in end()
76 return ArchMapIterator<T>(*this, Arch(size_t(Arch::x86_64) + 1)); in end()
80 std::array<T, size_t(Arch::x86_64) + 1> data_ = {};
[all …]
Dversioner.cpp272 template<typename T>
273 static std::vector<T> Intersection(const std::set<T>& a, const std::set<T>& b) { in Intersection()
274 std::vector<T> intersection; in Intersection()
/bionic/libc/private/
DWriteProtected.h30 template <typename T>
32 T value;
42 template <typename T>
45 static_assert(sizeof(T) < max_android_page_size(),
58 const T* operator->() {
62 const T& operator*() {
74 WriteProtectedContents<T> contents;
76 WriteProtectedContents<T>* contents_addr() { in contents_addr()
Dbionic_elf_tls.h45 template <typename T>
47 return TlsAlign{.value = alignof(T)}; in of_type()
55 template <typename T>
57 return TlsAlignedSize{.size = sizeof(T), .align = TlsAlign::of_type<T>()}; in of_type()
111 template <typename T> size_t reserve_type() { in reserve_type()
112 return reserve(TlsAlignedSize::of_type<T>()); in reserve_type()
/bionic/tests/
Dmath_data_test.h53 template <typename RT1, typename RT2, typename T>
57 T input;
60 template <typename RT1, typename T>
64 T input;
83 template <typename T> union fp_u;
129 template <typename T>
130 static inline auto SignAndMagnitudeToBiased(const T& value) -> decltype(fp_u<T>::sign_magnitude) {
131 fp_u<T> u;
142 template <typename T>
143 size_t UlpDistance(T lhs, T rhs) {
[all …]
Dstdlib_test.cpp44 template <typename T = int (*)(char*)>
47 explicit GenericTemporaryFile(T mk_fn = mkstemp) : mk_fn_(mk_fn) { in GenericTemporaryFile()
67 T mk_fn_;
531 template <typename T>
532 static void CheckStrToFloat(T fn(const char* s, char** end)) { in CheckStrToFloat()
533 FpUlpEq<0, T> pred; in CheckStrToFloat()
564 EXPECT_EQ(std::numeric_limits<T>::infinity(), fn("+inf", nullptr)); in CheckStrToFloat()
565 EXPECT_EQ(std::numeric_limits<T>::infinity(), fn("inf", nullptr)); in CheckStrToFloat()
566 EXPECT_EQ(-std::numeric_limits<T>::infinity(), fn("-inf", nullptr)); in CheckStrToFloat()
568 EXPECT_EQ(std::numeric_limits<T>::infinity(), fn("+infinity", nullptr)); in CheckStrToFloat()
[all …]
Dwchar_test.cpp525 template <typename T>
526 using WcsToIntFn = T (*)(const wchar_t*, wchar_t**, int);
528 template <typename T>
529 void TestSingleWcsToInt(WcsToIntFn<T> fn, const wchar_t* str, int base, in TestSingleWcsToInt()
530 T expected_value, ptrdiff_t expected_len) { in TestSingleWcsToInt()
536 template <typename T>
537 void TestWcsToInt(WcsToIntFn<T> fn) { in TestWcsToInt()
538 TestSingleWcsToInt(fn, L"123", 10, static_cast<T>(123), 3); in TestWcsToInt()
539 TestSingleWcsToInt(fn, L"123", 0, static_cast<T>(123), 3); in TestWcsToInt()
540 TestSingleWcsToInt(fn, L"123#", 10, static_cast<T>(123), 3); in TestWcsToInt()
[all …]
Dsstream_test.cpp25 template <typename T>
26 static void CheckOverflow(T expected, const char* value, bool should_overflow) { in CheckOverflow()
28 T result = T(0); in CheckOverflow()
Dsys_ptrace_test.cpp157 template <typename T>
158 static void run_watchpoint_test(std::function<void(T&)> child_func, size_t offset, size_t size) { in run_watchpoint_test()
159 alignas(16) T data{}; in run_watchpoint_test()
207 template <typename T>
208 static void watchpoint_stress_child(unsigned cpu, T& data) { in watchpoint_stress_child()
221 template <typename T>
223 run_watchpoint_test<T>(std::bind(watchpoint_stress_child<T>, cpu, std::placeholders::_1), 0, in run_watchpoint_stress()
224 sizeof(T)); in run_watchpoint_stress()
Dgrp_pwd_file_test.cpp26 template <typename T>
29 explicit FileUnmapper(T& file) : file_(file) { in FileUnmapper()
36 T& file_;
/bionic/libc/kernel/uapi/linux/
Dconst.h11 #define _AT(T,X) X
15 #define _AT(T,X) ((T) (X)) argument
Dstddef.h15 #define __DECLARE_FLEX_ARRAY(T,member) T member[0] argument
/bionic/tests/libs/
Dstack_tagging_helper.cpp35 template <typename T>
36 static inline void mte_set_tag(T* p) { in mte_set_tag()
45 template <typename T>
46 static inline T* mte_get_tag(T* p) { in mte_get_tag()
56 template <typename T>
57 static inline T* mte_increment_tag(T* p) { in mte_increment_tag()
58 T* res; in mte_increment_tag()
Delftls_dtv_resize_helper.cpp42 template <class T>
43 T fix_nullptr(T&& arg) { in fix_nullptr()
/bionic/libc/bionic/
Dstrtol.cpp37 template <typename T, T Min, T Max, typename CharT>
38 __attribute__((always_inline)) T StrToI(const CharT* s, CharT** end_ptr, int base) { in StrToI()
75 T acc = 0; in StrToI()
/bionic/libm/upstream-freebsd/lib/msun/ld128/
Ds_logl.c121 #define G(i) (T[(i)].G)
122 #define F_hi(i) (T[(i)].F_hi)
123 #define F_lo(i) (T[(i)].F_lo)
134 } T[TSIZE] = { variable

12