Home
last modified time | relevance | path

Searched refs:fn (Results 1 – 25 of 53) sorted by relevance

123

/bionic/libm/upstream-freebsd/lib/msun/src/
De_scalb.c28 __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 …]
De_scalbf.c24 __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 …]
De_rem_pio2f.c49 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()
De_rem_pio2.c57 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()
Ds_fdim.c34 #define DECL(type, fn) \ argument
36 fn(type x, type y) \
Ds_lrint.c38 #define fn lrint macro
49 fn(type x) in fn() function
Ds_nearbyint.c46 #define DECL(type, fn, rint) \ argument
48 fn(type x) \
Ds_lround.c41 #define fn lround macro
58 fn(type x) in fn() function
Ds_lrintl.c7 #define fn lrintl macro
/bionic/libc/private/
Dbionic_fortify.h54 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/
De_rem_pio2l.h65 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()
Dk_expl.h243 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/
Dclone.cpp40 …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()
Dlfs64_support.cpp40 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()
Dvdso.cpp38 __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()
Datexit.cpp51 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/tests/
Ddlfcn_test.cpp216 int (*fn)(void); in TEST() local
217 fn = reinterpret_cast<int (*)(void)>(sym); in TEST()
218 EXPECT_EQ(4, fn()); in TEST()
388 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "relo_test_get_answer")); in TEST() local
389 ASSERT_TRUE(fn != nullptr) << dlerror(); in TEST()
390 ASSERT_EQ(1, fn()); in TEST()
422 fn_t fn, fn2; in TEST() local
423 fn = reinterpret_cast<fn_t>(dlsym(RTLD_DEFAULT, "check_order_dlsym_get_answer")); in TEST()
424 ASSERT_TRUE(fn != nullptr) << dlerror(); in TEST()
428 ASSERT_EQ(42, fn()); in TEST()
[all …]
Dstdlib_test.cpp503 static void CheckStrToFloat(T fn(const char* s, char** end)) { in CheckStrToFloat()
506 EXPECT_PRED_FORMAT2(pred, 9.0, fn("9.0", nullptr)); in CheckStrToFloat()
507 EXPECT_PRED_FORMAT2(pred, 9.0, fn("0.9e1", nullptr)); in CheckStrToFloat()
508 EXPECT_PRED_FORMAT2(pred, 9.0, fn("0x1.2p3", nullptr)); in CheckStrToFloat()
512 EXPECT_PRED_FORMAT2(pred, 9.0, fn(s, &p)); in CheckStrToFloat()
515 EXPECT_TRUE(isnan(fn("+nan", nullptr))); in CheckStrToFloat()
516 EXPECT_TRUE(isnan(fn("nan", nullptr))); in CheckStrToFloat()
517 EXPECT_TRUE(isnan(fn("-nan", nullptr))); in CheckStrToFloat()
519 EXPECT_TRUE(isnan(fn("+nan(0xff)", nullptr))); in CheckStrToFloat()
520 EXPECT_TRUE(isnan(fn("nan(0xff)", nullptr))); in CheckStrToFloat()
[all …]
Dpthread_dlfcn_test.cpp51 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()
Dwchar_test.cpp445 void TestSingleWcsToInt(WcsToIntFn<T> fn, const wchar_t* str, int base, in TestSingleWcsToInt() argument
448 ASSERT_EQ(expected_value, fn(str, &p, base)); in TestSingleWcsToInt()
453 void TestWcsToInt(WcsToIntFn<T> fn) { in TestWcsToInt() argument
454 TestSingleWcsToInt(fn, L"123", 10, static_cast<T>(123), 3); in TestWcsToInt()
455 TestSingleWcsToInt(fn, L"123", 0, static_cast<T>(123), 3); in TestWcsToInt()
456 TestSingleWcsToInt(fn, L"123#", 10, static_cast<T>(123), 3); in TestWcsToInt()
457 TestSingleWcsToInt(fn, L"01000", 8, static_cast<T>(512), 5); in TestWcsToInt()
458 TestSingleWcsToInt(fn, L"01000", 0, static_cast<T>(512), 5); in TestWcsToInt()
459 TestSingleWcsToInt(fn, L" 123 45", 0, static_cast<T>(123), 6); in TestWcsToInt()
460 TestSingleWcsToInt(fn, L" -123", 0, static_cast<T>(-123), 6); in TestWcsToInt()
[all …]
/bionic/libc/kernel/uapi/linux/netfilter/
Dx_tables.h93 #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/
Debtables.h146 #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/kernel/uapi/linux/netfilter_ipv4/
Dip_tables.h53 #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
/bionic/libc/kernel/uapi/linux/netfilter_ipv6/
Dip6_tables.h53 #define IP6T_MATCH_ITERATE(e,fn,args...) XT_MATCH_ITERATE(struct ip6t_entry, e, fn, ##args) argument
54 #define IP6T_ENTRY_ITERATE(entries,size,fn,args...) XT_ENTRY_ITERATE(struct ip6t_entry, entries, si… argument
/bionic/benchmarks/
Dbionic_benchmarks.cpp418 tinyxml2::XMLNode* fn = doc.FirstChildElement("fn"); in RegisterXmlBenchmarks() local
419 while (fn) { in RegisterXmlBenchmarks()
420 if (fn == fn->ToComment()) { in RegisterXmlBenchmarks()
422 fn = fn->NextSibling(); in RegisterXmlBenchmarks()
426 auto fn_elem = fn->FirstChildElement("name"); in RegisterXmlBenchmarks()
434 auto* xml_args = fn->FirstChildElement("args"); in RegisterXmlBenchmarks()
442 auto* num_iterations_elem = fn->FirstChildElement("iterations"); in RegisterXmlBenchmarks()
448 auto* cpu_to_lock_elem = fn->FirstChildElement("cpu"); in RegisterXmlBenchmarks()
457 fn = fn->NextSibling(); in RegisterXmlBenchmarks()

123