Home
last modified time | relevance | path

Searched refs:pi (Results 1 – 16 of 16) sorted by relevance

/bionic/libc/bionic/
Dsystem_properties_compat.c77 prop_info_compat *pi; in __system_property_find_compat() local
88 pi = TOC_TO_INFO(pa, entry); in __system_property_find_compat()
89 if(memcmp(name, pi->name, len)) continue; in __system_property_find_compat()
91 return (const prop_info *)pi; in __system_property_find_compat()
100 const prop_info_compat *pi = (const prop_info_compat *)_pi; in __system_property_read_compat() local
103 serial = pi->serial; in __system_property_read_compat()
105 __futex_wait((volatile void *)&pi->serial, serial, NULL); in __system_property_read_compat()
106 serial = pi->serial; in __system_property_read_compat()
109 memcpy(value, pi->value, len + 1); in __system_property_read_compat()
110 if(serial == pi->serial) { in __system_property_read_compat()
[all …]
Dsystem_properties.cpp134 bool foreach(void (*propfn)(const prop_info *pi, void *cookie), void *cookie);
160 void (*propfn)(const prop_info *pi, void *cookie),
193 const prop_info *pi; member
195 find_nth_cookie(uint32_t n) : count(0), n(n), pi(NULL) { in find_nth_cookie()
588 static void find_nth_fn(const prop_info *pi, void *ptr) in find_nth_fn() argument
593 cookie->pi = pi; in find_nth_fn()
599 void (*propfn)(const prop_info *pi, void *cookie), void *cookie) in foreach_property() argument
642 bool prop_area::foreach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { in foreach() argument
1105 int __system_property_read(const prop_info *pi, char *name, char *value) in __system_property_read() argument
1108 return __system_property_read_compat(pi, name, value); in __system_property_read()
[all …]
/bionic/libm/upstream-freebsd/lib/msun/src/
De_atan2f.c28 pi = 3.1415927410e+00; /* 0x40490fdb */ variable
53 case 2: return pi+tiny;/* atan(+0,-anything) = pi */ in __ieee754_atan2f()
54 case 3: return -pi-tiny;/* atan(-0,-anything) =-pi */ in __ieee754_atan2f()
73 case 2: return pi+tiny ; /* atan(+...,-INF) */ in __ieee754_atan2f()
74 case 3: return -pi-tiny ; /* atan(-...,-INF) */ in __ieee754_atan2f()
92 case 2: return pi-(z-pi_lo);/* atan(+,-) */ in __ieee754_atan2f()
94 return (z-pi_lo)-pi;/* atan(-,-) */ in __ieee754_atan2f()
De_atan2.c56 pi = 3.1415926535897931160E+00; /* 0x400921FB, 0x54442D18 */ variable
82 case 2: return pi+tiny;/* atan(+0,-anything) = pi */ in __ieee754_atan2()
83 case 3: return -pi-tiny;/* atan(-0,-anything) =-pi */ in __ieee754_atan2()
102 case 2: return pi+tiny ; /* atan(+...,-INF) */ in __ieee754_atan2()
103 case 3: return -pi-tiny ; /* atan(-...,-INF) */ in __ieee754_atan2()
121 case 2: return pi-(z-pi_lo);/* atan(+,-) */ in __ieee754_atan2()
123 return (z-pi_lo)-pi;/* atan(-,-) */ in __ieee754_atan2()
De_atan2l.c40 #define pi ((long double)pi1 + pi2) macro
43 pi = 3.14159265358979323846264338327950280e+00L; variable
75 case 2: return pi+tiny;/* atan(+0,-anything) = pi */ in atan2l()
76 case 3: return -pi-tiny;/* atan(-0,-anything) =-pi */ in atan2l()
96 case 2: return pi+tiny ; /* atan(+...,-INF) */ in atan2l()
97 case 3: return -pi-tiny ; /* atan(-...,-INF) */ in atan2l()
116 case 2: return pi-(z-pi_lo);/* atan(+,-) */ in atan2l()
118 return (z-pi_lo)-pi;/* atan(-,-) */ in atan2l()
De_acosl.c37 #define pi ((long double)pi1 + pi2) macro
40 pi = 3.14159265358979323846264338327950280e+00L; variable
55 else return pi+2.0*pio2_lo; /* acos(-1)= pi */ in acosl()
73 return pi - 2.0*(s+w); in acosl()
De_lgammaf_r.c29 pi = 3.1415927410e+00, /* 0x40490fdb */ variable
109 case 0: y = __kernel_sindf(pi*y); break; in sin_pif()
111 case 2: y = __kernel_cosdf(pi*((float)0.5-y)); break; in sin_pif()
113 case 4: y = __kernel_sindf(pi*(one-y)); break; in sin_pif()
115 case 6: y = -__kernel_cosdf(pi*(y-(float)1.5)); break; in sin_pif()
116 default: y = __kernel_sindf(pi*(y-(float)2.0)); break; in sin_pif()
151 nadj = __ieee754_logf(pi/fabsf(t*x)); in __ieee754_lgammaf_r()
De_acosf.c24 pi = 3.1415925026e+00, /* 0x40490fda */ variable
44 else return pi+(float)2.0*pio2_lo; /* acos(-1)= pi */ in __ieee754_acosf()
62 return pi - (float)2.0*(s+w); in __ieee754_acosf()
De_lgamma_r.c94 pi = 3.14159265358979311600e+00, /* 0x400921FB, 0x54442D18 */ variable
188 case 0: y = __kernel_sin(pi*y,zero,0); break; in sin_pi()
190 case 2: y = __kernel_cos(pi*(0.5-y),zero); break; in sin_pi()
192 case 4: y = __kernel_sin(pi*(one-y),zero,0); break; in sin_pi()
194 case 6: y = -__kernel_cos(pi*(y-1.5),zero); break; in sin_pi()
195 default: y = __kernel_sin(pi*(y-2.0),zero,0); break; in sin_pi()
230 nadj = __ieee754_log(pi/fabs(t*x)); in __ieee754_lgamma_r()
De_acos.c48 pi = 3.14159265358979311600e+00, /* 0x400921FB, 0x54442D18 */ variable
76 else return pi+2.0*pio2_lo; /* acos(-1)= pi */ in __ieee754_acos()
94 return pi - 2.0*(s+w); in __ieee754_acos()
/bionic/tests/
Dsystem_properties_test.cpp69 static void foreach_test_callback(const prop_info *pi, void* cookie) { in foreach_test_callback() argument
72 ASSERT_NE((prop_info *)NULL, pi); in foreach_test_callback()
76 static void hierarchical_test_callback(const prop_info *pi, void *cookie) { in hierarchical_test_callback() argument
82 __system_property_read(pi, name, value); in hierarchical_test_callback()
103 prop_info *pi; in PropertyWaitHelperFn() local
104 pi = (prop_info *)__system_property_find("property"); in PropertyWaitHelperFn()
108 __system_property_update(pi, "value3", 6); in PropertyWaitHelperFn()
145 prop_info *pi; in TEST() local
151 pi = (prop_info *)__system_property_find("property"); in TEST()
152 ASSERT_NE((prop_info *)NULL, pi); in TEST()
[all …]
/bionic/libc/include/sys/
D_system_properties.h144 int __system_property_update(prop_info *pi, const char *value, unsigned int len);
151 unsigned int __system_property_serial(const prop_info *pi);
162 int __system_property_read_compat(const prop_info *pi, char *name, char *value);
164 void (*propfn)(const prop_info *pi, void *cookie),
Dsystem_properties.h73 int __system_property_read(const prop_info *pi, char *name, char *value);
97 void (*propfn)(const prop_info *pi, void *cookie),
/bionic/libm/upstream-freebsd/lib/msun/ld128/
De_lgammal_r.c34 pi = 3.14159265358979323846264338327950288e+00L; variable
212 case 0: y = __kernel_sinl(pi*y,zero,0); break; in sin_pil()
214 case 2: y = __kernel_cosl(pi*(0.5-y),zero); break; in sin_pil()
216 case 4: y = __kernel_sinl(pi*(one-y),zero,0); break; in sin_pil()
218 case 6: y = -__kernel_cosl(pi*(y-1.5),zero); break; in sin_pil()
219 default: y = __kernel_sinl(pi*(y-2.0),zero,0); break; in sin_pil()
254 nadj = logl(pi/fabsl(t*x)); in lgammal_r()
/bionic/libc/upstream-freebsd/lib/libc/stdlib/
Dqsort.c53 TYPE *pi = (TYPE *) (parmi); \
56 TYPE t = *pi; \
57 *pi++ = *pj; \
/bionic/libc/tzcode/
Dlocaltime.c1324 static const prop_info *pi; in tzset_unlocked() local
1326 if (!pi) { in tzset_unlocked()
1327 pi = __system_property_find("persist.sys.timezone"); in tzset_unlocked()
1329 if (pi) { in tzset_unlocked()
1333 uint32_t serial = __system_property_serial(pi); in tzset_unlocked()
1335 ok = __system_property_read(pi, 0, buf) > 0; in tzset_unlocked()