Home
last modified time | relevance | path

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

12

/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
59 STRICT_ASSIGN(double,fn,x*invpio2+0x1.8p52); in __ieee754_rem_pio2f()
60 fn = fn-0x1.8p52; in __ieee754_rem_pio2f()
62 n = irint(fn); in __ieee754_rem_pio2f()
64 n = (int32_t)fn; in __ieee754_rem_pio2f()
66 r = x-fn*pio2_1; in __ieee754_rem_pio2f()
67 w = fn*pio2_1t; in __ieee754_rem_pio2f()
De_rem_pio2.c57 double z,w,t,r,fn; in __ieee754_rem_pio2() local
131 STRICT_ASSIGN(double,fn,x*invpio2+0x1.8p52); in __ieee754_rem_pio2()
132 fn = fn-0x1.8p52; in __ieee754_rem_pio2()
134 n = irint(fn); in __ieee754_rem_pio2()
136 n = (int32_t)fn; in __ieee754_rem_pio2()
138 r = x-fn*pio2_1; in __ieee754_rem_pio2()
139 w = fn*pio2_1t; /* 1st round good to 85 bit */ in __ieee754_rem_pio2()
148 w = fn*pio2_2; in __ieee754_rem_pio2()
150 w = fn*pio2_2t-((t-r)-w); in __ieee754_rem_pio2()
156 w = fn*pio2_3; in __ieee754_rem_pio2()
[all …]
Ds_fdim.c32 #define DECL(type, fn) \ argument
34 fn(type x, type y) \
Ds_lrint.c36 #define fn lrint macro
47 fn(type x) in fn() function
Ds_nearbyint.c44 #define DECL(type, fn, rint) \ argument
46 fn(type x) \
Ds_lround.c39 #define fn lround macro
56 fn(type x) in fn() function
Ds_lrintf.c7 #define fn lrintf macro
Ds_llrintf.c7 #define fn llrintf macro
Ds_llrintl.c7 #define fn llrintl macro
Ds_llrint.c7 #define fn llrint macro
Ds_lrintl.c7 #define fn lrintl macro
/bionic/libc/bionic/
Dlfs64_support.cpp31 int (*fn)(const char*, const struct stat64*, int), int nopenfd) { in ftw64()
32 return ftw(dirpath, reinterpret_cast<ftw_fn>(fn), nopenfd); in ftw64()
36 int (*fn)(const char*, const struct stat64*, int, struct FTW*), in nftw64()
38 return nftw(dirpath, reinterpret_cast<nftw_fn>(fn), nopenfd, flags); in nftw64()
Dclone.cpp36 …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) { in __start_thread()
41 int status = (*fn)(arg); in __start_thread()
45 int clone(int (*fn)(void*), void* child_stack, int flags, void* arg, ...) { in clone()
74 int clone_result = __bionic_clone(flags, child_stack, parent_tid, new_tls, child_tid, fn, arg); in clone()
/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 = x*invpio2+0x1.8p112; in __ieee754_rem_pio2l()
79 fn = fn-0x1.8p112; in __ieee754_rem_pio2l()
81 n = i64rint(fn); in __ieee754_rem_pio2l()
83 n = fn; in __ieee754_rem_pio2l()
85 r = x-fn*pio2_1; in __ieee754_rem_pio2l()
86 w = fn*pio2_1t; /* 1st round good to 180 bit */ in __ieee754_rem_pio2l()
97 w = fn*pio2_2; in __ieee754_rem_pio2l()
99 w = fn*pio2_2t-((t-r)-w); in __ieee754_rem_pio2l()
106 w = fn*pio2_3; in __ieee754_rem_pio2l()
[all …]
Ds_expl.c233 double dr, fn, r2; in expl() local
261 fn = (double)x * INV_L + 0x1.8p52 - 0x1.8p52; in expl()
263 n = irint(fn); in expl()
265 n = (int)fn; in expl()
269 r1 = x - fn * L1; in expl()
270 r2 = fn * -L2; in expl()
374 double dr, dx, fn, r2; in expm1l() local
438 fn = (double)x * INV_L + 0x1.8p52 - 0x1.8p52; in expm1l()
440 n = irint(fn); in expm1l()
442 n = (int)fn; in expm1l()
[all …]
/bionic/benchmarks/
Dbenchmark.h25 Benchmark(const char* name, void (*fn)(int)) { in Benchmark()
26 Register(name, fn, NULL); in Benchmark()
48 void Register(const char* name, void (*fn)(int), void (*fn_range)(int, int));
/bionic/libc/kernel/uapi/linux/netfilter/
Dx_tables.h109fn, args...) ({ unsigned int __i; int __ret = 0; struct xt_entry_match *__m; for (__i =… argument
110fn, args...) ({ unsigned int __i, __n; int __ret = 0; type *__entry; for (__i = 0, __n … argument
111 …fine XT_ENTRY_ITERATE(type, entries, size, fn, args...) XT_ENTRY_ITERATE_CONTINUE(type, entries,… argument
/bionic/tests/
Dsignal_test.cpp47 static void TestSigSet1(Fn fn) { in TestSigSet1() argument
51 ASSERT_EQ(-1, fn(set_ptr)); in TestSigSet1()
57 ASSERT_EQ(0, fn(&set)); in TestSigSet1()
62 static void TestSigSet2(Fn fn) { in TestSigSet2() argument
66 ASSERT_EQ(-1, fn(set_ptr, SIGSEGV)); in TestSigSet2()
74 ASSERT_EQ(-1, fn(&set, 0)); in TestSigSet2()
79 ASSERT_EQ(-1, fn(&set, SIGNAL_MAX() + 1)); in TestSigSet2()
84 ASSERT_EQ(0, fn(&set, SIGNAL_MIN())); in TestSigSet2()
86 ASSERT_EQ(0, fn(&set, SIGNAL_MAX())); in TestSigSet2()
Ddlext_test.cpp43 typedef int (*fn)(void); typedef
76 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); in TEST_F()
86 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); in TEST_F()
103 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); in TEST_F()
118 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); in TEST_F()
148 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); in TEST_F()
166 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); in TEST_F()
232 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); in TryUsingRelro()
/bionic/libc/arch-mips/bionic/
D__bionic_clone.S41 lw t0,20(sp) # fn
43 sw t0,0(a1) # fn
/bionic/libc/kernel/uapi/linux/netfilter_bridge/
Debtables.h165fn, args...) ({ unsigned int __i; int __ret = 0; struct ebt_entry_match *__match; for (… argument
166fn, args...) ({ unsigned int __i; int __ret = 0; struct ebt_entry_watcher *__watcher; f… argument
167fn, args...) ({ unsigned int __i; int __ret = 0; struct ebt_entry *__entry; for (__i = … argument
/bionic/libc/arch-mips64/bionic/
D__bionic_clone.S53 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/
Dip_tables.h60 #define IPT_MATCH_ITERATE(e, fn, args...) XT_MATCH_ITERATE(struct ipt_entry, e, fn, ## args) argument
61 #define IPT_ENTRY_ITERATE(entries, size, fn, args...) XT_ENTRY_ITERATE(struct ipt_entry, entries,… argument

12