Searched defs:fn (Results 1 - 25 of 28) sorted by relevance

12

/bionic/libm/upstream-freebsd/lib/msun/src/
H A De_scalb.c18 * __ieee754_scalb(x, fn) is provide for
28 __ieee754_scalb(double x, int fn) argument
31 __ieee754_scalb(double x, double fn)
35 return scalbn(x,fn);
37 if (isnan(x)||isnan(fn)) return x*fn;
38 if (!finite(fn)) {
39 if(fn>0.0) return x*fn;
40 else return x/(-fn);
[all...]
H A De_scalbf.c24 __ieee754_scalbf(float x, int fn) argument
27 __ieee754_scalbf(float x, float fn)
31 return scalbnf(x,fn);
33 if ((isnanf)(x)||(isnanf)(fn)) return x*fn;
34 if (!finitef(fn)) {
35 if(fn>(float)0.0) return x*fn;
36 else return x/(-fn);
38 if (rintf(fn)!
[all...]
H A Ds_llrint.c7 #define fn llrint macro
H A Ds_llrintf.c7 #define fn llrintf macro
H A Ds_llrintl.c7 #define fn llrintl macro
H A Ds_lrintf.c7 #define fn lrintf macro
H A Ds_lrintl.c7 #define fn lrintl macro
H A Ds_llround.c9 #define fn llround macro
H A Ds_llroundf.c9 #define fn llroundf macro
H A Ds_llroundl.c9 #define fn llroundl macro
H A Ds_lrint.c36 #define fn lrint macro
47 fn(type x) function
H A Ds_lroundf.c9 #define fn lroundf macro
H A Ds_lroundl.c9 #define fn lroundl macro
H A Ds_lround.c39 #define fn lround macro
56 fn(type x) function
H A De_rem_pio2f.c49 double w,r,fn; local
58 /* Use a specialized rint() to get fn. Assume round-to-nearest. */
59 STRICT_ASSIGN(double,fn,x*invpio2+0x1.8p52);
60 fn = fn-0x1.8p52;
62 n = irint(fn);
64 n = (int32_t)fn;
66 r = x-fn*pio2_1;
67 w = fn*pio2_1t;
H A De_rem_pio2.c57 double z,w,t,r,fn; local
130 /* Use a specialized rint() to get fn. Assume round-to-nearest. */
131 STRICT_ASSIGN(double,fn,x*invpio2+0x1.8p52);
132 fn = fn-0x1.8p52;
134 n = irint(fn);
136 n = (int32_t)fn;
138 r = x-fn*pio2_1;
139 w = fn*pio2_1t; /* 1st round good to 85 bit */
148 w = fn*pio2_
[all...]
/bionic/libc/private/
H A Dbionic_vdso.h46 void* fn; member in struct:vdso_entry
/bionic/libc/bionic/
H A Dclone.cpp36 extern "C" pid_t __bionic_clone(uint32_t flags, void* child_stack, int* parent_tid, void* tls, int* child_tid, int (*fn)(void*), void* arg);
40 extern "C" __LIBC_HIDDEN__ void __start_thread(int (*fn)(void*), void* arg) { argument
41 int status = (*fn)(arg);
45 int clone(int (*fn)(void*), void* child_stack, int flags, void* arg, ...) { argument
74 int clone_result = __bionic_clone(flags, child_stack, parent_tid, new_tls, child_tid, fn, arg);
/bionic/tests/
H A Dpthread_dlfcn_test.cpp46 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "proxy_pthread_atfork")); local
47 ASSERT_TRUE(fn != nullptr) << dlerror();
49 ASSERT_EQ(0, fn(AtForkPrepare2, AtForkParent2, AtForkChild2));
50 ASSERT_EQ(0, fn(AtForkPrepare3, AtForkParent3, AtForkChild3));
H A Dsignal_test.cpp50 static void TestSigSet1(Fn fn) { argument
54 ASSERT_EQ(-1, fn(set_ptr));
60 ASSERT_EQ(0, fn(&set));
65 static void TestSigSet2(Fn fn) { argument
69 ASSERT_EQ(-1, fn(set_ptr, SIGSEGV));
77 ASSERT_EQ(-1, fn(&set, 0));
82 ASSERT_EQ(-1, fn(&set, SIGNAL_MAX() + 1));
87 ASSERT_EQ(0, fn(&set, SIGNAL_MIN()));
89 ASSERT_EQ(0, fn(&set, SIGNAL_MAX()));
H A Ddlfcn_test.cpp170 int (*fn)(void);
171 fn = reinterpret_cast<int (*)(void)>(sym);
172 EXPECT_EQ(4, fn());
282 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "relo_test_get_answer")); local
283 ASSERT_TRUE(fn != nullptr) << dlerror();
284 ASSERT_EQ(1, fn());
316 fn_t fn, fn2; local
317 fn = reinterpret_cast<fn_t>(dlsym(RTLD_DEFAULT, "check_order_dlsym_get_answer"));
318 ASSERT_TRUE(fn != nullptr) << dlerror();
322 ASSERT_EQ(42, fn());
369 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "check_order_reloc_get_answer")); local
396 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "check_order_reloc_get_answer")); local
434 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "check_order_reloc_grandchild_get_answer")); local
480 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "check_order_reloc_nephew_get_answer")); local
507 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle2, "check_order_reloc_get_answer")); local
555 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "check_order_reloc_root_get_answer")); local
1018 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "get_function_version")); local
1028 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "get_function_version")); local
1038 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "get_function_version")); local
1048 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "get_function_version")); local
1058 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "versioned_function")); local
1070 fn_t fn = reinterpret_cast<fn_t>(dlvsym(handle, "versioned_function", "nonversion")); local
1076 fn_t fn = reinterpret_cast<fn_t>(dlvsym(handle, "versioned_function", "TESTLIB_V2")); local
1099 dlopen_b_fn fn = (dlopen_b_fn)dlsym(handle, "dlopen_b"); local
1113 dlopen_b_fn fn = (dlopen_b_fn)dlsym(handle, "dlopen_b"); local
[all...]
H A Dtime_test.cpp276 Counter(void (*fn)(sigval_t)) : value(0), timer_valid(false) { argument
279 se.sigev_notify_function = fn;
/bionic/libc/stdlib/
H A Datexit.c138 struct atexit_fn fn; local
158 fn = p->fns[n];
164 (*fn.fn_ptr)(fn.fn_arg);
/bionic/libm/upstream-freebsd/lib/msun/ld128/
H A De_rem_pio2l.h65 long double z,w,t,r,fn; local
77 /* Use a specialized rint() to get fn. Assume round-to-nearest. */
78 fn = x*invpio2+0x1.8p112;
79 fn = fn-0x1.8p112;
81 n = i64rint(fn);
83 n = fn;
85 r = x-fn*pio2_1;
86 w = fn*pio2_1t; /* 1st round good to 180 bit */
97 w = fn*pio2_
[all...]
H A Dk_expl.h235 * "huge" is anything that would make fn*L1 inexact (|x| > ~2**17*ln2).
241 double dr, fn, r2; local
245 /* Use a specialized rint() to get fn. Assume round-to-nearest. */
249 fn = (double)x * INV_L + 0x1.8p52 - 0x1.8p52;
251 n = irint(fn);
253 n = (int)fn;
258 r1 = x - fn * L1;
259 r2 = fn * -L2;

Completed in 1435 milliseconds

12