Home
last modified time | relevance | path

Searched refs:fn (Results 1 – 25 of 37) 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.c40 #define DECL(type, fn, rint) \ argument
42 fn(type x) \
Ds_lround.c39 #define fn lround macro
56 fn(type x) in fn() function
Ds_llrint.c7 #define fn llrint macro
Ds_llrintl.c7 #define fn llrintl macro
Ds_llrintf.c7 #define fn llrintf macro
Ds_lrintf.c7 #define fn lrintf macro
Ds_lrintl.c7 #define fn lrintl macro
Ds_llroundl.c9 #define fn llroundl macro
Ds_lroundl.c9 #define fn lroundl macro
Ds_llround.c9 #define fn llround macro
Ds_llroundf.c9 #define fn llroundf macro
Ds_lroundf.c9 #define fn lroundf macro
/bionic/libc/kernel/common/linux/
Dinit.h45 …_initcall(level,fn) static initcall_t __initcall_##fn __attribute_used__ __attribute__((__sect… argument
46 #define core_initcall(fn) __define_initcall("1",fn) argument
47 #define postcore_initcall(fn) __define_initcall("2",fn) argument
49 #define arch_initcall(fn) __define_initcall("3",fn) argument
50 #define subsys_initcall(fn) __define_initcall("4",fn) argument
51 #define fs_initcall(fn) __define_initcall("5",fn) argument
52 #define device_initcall(fn) __define_initcall("6",fn) argument
54 #define late_initcall(fn) __define_initcall("7",fn) argument
55 #define __initcall(fn) device_initcall(fn) argument
56 #define __exitcall(fn) static exitcall_t __exitcall_##fn __exit_call = fn argument
[all …]
Dthread_info.h22 long (*fn)(struct restart_block *); member
/bionic/libc/bionic/
Dbionic_clone.c39 int (*fn)(void *),
48 __bionic_clone_entry( int (*fn)(void *), void *arg ) in __bionic_clone_entry()
50 int ret = (*fn)(arg); in __bionic_clone_entry()
55 clone(int (*fn)(void *), void *child_stack, int flags, void* arg, ...) in clone()
75 return __bionic_clone(flags, child_stack, parent_tidptr, new_tls, child_tidptr, fn, arg); in clone()
/bionic/tests/
Dsignal_test.cpp23 static void TestSigSet1(Fn fn) { in TestSigSet1() argument
27 ASSERT_EQ(-1, fn(set_ptr)); in TestSigSet1()
33 ASSERT_EQ(0, fn(&set)); in TestSigSet1()
38 static void TestSigSet2(Fn fn) { in TestSigSet2() argument
42 ASSERT_EQ(-1, fn(set_ptr, SIGSEGV)); in TestSigSet2()
63 ASSERT_EQ(-1, fn(&set, 0)); in TestSigSet2()
68 ASSERT_EQ(-1, fn(&set, max_signal + 1)); in TestSigSet2()
73 ASSERT_EQ(0, fn(&set, min_signal)); in TestSigSet2()
75 ASSERT_EQ(0, fn(&set, max_signal)); in TestSigSet2()
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/stdlib/
Datexit.c116 struct atexit_fn fn; in __cxa_finalize() local
137 fn = p->fns[n]; in __cxa_finalize()
149 (*fn.fn_ptr.cxa_func)(fn.fn_arg); in __cxa_finalize()
152 (*fn.fn_ptr.cxa_func)(fn.fn_arg); in __cxa_finalize()
154 (*fn.fn_ptr.std_func)(); in __cxa_finalize()
/bionic/libc/arch-mips/bionic/
Dclone.S51 sw $a0,0($a1) # fn
101 # __clone function here !! Placing 'fn' and 'arg'

12