Home
last modified time | relevance | path

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

12

/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/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_allocator.h78 template <typename T>
81 typedef T value_type;
82 typedef T* pointer;
83 typedef const T* const_pointer;
84 typedef T& reference;
85 typedef const T& const_reference;
89 T* allocate(size_t n, const T* hint = nullptr) {
90 size_t size = n * sizeof(T);
91 void* ptr = mmap(const_cast<T*>(hint), size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
101 return reinterpret_cast<T*>(ptr);
[all …]
Dlinker_block_allocator.h80 template<typename T>
83 LinkerTypeAllocator() : block_allocator_(sizeof(T)) {} in LinkerTypeAllocator()
84 T* alloc() { return reinterpret_cast<T*>(block_allocator_.alloc()); } in alloc()
85 void free(T* t) { block_allocator_.free(t); } in free()
/bionic/libc/private/
DWriteProtected.h31 template <typename T>
33 T value;
43 template <typename T>
45 static_assert(sizeof(T) < PAGE_SIZE,
47 static_assert(__is_pod(T), "WriteProtected only supports POD contents");
49 WriteProtectedContents<T> contents;
65 const T* operator->() {
69 const T& operator*() {
Dbionic_macros.h56 template <typename T>
57 static inline T* align_down(T* p, size_t align) { in align_down()
58 return reinterpret_cast<T*>(align_down(reinterpret_cast<uintptr_t>(p), align)); in align_down()
61 template <typename T>
62 static inline T* align_up(T* p, size_t align) { in align_up()
63 return reinterpret_cast<T*>(align_up(reinterpret_cast<uintptr_t>(p), align)); in align_up()
92 template <typename T, size_t N>
93 char (&ArraySizeHelper(T (&array)[N]))[N]; // NOLINT(readability/casting)
/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 …]
/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/bionic/
Dstrtol.cpp37 template <typename T, T Min, T Max> T StrToI(const char* nptr, char** endptr, int base) { in StrToI()
71 T cutoff = Min / base; in StrToI()
75 T acc = 0; in StrToI()
108 template <typename T, T Max> T StrToU(const char* nptr, char** endptr, int base) { in StrToU()
136 T cutoff = Max / static_cast<T>(base); in StrToU()
137 int cutlim = Max % static_cast<T>(base); in StrToU()
138 T acc = 0; in StrToU()
/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 …]
DTemporaryFile.h22 template <typename T = int (*)(char*)>
25 explicit GenericTemporaryFile(T mk_fn = mkstemp) : mk_fn(mk_fn) { in mk_fn()
36 explicit GenericTemporaryFile(const char* dirpath, T mk_fn = mkstemp) : mk_fn(mk_fn) { in mk_fn()
54 T mk_fn;
Dwchar_test.cpp411 template <typename T>
412 using WcsToIntFn = T (*)(const wchar_t*, wchar_t**, int);
414 template <typename T>
415 void TestSingleWcsToInt(WcsToIntFn<T> fn, const wchar_t* str, int base, in TestSingleWcsToInt()
416 T expected_value, ptrdiff_t expected_len) { in TestSingleWcsToInt()
422 template <typename T>
423 void TestWcsToInt(WcsToIntFn<T> fn) { in TestWcsToInt()
424 TestSingleWcsToInt(fn, L"123", 10, static_cast<T>(123), 3); in TestWcsToInt()
425 TestSingleWcsToInt(fn, L"123", 0, static_cast<T>(123), 3); in TestWcsToInt()
426 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()
Dstdlib_test.cpp420 template <typename T>
421 static void CheckStrToFloat(T fn(const char* s, char** end)) { in CheckStrToFloat()
422 FpUlpEq<0, T> pred; in CheckStrToFloat()
453 EXPECT_EQ(std::numeric_limits<T>::infinity(), fn("+inf", nullptr)); in CheckStrToFloat()
454 EXPECT_EQ(std::numeric_limits<T>::infinity(), fn("inf", nullptr)); in CheckStrToFloat()
455 EXPECT_EQ(-std::numeric_limits<T>::infinity(), fn("-inf", nullptr)); in CheckStrToFloat()
457 EXPECT_EQ(std::numeric_limits<T>::infinity(), fn("+infinity", nullptr)); in CheckStrToFloat()
458 EXPECT_EQ(std::numeric_limits<T>::infinity(), fn("infinity", nullptr)); in CheckStrToFloat()
459 EXPECT_EQ(-std::numeric_limits<T>::infinity(), fn("-infinity", nullptr)); in CheckStrToFloat()
461 EXPECT_EQ(std::numeric_limits<T>::infinity(), fn("+infinitude", &p)); in CheckStrToFloat()
[all …]
Dsys_ptrace_test.cpp162 template <typename T>
163 static void run_watchpoint_test(std::function<void(T&)> child_func, size_t offset, size_t size) { in run_watchpoint_test()
164 alignas(16) T data{}; in run_watchpoint_test()
212 template <typename T>
213 static void watchpoint_stress_child(unsigned cpu, T& data) { in watchpoint_stress_child()
226 template <typename T>
228 run_watchpoint_test<T>(std::bind(watchpoint_stress_child<T>, cpu, std::placeholders::_1), 0, in run_watchpoint_stress()
229 sizeof(T)); in run_watchpoint_stress()
Dgrp_pwd_file_test.cpp26 template <typename T>
29 FileUnmapper(T& file) : file_(file) { in FileUnmapper()
36 T& file_;
Dgrp_pwd_test.cpp210 template <typename T>
211 static void expect_ids(const T& ids) { in expect_ids()
212 std::set<typename T::key_type> expected_ids; in expect_ids()
238 std::vector<typename T::key_type> missing_from_ids; in expect_ids()
241 std::vector<typename T::key_type> extra_in_ids; in expect_ids()
/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.cpp69 template <typename T>
70 static inline bool get_val(MapEntry* entry, uintptr_t addr, T* store) { in get_val()
71 if (addr < entry->start || addr + sizeof(T) > entry->end) { in get_val()
75 if (addr & (sizeof(T) - 1)) { in get_val()
78 *store = *reinterpret_cast<T*>(addr); in get_val()
/bionic/tools/relocation_packer/src/
Ddelta_encoder_unittest.cc13 template <typename T>
17 std::vector<T>* relocations) { in AddRelocation()
18 T relocation; in AddRelocation()
25 template <typename T>
29 const T& relocation) { in CheckRelocation()
Dsleb128.cc15 template <typename T>
/bionic/libm/upstream-freebsd/lib/msun/ld128/
Ds_logl.c119 #define G(i) (T[(i)].G)
120 #define F_hi(i) (T[(i)].F_hi)
121 #define F_lo(i) (T[(i)].F_lo)
132 } T[TSIZE] = { variable

12