/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | e_scalbf.c | 24 scalbf(float x, int fn) in scalbf() argument 27 scalbf(float x, float fn) in scalbf() 31 return scalbnf(x,fn); in scalbf() 33 if ((isnanf)(x)||(isnanf)(fn)) return x*fn; in scalbf() 34 if (!finitef(fn)) { in scalbf() 35 if(fn>(float)0.0) return x*fn; in scalbf() 36 else return x/(-fn); in scalbf() 38 if (rintf(fn)!=fn) return (fn-fn)/(fn-fn); in scalbf() 39 if ( fn > (float)65000.0) return scalbnf(x, 65000); in scalbf() 40 if (-fn > (float)65000.0) return scalbnf(x,-65000); in scalbf() [all …]
|
D | e_scalb.c | 28 scalb(double x, int fn) in scalb() argument 31 scalb(double x, double fn) in scalb() 35 return scalbn(x,fn); in scalb() 37 if (isnan(x)||isnan(fn)) return x*fn; in scalb() 38 if (!finite(fn)) { in scalb() 39 if(fn>0.0) return x*fn; in scalb() 40 else return x/(-fn); in scalb() 42 if (rint(fn)!=fn) return (fn-fn)/(fn-fn); in scalb() 43 if ( fn > 65000.0) return scalbn(x, 65000); in scalb() 44 if (-fn > 65000.0) return scalbn(x,-65000); in scalb() [all …]
|
D | e_rem_pio2f.c | 49 double w,r,fn; in __ieee754_rem_pio2f() local 58 fn = rnint((float_t)x*invpio2); in __ieee754_rem_pio2f() 59 n = irint(fn); in __ieee754_rem_pio2f() 60 r = x-fn*pio2_1; in __ieee754_rem_pio2f() 61 w = fn*pio2_1t; in __ieee754_rem_pio2f()
|
D | e_rem_pio2.c | 57 double z,w,t,r,fn; in __ieee754_rem_pio2() local 130 fn = rnint((double_t)x*invpio2); in __ieee754_rem_pio2() 131 n = irint(fn); in __ieee754_rem_pio2() 132 r = x-fn*pio2_1; in __ieee754_rem_pio2() 133 w = fn*pio2_1t; /* 1st round good to 85 bit */ in __ieee754_rem_pio2() 142 w = fn*pio2_2; in __ieee754_rem_pio2() 144 w = fn*pio2_2t-((t-r)-w); in __ieee754_rem_pio2() 150 w = fn*pio2_3; in __ieee754_rem_pio2() 152 w = fn*pio2_3t-((t-r)-w); in __ieee754_rem_pio2()
|
D | s_fdim.c | 34 #define DECL(type, fn) \ argument 36 fn(type x, type y) \
|
D | s_lrint.c | 38 #define fn lrint macro 49 fn(type x) in fn() function
|
D | s_nearbyint.c | 46 #define DECL(type, fn, rint) \ argument 48 fn(type x) \
|
D | s_lround.c | 41 #define fn lround macro 60 fn(type x) in fn() function
|
/bionic/libc/private/ |
D | bionic_fortify.h | 54 static inline void __check_fd_set(const char* fn, int fd, size_t set_size) { in __check_fd_set() argument 56 __fortify_fatal("%s: file descriptor %d < 0", fn, fd); in __check_fd_set() 59 __fortify_fatal("%s: file descriptor %d >= FD_SETSIZE %d", fn, fd, FD_SETSIZE); in __check_fd_set() 62 __fortify_fatal("%s: set size %zu is too small to be an fd_set", fn, set_size); in __check_fd_set() 66 static inline void __check_pollfd_array(const char* fn, size_t fds_size, nfds_t fd_count) { in __check_pollfd_array() argument 70 fn, pollfd_array_length, fd_count); in __check_pollfd_array() 74 static inline void __check_count(const char* fn, const char* identifier, size_t value) { in __check_count() argument 76 __fortify_fatal("%s: %s %zu > SSIZE_MAX", fn, identifier, value); in __check_count() 80 static inline void __check_buffer_access(const char* fn, const char* action, in __check_buffer_access() argument 83 __fortify_fatal("%s: prevented %zu-byte %s %zu-byte buffer", fn, claim, action, actual); in __check_buffer_access()
|
/bionic/libm/upstream-freebsd/lib/msun/ld128/ |
D | e_rem_pio2l.h | 65 long double z,w,t,r,fn; in __ieee754_rem_pio2l() local 78 fn = rnintl(x * invpio2); in __ieee754_rem_pio2l() 79 n = i64rint(fn); in __ieee754_rem_pio2l() 80 r = x-fn*pio2_1; in __ieee754_rem_pio2l() 81 w = fn*pio2_1t; /* 1st round good to 180 bit */ in __ieee754_rem_pio2l() 92 w = fn*pio2_2; in __ieee754_rem_pio2l() 94 w = fn*pio2_2t-((t-r)-w); in __ieee754_rem_pio2l() 101 w = fn*pio2_3; in __ieee754_rem_pio2l() 103 w = fn*pio2_3t-((t-r)-w); in __ieee754_rem_pio2l()
|
D | k_expl.h | 243 double dr, fn, r2; in __k_expl() local 247 fn = rnint((double)x * INV_L); in __k_expl() 248 n = irint(fn); in __k_expl() 252 r1 = x - fn * L1; in __k_expl() 253 r2 = fn * -L2; in __k_expl()
|
D | s_expl.c | 207 double dr, dx, fn, r2; in expm1l() local 270 fn = rnint((double)x * INV_L); in expm1l() 271 n = irint(fn); in expm1l() 274 r1 = x - fn * L1; in expm1l() 275 r2 = fn * -L2; in expm1l()
|
/bionic/tests/ |
D | stdlib_test.cpp | 532 static void CheckStrToFloat(T fn(const char* s, char** end)) { in CheckStrToFloat() 535 EXPECT_PRED_FORMAT2(pred, 9.0, fn("9.0", nullptr)); in CheckStrToFloat() 536 EXPECT_PRED_FORMAT2(pred, 9.0, fn("0.9e1", nullptr)); in CheckStrToFloat() 537 EXPECT_PRED_FORMAT2(pred, 9.0, fn("0x1.2p3", nullptr)); in CheckStrToFloat() 541 EXPECT_PRED_FORMAT2(pred, 9.0, fn(s, &p)); in CheckStrToFloat() 544 EXPECT_TRUE(isnan(fn("+nan", nullptr))); in CheckStrToFloat() 545 EXPECT_TRUE(isnan(fn("nan", nullptr))); in CheckStrToFloat() 546 EXPECT_TRUE(isnan(fn("-nan", nullptr))); in CheckStrToFloat() 548 EXPECT_TRUE(isnan(fn("+nan(0xff)", nullptr))); in CheckStrToFloat() 549 EXPECT_TRUE(isnan(fn("nan(0xff)", nullptr))); in CheckStrToFloat() [all …]
|
D | dlfcn_test.cpp | 202 int (*fn)(void); in TEST() local 203 fn = reinterpret_cast<int (*)(void)>(sym); in TEST() 204 EXPECT_EQ(4, fn()); in TEST() 377 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "relo_test_get_answer")); in TEST() local 378 ASSERT_TRUE(fn != nullptr) << dlerror(); in TEST() 379 ASSERT_EQ(1, fn()); in TEST() 411 fn_t fn, fn2; in TEST() local 412 fn = reinterpret_cast<fn_t>(dlsym(RTLD_DEFAULT, "check_order_dlsym_get_answer")); in TEST() 413 ASSERT_TRUE(fn != nullptr) << dlerror(); in TEST() 417 ASSERT_EQ(42, fn()); in TEST() [all …]
|
D | pthread_dlfcn_test.cpp | 51 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "proxy_pthread_atfork")); in TEST() local 52 ASSERT_TRUE(fn != nullptr) << dlerror(); in TEST() 54 ASSERT_EQ(0, fn(AtForkPrepare2, AtForkParent2, AtForkChild2)); in TEST() 55 ASSERT_EQ(0, fn(AtForkPrepare3, AtForkParent3, AtForkChild3)); in TEST() 96 fn_t fn = reinterpret_cast<fn_t>(dlsym(g_atfork_test_handle, "proxy_pthread_atfork")); in TEST() local 97 ASSERT_TRUE(fn != nullptr) << dlerror(); in TEST()
|
D | wchar_test.cpp | 529 void TestSingleWcsToInt(WcsToIntFn<T> fn, const wchar_t* str, int base, in TestSingleWcsToInt() argument 532 EXPECT_EQ(expected_value, fn(str, &p, base)) << str << " " << base; in TestSingleWcsToInt() 537 void TestWcsToInt(WcsToIntFn<T> fn) { in TestWcsToInt() argument 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() 541 TestSingleWcsToInt(fn, L"01000", 8, static_cast<T>(512), 5); in TestWcsToInt() 542 TestSingleWcsToInt(fn, L"01000", 0, static_cast<T>(512), 5); in TestWcsToInt() 543 TestSingleWcsToInt(fn, L" 123 45", 0, static_cast<T>(123), 6); in TestWcsToInt() 544 TestSingleWcsToInt(fn, L" -123", 0, static_cast<T>(-123), 6); in TestWcsToInt() [all …]
|
/bionic/libc/bionic/ |
D | clone.cpp | 40 …flags, void* child_stack, int* parent_tid, void* tls, int* child_tid, int (*fn)(void*), void* arg); 45 extern "C" __LIBC_HIDDEN__ void __start_thread(int (*fn)(void*), void* arg) { in __start_thread() 53 int status = (*fn)(arg); in __start_thread() 58 int clone(int (*fn)(void*), void* child_stack, int flags, void* arg, ...) { in clone() 63 if (fn != nullptr && child_stack == nullptr) { in clone() 102 if (fn != nullptr) { in clone() 103 clone_result = __bionic_clone(flags, child_stack, parent_tid, new_tls, child_tid, fn, arg); in clone()
|
D | lfs64_support.cpp | 40 int (*fn)(const char*, const struct stat64*, int), int nopenfd) { in ftw64() 41 return ftw(dirpath, reinterpret_cast<ftw_fn>(fn), nopenfd); in ftw64() 45 int (*fn)(const char*, const struct stat64*, int, struct FTW*), in nftw64() 47 return nftw(dirpath, reinterpret_cast<nftw_fn>(fn), nopenfd, flags); in nftw64()
|
D | vdso.cpp | 44 __libc_globals->vdso[VDSO_CLOCK_GETTIME].fn); in clock_gettime() 53 __libc_globals->vdso[VDSO_CLOCK_GETRES].fn); in clock_getres() 62 __libc_globals->vdso[VDSO_GETTIMEOFDAY].fn); in gettimeofday() 72 auto vdso_time = reinterpret_cast<decltype(&time)>(__libc_globals->vdso[VDSO_TIME].fn); in time() 89 reinterpret_cast<decltype(&__riscv_hwprobe)>(__libc_globals->vdso[VDSO_RISCV_HWPROBE].fn); in __riscv_hwprobe() 176 vdso[i].fn = reinterpret_cast<void*>(vdso_addr + symtab[j].st_value); in __libc_init_vdso()
|
D | atexit.cpp | 51 void (*fn)(void*); // the __cxa_atexit callback member 123 while (src < size_ && array_[src].fn != nullptr) { in recompact() 132 if (entry.fn != nullptr) { in recompact() 235 if (g_array.append_entry({.fn = func, .arg = arg, .dso = dso})) { in __cxa_atexit() 254 if (g_array[i].fn == nullptr || (dso != nullptr && g_array[i].dso != dso)) continue; in __cxa_finalize() 261 entry.fn(entry.arg); in __cxa_finalize()
|
/bionic/libc/kernel/uapi/linux/netfilter/ |
D | x_tables.h | 81 #define XT_MATCH_ITERATE(type,e,fn,args...) \ argument 82 …target_offset; __i += __m->u.match_size) { __m = (void *) e + __i; __ret = fn(__m, ##args); if(__r… 84 #define XT_ENTRY_ITERATE_CONTINUE(type,entries,size,n,fn,args...) \ argument 85 …_n ++) { __entry = (void *) (entries) + __i; if(__n < n) continue; __ret = fn(__entry, ##args); if… 87 #define XT_ENTRY_ITERATE(type,entries,size,fn,args...) XT_ENTRY_ITERATE_CONTINUE(type, entries, siz… argument
|
/bionic/libc/kernel/uapi/linux/netfilter_bridge/ |
D | ebtables.h | 135 #define EBT_MATCH_ITERATE(e,fn,args...) \ argument 136 … + sizeof(struct ebt_entry_match)) { __match = (void *) (e) + __i; __ret = fn(__match, ##args); if… 138 #define EBT_WATCHER_ITERATE(e,fn,args...) \ argument 139 …izeof(struct ebt_entry_watcher)) { __watcher = (void *) (e) + __i; __ret = fn(__watcher, ##args); … 141 #define EBT_ENTRY_ITERATE(entries,size,fn,args...) \ argument 142 … for(__i = 0; __i < (size);) { __entry = (void *) (entries) + __i; __ret = fn(__entry, ##args); if…
|
/bionic/libc/kernel/uapi/linux/netfilter_ipv4/ |
D | ip_tables.h | 41 #define IPT_MATCH_ITERATE(e,fn,args...) XT_MATCH_ITERATE(struct ipt_entry, e, fn, ##args) argument 42 #define IPT_ENTRY_ITERATE(entries,size,fn,args...) XT_ENTRY_ITERATE(struct ipt_entry, entries, size… argument
|
/bionic/libc/kernel/uapi/linux/netfilter_ipv6/ |
D | ip6_tables.h | 41 #define IP6T_MATCH_ITERATE(e,fn,args...) XT_MATCH_ITERATE(struct ip6t_entry, e, fn, ##args) argument 42 #define IP6T_ENTRY_ITERATE(entries,size,fn,args...) XT_ENTRY_ITERATE(struct ip6t_entry, entries, si… argument
|
/bionic/benchmarks/ |
D | bionic_benchmarks.cpp | 438 tinyxml2::XMLNode* fn = doc.FirstChildElement("fn"); in RegisterXmlBenchmarks() local 439 while (fn) { in RegisterXmlBenchmarks() 440 if (fn == fn->ToComment()) { in RegisterXmlBenchmarks() 442 fn = fn->NextSibling(); in RegisterXmlBenchmarks() 446 auto fn_elem = fn->FirstChildElement("name"); in RegisterXmlBenchmarks() 454 auto* xml_args = fn->FirstChildElement("args"); in RegisterXmlBenchmarks() 462 auto* num_iterations_elem = fn->FirstChildElement("iterations"); in RegisterXmlBenchmarks() 468 auto* cpu_to_lock_elem = fn->FirstChildElement("cpu"); in RegisterXmlBenchmarks() 477 fn = fn->NextSibling(); in RegisterXmlBenchmarks()
|