/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | e_scalbf.c | 24 __ieee754_scalbf(float x, int fn) in __ieee754_scalbf() argument 27 __ieee754_scalbf(float x, float fn) in __ieee754_scalbf() 31 return scalbnf(x,fn); in __ieee754_scalbf() 33 if ((isnanf)(x)||(isnanf)(fn)) return x*fn; in __ieee754_scalbf() 34 if (!finitef(fn)) { in __ieee754_scalbf() 35 if(fn>(float)0.0) return x*fn; in __ieee754_scalbf() 36 else return x/(-fn); in __ieee754_scalbf() 38 if (rintf(fn)!=fn) return (fn-fn)/(fn-fn); in __ieee754_scalbf() 39 if ( fn > (float)65000.0) return scalbnf(x, 65000); in __ieee754_scalbf() 40 if (-fn > (float)65000.0) return scalbnf(x,-65000); in __ieee754_scalbf() [all …]
|
D | e_scalb.c | 28 __ieee754_scalb(double x, int fn) in __ieee754_scalb() argument 31 __ieee754_scalb(double x, double fn) in __ieee754_scalb() 35 return scalbn(x,fn); in __ieee754_scalb() 37 if (isnan(x)||isnan(fn)) return x*fn; in __ieee754_scalb() 38 if (!finite(fn)) { in __ieee754_scalb() 39 if(fn>0.0) return x*fn; in __ieee754_scalb() 40 else return x/(-fn); in __ieee754_scalb() 42 if (rint(fn)!=fn) return (fn-fn)/(fn-fn); in __ieee754_scalb() 43 if ( fn > 65000.0) return scalbn(x, 65000); in __ieee754_scalb() 44 if (-fn > 65000.0) return scalbn(x,-65000); in __ieee754_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 58 fn(type x) in fn() function
|
D | s_llrintl.c | 7 #define fn llrintl macro
|
D | s_llrint.c | 7 #define fn llrint macro
|
/bionic/libc/private/ |
D | bionic_fortify.h | 50 static inline void __check_fd_set(const char* fn, int fd, size_t set_size) { in __check_fd_set() argument 52 __fortify_fatal("%s: file descriptor %d < 0", fn, fd); in __check_fd_set() 55 __fortify_fatal("%s: file descriptor %d >= FD_SETSIZE %zu", fn, fd, FD_SETSIZE); in __check_fd_set() 58 __fortify_fatal("%s: set size %zu is too small to be an fd_set", fn, set_size); in __check_fd_set() 62 static inline void __check_pollfd_array(const char* fn, size_t fds_size, nfds_t fd_count) { in __check_pollfd_array() argument 66 fn, pollfd_array_length, fd_count); in __check_pollfd_array() 70 static inline void __check_count(const char* fn, const char* identifier, size_t value) { in __check_count() argument 72 __fortify_fatal("%s: %s %zu > SSIZE_MAX", fn, identifier, value); in __check_count() 76 static inline void __check_buffer_access(const char* fn, const char* action, in __check_buffer_access() argument 79 __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()
|
/bionic/libc/bionic/ |
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 | 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 | vdso.cpp | 38 __libc_globals->vdso[VDSO_CLOCK_GETTIME].fn); in clock_gettime() 47 __libc_globals->vdso[VDSO_CLOCK_GETRES].fn); in clock_getres() 56 __libc_globals->vdso[VDSO_GETTIMEOFDAY].fn); in gettimeofday() 64 auto vdso_time = reinterpret_cast<decltype(&time)>(__libc_globals->vdso[VDSO_TIME].fn); in time() 135 vdso[j].fn = reinterpret_cast<void*>(vdso_addr + symtab[i].st_value); in __libc_init_vdso()
|
/bionic/tests/ |
D | dlfcn_test.cpp | 216 int (*fn)(void); in TEST() local 217 fn = reinterpret_cast<int (*)(void)>(sym); in TEST() 218 EXPECT_EQ(4, fn()); in TEST() 391 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "relo_test_get_answer")); in TEST() local 392 ASSERT_TRUE(fn != nullptr) << dlerror(); in TEST() 393 ASSERT_EQ(1, fn()); in TEST() 425 fn_t fn, fn2; in TEST() local 426 fn = reinterpret_cast<fn_t>(dlsym(RTLD_DEFAULT, "check_order_dlsym_get_answer")); in TEST() 427 ASSERT_TRUE(fn != nullptr) << dlerror(); in TEST() 431 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 | stdlib_test.cpp | 442 static void CheckStrToFloat(T fn(const char* s, char** end)) { in CheckStrToFloat() 445 EXPECT_PRED_FORMAT2(pred, 9.0, fn("9.0", nullptr)); in CheckStrToFloat() 446 EXPECT_PRED_FORMAT2(pred, 9.0, fn("0.9e1", nullptr)); in CheckStrToFloat() 447 EXPECT_PRED_FORMAT2(pred, 9.0, fn("0x1.2p3", nullptr)); in CheckStrToFloat() 451 EXPECT_PRED_FORMAT2(pred, 9.0, fn(s, &p)); in CheckStrToFloat() 454 EXPECT_TRUE(isnan(fn("+nan", nullptr))); in CheckStrToFloat() 455 EXPECT_TRUE(isnan(fn("nan", nullptr))); in CheckStrToFloat() 456 EXPECT_TRUE(isnan(fn("-nan", nullptr))); in CheckStrToFloat() 458 EXPECT_TRUE(isnan(fn("+nan(0xff)", nullptr))); in CheckStrToFloat() 459 EXPECT_TRUE(isnan(fn("nan(0xff)", nullptr))); in CheckStrToFloat() [all …]
|
D | wchar_test.cpp | 437 void TestSingleWcsToInt(WcsToIntFn<T> fn, const wchar_t* str, int base, in TestSingleWcsToInt() argument 440 ASSERT_EQ(expected_value, fn(str, &p, base)); in TestSingleWcsToInt() 445 void TestWcsToInt(WcsToIntFn<T> fn) { in TestWcsToInt() argument 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() 449 TestSingleWcsToInt(fn, L"01000", 8, static_cast<T>(512), 5); in TestWcsToInt() 450 TestSingleWcsToInt(fn, L"01000", 0, static_cast<T>(512), 5); in TestWcsToInt() 451 TestSingleWcsToInt(fn, L" 123 45", 0, static_cast<T>(123), 6); in TestWcsToInt() 452 TestSingleWcsToInt(fn, L" -123", 0, static_cast<T>(-123), 6); in TestWcsToInt() [all …]
|
/bionic/libc/kernel/uapi/linux/netfilter/ |
D | x_tables.h | 93 #define XT_MATCH_ITERATE(type,e,fn,args...) \ argument 94 …target_offset; __i += __m->u.match_size) { __m = (void *) e + __i; __ret = fn(__m, ##args); if(__r… 96 #define XT_ENTRY_ITERATE_CONTINUE(type,entries,size,n,fn,args...) \ argument 97 …_n ++) { __entry = (void *) (entries) + __i; if(__n < n) continue; __ret = fn(__entry, ##args); if… 99 #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 | 146 #define EBT_MATCH_ITERATE(e,fn,args...) \ argument 147 … + sizeof(struct ebt_entry_match)) { __match = (void *) (e) + __i; __ret = fn(__match, ##args); if… 149 #define EBT_WATCHER_ITERATE(e,fn,args...) \ argument 150 …izeof(struct ebt_entry_watcher)) { __watcher = (void *) (e) + __i; __ret = fn(__watcher, ##args); … 152 #define EBT_ENTRY_ITERATE(entries,size,fn,args...) \ argument 153 … for(__i = 0; __i < (size);) { __entry = (void *) (entries) + __i; __ret = fn(__entry, ##args); if…
|
/bionic/libc/arch-mips/bionic/ |
D | __bionic_clone.S | 41 lw $t0,20($sp) # fn 43 sw $t0,0($a1) # fn
|
/bionic/libc/arch-mips64/bionic/ |
D | __bionic_clone.S | 53 PTR_L $t0,FRAMESZ+5*REGSZ($sp) # fn 55 PTR_S $t0,FRAME_FN($a1) # fn 60 PTR_S $a5,FRAME_FN($a1) # fn
|
/bionic/libc/kernel/uapi/linux/netfilter_ipv4/ |
D | ip_tables.h | 53 #define IPT_MATCH_ITERATE(e,fn,args...) XT_MATCH_ITERATE(struct ipt_entry, e, fn, ##args) argument 54 #define IPT_ENTRY_ITERATE(entries,size,fn,args...) XT_ENTRY_ITERATE(struct ipt_entry, entries, size… argument
|