/bionic/libm/upstream-freebsd/lib/msun/src/ |
H A D | e_scalb.c | 18 * __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 D | e_scalbf.c | 24 __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 D | s_llrint.c | 7 #define fn llrint macro
|
H A D | s_llrintf.c | 7 #define fn llrintf macro
|
H A D | s_llrintl.c | 7 #define fn llrintl macro
|
H A D | s_lrintf.c | 7 #define fn lrintf macro
|
H A D | s_lrintl.c | 7 #define fn lrintl macro
|
H A D | s_llround.c | 9 #define fn llround macro
|
H A D | s_llroundf.c | 9 #define fn llroundf macro
|
H A D | s_llroundl.c | 9 #define fn llroundl macro
|
H A D | s_lrint.c | 36 #define fn lrint macro 47 fn(type x) function
|
H A D | s_lroundf.c | 9 #define fn lroundf macro
|
H A D | s_lroundl.c | 9 #define fn lroundl macro
|
H A D | s_lround.c | 39 #define fn lround macro 56 fn(type x) function
|
H A D | e_rem_pio2f.c | 49 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 D | e_rem_pio2.c | 57 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/benchmarks/ |
H A D | benchmark.h | 25 Benchmark(const char* name, void (*fn)(int)) { argument 26 Register(name, fn, NULL); 48 void Register(const char* name, void (*fn)(int), void (*fn_range)(int, int));
|
H A D | benchmark_main.cpp | 90 void Benchmark::Register(const char* name, void (*fn)(int), void (*fn_range)(int, int)) { argument 92 fn_ = fn;
|
/bionic/libc/bionic/ |
H A D | clone.cpp | 36 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);
|
H A D | vdso.cpp | 39 void* fn; member in struct:vdso_entry 55 (int (*)(int, timespec*)) vdso_entries[VDSO_CLOCK_GETTIME].fn; 61 (int (*)(timeval*, struct timezone*)) vdso_entries[VDSO_GETTIMEOFDAY].fn; 118 vdso_entries[j].fn = reinterpret_cast<void*>(vdso_addr + symtab[i].st_value);
|
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
H A D | atexit.c | 115 struct atexit_fn fn; local 135 fn = p->fns[n]; 141 (*fn.fn_ptr)(fn.fn_arg);
|
/bionic/tests/ |
H A D | signal_test.cpp | 47 static void TestSigSet1(Fn fn) { argument 51 ASSERT_EQ(-1, fn(set_ptr)); 57 ASSERT_EQ(0, fn(&set)); 62 static void TestSigSet2(Fn fn) { argument 66 ASSERT_EQ(-1, fn(set_ptr, SIGSEGV)); 74 ASSERT_EQ(-1, fn(&set, 0)); 79 ASSERT_EQ(-1, fn(&set, SIGNAL_MAX() + 1)); 84 ASSERT_EQ(0, fn(&set, SIGNAL_MIN())); 86 ASSERT_EQ(0, fn(&set, SIGNAL_MAX()));
|
H A D | dlfcn_test.cpp | 74 int (*fn)(void); 75 fn = reinterpret_cast<int (*)(void)>(sym); 76 EXPECT_EQ(4, fn()); 160 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "relo_test_get_answer")); local 161 ASSERT_TRUE(fn != nullptr) << dlerror(); 162 ASSERT_EQ(1, fn()); 194 fn_t fn, fn2; local 195 fn = reinterpret_cast<fn_t>(dlsym(RTLD_DEFAULT, "dlopen_test_get_answer")); 196 ASSERT_TRUE(fn != NULL) << dlerror(); 200 ASSERT_EQ(42, fn()); [all...] |
H A D | dlext_test.cpp | 43 typedef int (*fn)(void); typedef 84 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); 94 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); 111 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); 131 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); 182 fn [all...] |
/bionic/libm/upstream-freebsd/lib/msun/ld128/ |
H A D | e_rem_pio2l.h | 65 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...] |