Home
last modified time | relevance | path

Searched refs:T (Results 1 – 25 of 30) 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.h85 template<typename T>
88 LinkerTypeAllocator() : block_allocator_(sizeof(T)) {} in LinkerTypeAllocator()
89 T* alloc() { return reinterpret_cast<T*>(block_allocator_.alloc()); } in alloc()
90 void free(T* t) { block_allocator_.free(t); } in free()
/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/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/platform/bionic/
Dmacros.h42 template <typename T>
43 static inline T* align_down(T* 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* align_up(T* p, size_t align) { in align_up()
49 return reinterpret_cast<T*>(align_up(reinterpret_cast<uintptr_t>(p), align)); in align_up()
73 template <typename T, size_t N>
74 char (&ArraySizeHelper(T (&array)[N]))[N]; // NOLINT(readability/casting)
94 template <typename T>
95 static inline T* untag_address(T* p) { in untag_address()
[all …]
/bionic/tools/versioner/src/
DArch.h38 template <typename T>
41 template <typename T>
47 ArchMap(std::initializer_list<std::pair<Arch, T>> initializer) { in ArchMap()
53 T& operator[](Arch arch) {
57 const T& operator[](Arch arch) const {
70 ArchMapIterator<T> begin() const { in begin()
71 return ArchMapIterator<T>(*this, Arch::arm); in begin()
74 ArchMapIterator<T> end() const { in end()
75 return ArchMapIterator<T>(*this, Arch(size_t(Arch::x86_64) + 1)); in end()
79 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/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 …]
Dwchar_test.cpp433 template <typename T>
434 using WcsToIntFn = T (*)(const wchar_t*, wchar_t**, int);
436 template <typename T>
437 void TestSingleWcsToInt(WcsToIntFn<T> fn, const wchar_t* str, int base, in TestSingleWcsToInt()
438 T expected_value, ptrdiff_t expected_len) { in TestSingleWcsToInt()
444 template <typename T>
445 void TestWcsToInt(WcsToIntFn<T> fn) { in TestWcsToInt()
446 TestSingleWcsToInt(fn, L"123", 10, static_cast<T>(123), 3); in TestWcsToInt()
447 TestSingleWcsToInt(fn, L"123", 0, static_cast<T>(123), 3); in TestWcsToInt()
448 TestSingleWcsToInt(fn, L"123#", 10, static_cast<T>(123), 3); in TestWcsToInt()
[all …]
Dstdlib_test.cpp42 template <typename T = int (*)(char*)>
45 explicit GenericTemporaryFile(T mk_fn = mkstemp) : mk_fn_(mk_fn) { in GenericTemporaryFile()
65 T mk_fn_;
496 template <typename T>
497 static void CheckStrToFloat(T fn(const char* s, char** end)) { in CheckStrToFloat()
498 FpUlpEq<0, T> pred; in CheckStrToFloat()
529 EXPECT_EQ(std::numeric_limits<T>::infinity(), fn("+inf", nullptr)); in CheckStrToFloat()
530 EXPECT_EQ(std::numeric_limits<T>::infinity(), fn("inf", nullptr)); in CheckStrToFloat()
531 EXPECT_EQ(-std::numeric_limits<T>::infinity(), fn("-inf", nullptr)); in CheckStrToFloat()
533 EXPECT_EQ(std::numeric_limits<T>::infinity(), fn("+infinity", nullptr)); in CheckStrToFloat()
[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.cpp155 template <typename T>
156 static void run_watchpoint_test(std::function<void(T&)> child_func, size_t offset, size_t size) { in run_watchpoint_test()
157 alignas(16) T data{}; in run_watchpoint_test()
205 template <typename T>
206 static void watchpoint_stress_child(unsigned cpu, T& data) { in watchpoint_stress_child()
219 template <typename T>
221 run_watchpoint_test<T>(std::bind(watchpoint_stress_child<T>, cpu, std::placeholders::_1), 0, in run_watchpoint_stress()
222 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_;
Dstdio_test.cpp471 template <typename T>
472 static void CheckInfNan(int snprintf_fn(T*, size_t, const T*, ...), in CheckInfNan() argument
473 int sscanf_fn(const T*, const T*, ...), in CheckInfNan() argument
474 const T* fmt_string, const T* fmt, const T* fmt_plus, in CheckInfNan()
475 const T* minus_inf, const T* inf_, const T* plus_inf, in CheckInfNan()
476 const T* minus_nan, const T* nan_, const T* plus_nan) { in CheckInfNan()
477 T buf[BUFSIZ]; in CheckInfNan()
1060 template <typename T>
1061 static void CheckScanf(int sscanf_fn(const T*, const T*, ...), in CheckScanf() argument
1062 const T* input, const T* fmt, in CheckScanf()
Dgrp_pwd_test.cpp384 template <typename T>
385 static void expect_ids(T ids, bool is_group) { in expect_ids()
386 std::set<typename T::key_type> expected_ids; in expect_ids()
428 std::vector<typename T::key_type> missing_from_ids; in expect_ids()
431 std::vector<typename T::key_type> extra_in_ids; in expect_ids()
Dmath_test.cpp37 template<typename T> inline int test_capture_signbit(const T in) { in test_capture_signbit()
40 template<typename T> inline int test_capture_isfinite(const T in) { in test_capture_isfinite()
43 template<typename T> inline int test_capture_isnan(const T in) { in test_capture_isnan()
46 template<typename T> inline int test_capture_isinf(const T in) { in test_capture_isinf()
/bionic/libc/private/
DWriteProtected.h29 template <typename T>
31 T value;
41 template <typename T>
44 static_assert(sizeof(T) < PAGE_SIZE,
46 static_assert(__is_pod(T), "WriteProtected only supports POD contents");
58 const T* operator->() {
62 const T& operator*() {
74 WriteProtectedContents<T> contents;
Dbionic_elf_tls.h82 template <typename T> size_t reserve_type() { in reserve_type()
83 return reserve(sizeof(T), alignof(T)); in reserve_type()
/bionic/libc/bionic/
Dstrtol.cpp36 template <typename T, T Min, T Max> T StrToI(const char* nptr, char** endptr, int base) { in StrToI()
69 T cutoff = Min / base; in StrToI()
73 T acc = 0; in StrToI()
106 template <typename T, T Max> T StrToU(const char* nptr, char** endptr, int base) { in StrToU()
133 T cutoff = Max / static_cast<T>(base); in StrToU()
134 int cutlim = Max % static_cast<T>(base); in StrToU()
135 T acc = 0; in StrToU()
/bionic/libc/kernel/uapi/linux/
Dconst.h23 #define _AT(T,X) X
27 #define _AT(T,X) ((T) (X)) argument
/bionic/libc/malloc_debug/
DMapData.cpp80 template <typename T>
81 static inline bool get_val(MapEntry* entry, uintptr_t addr, T* store) { in get_val()
82 if (!(entry->flags & PROT_READ) || addr < entry->start || addr + sizeof(T) > entry->end) { in get_val()
86 if (addr & (sizeof(T) - 1)) { in get_val()
89 *store = *reinterpret_cast<T*>(addr); in get_val()
/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