/bionic/libc/bionic/ |
H A D | system_properties_compat.c | 75 prop_info_compat *pi; local 86 pi = TOC_TO_INFO(pa, entry); 87 if(memcmp(name, pi->name, len)) continue; 89 return (const prop_info *)pi; 98 const prop_info_compat *pi = (const prop_info_compat *)_pi; local 101 serial = pi->serial; 103 __futex_wait((volatile void *)&pi->serial, serial, 0); 104 serial = pi->serial; 107 memcpy(value, pi->value, len + 1); 108 if(serial == pi 117 __system_property_foreach_compat( void (*propfn)(const prop_info *pi, void *cookie), void *cookie) argument 126 prop_info_compat *pi = TOC_TO_INFO(pa, entry); local [all...] |
H A D | system_properties.c | 441 int __system_property_read(const prop_info *pi, char *name, char *value) argument 446 return __system_property_read_compat(pi, name, value); 450 serial = pi->serial; 452 __futex_wait((volatile void *)&pi->serial, serial, 0); 453 serial = pi->serial; 456 memcpy(value, pi->value, len + 1); 458 if(serial == pi->serial) { 460 strcpy(name, pi->name); 469 const prop_info *pi = __system_property_find(name); local 471 if(pi ! 563 __system_property_wait(const prop_info *pi) argument 581 __system_property_update(prop_info *pi, const char *value, unsigned int len) argument 605 const prop_info *pi; local 623 __system_property_serial(const prop_info *pi) argument 642 const prop_info *pi; member in struct:find_nth_cookie 645 find_nth_fn(const prop_info *pi, void *ptr) argument 670 foreach_property(prop_off_t off, void (*propfn)(const prop_info *pi, void *cookie), void *cookie) argument 702 __system_property_foreach(void (*propfn)(const prop_info *pi, void *cookie), void *cookie) argument [all...] |
/bionic/libm/upstream-freebsd/lib/msun/src/ |
H A D | e_atan2f.c | 28 pi = 3.1415927410e+00; /* 0x40490fdb */ variable 53 case 2: return pi+tiny;/* atan(+0,-anything) = pi */ 54 case 3: return -pi-tiny;/* atan(-0,-anything) =-pi */ 73 case 2: return pi+tiny ; /* atan(+...,-INF) */ 74 case 3: return -pi-tiny ; /* atan(-...,-INF) */ 92 case 2: return pi-(z-pi_lo);/* atan(+,-) */ 94 return (z-pi_lo)-pi;/* atan(-,-) */
|
H A D | e_atan2.c | 23 * ARG (x+iy) = pi - arctan[y/(-x)] ... if x < 0, 30 * ATAN2(+-0, -(anything but NaN)) is +-pi ; 31 * ATAN2(+-(anything but 0 and NaN), 0) is +-pi/2; 33 * ATAN2(+-(anything but INF and NaN), -INF) is +-pi; 34 * ATAN2(+-INF,+INF ) is +-pi/4 ; 35 * ATAN2(+-INF,-INF ) is +-3pi/4; 36 * ATAN2(+-INF, (anything but,0,NaN, and INF)) is +-pi/2; 56 pi = 3.1415926535897931160E+00; /* 0x400921FB, 0x54442D18 */ variable 82 case 2: return pi+tiny;/* atan(+0,-anything) = pi */ [all...] |
H A D | e_atan2l.c | 40 #define pi ((long double)pi1 + pi2) macro 43 pi = 3.14159265358979323846264338327950280e+00L; variable 75 case 2: return pi+tiny;/* atan(+0,-anything) = pi */ 76 case 3: return -pi-tiny;/* atan(-0,-anything) =-pi */ 96 case 2: return pi+tiny ; /* atan(+...,-INF) */ 97 case 3: return -pi-tiny ; /* atan(-...,-INF) */ 116 case 2: return pi-(z-pi_lo);/* atan(+,-) */ 118 return (z-pi_lo)-pi;/* ata [all...] |
H A D | e_acosl.c | 37 #define pi ((long double)pi1 + pi2) macro 40 pi = 3.14159265358979323846264338327950280e+00L; variable 55 else return pi+2.0*pio2_lo; /* acos(-1)= pi */ 60 if(expt<ACOS_CONST) return pio2_hi+pio2_lo;/*x tiny: acosl=pi/2*/ 73 return pi - 2.0*(s+w);
|
H A D | e_acosf.c | 24 pi = 3.1415925026e+00, /* 0x40490fda */ variable 44 else return pi+(float)2.0*pio2_lo; /* acos(-1)= pi */ 62 return pi - (float)2.0*(s+w);
|
H A D | e_acos.c | 19 * acos(x) = pi/2 - asin(x) 20 * acos(-x) = pi/2 + asin(x) 22 * acos(x) = pi/2 - (x + x*x^2*R(x^2)) (see asin.c) 24 * acos(x) = pi/2 - (pi/2 - 2asin(sqrt((1-x)/2))) 31 * acos(x) = pi - 2asin(sqrt((1-|x|)/2)) 32 * = pi - 0.5*(s+s*z*R(z)), where z=(1-|x|)/2,s=sqrt(z) 48 pi = 3.14159265358979311600e+00, /* 0x400921FB, 0x54442D18 */ variable 76 else return pi+2.0*pio2_lo; /* acos(-1)= pi */ [all...] |
H A D | e_lgamma_r.c | 54 * lgamma(x)~(x-0.5)log(x)-x+0.5*log(2pi)+1/(12x)-1/(360x**3)+.... 56 * lgamma(x)~(x-0.5)*(log(x)-1)-.5*(log(2pi)-1) + ...) 66 * -x*G(-x)*G(x) = pi/sin(pi*x), 68 * G(x) = pi/(sin(pi*x)*(-x)*G(-x)) 69 * since G(-x) is positive, sign(G(x)) = sign(sin(pi*x)) for x<0 70 * Hence, for x<0, signgam = sign(sin(pi*x)) and 72 * = log(pi/(|x*sin(pi* 93 pi = 3.14159265358979311600e+00, /* 0x400921FB, 0x54442D18 */ variable [all...] |
H A D | e_lgammaf_r.c | 26 pi = 3.1415927410e+00, /* 0x40490fdb */ variable 100 if(ix<0x3e800000) return __kernel_sindf(pi*x); 124 case 0: y = __kernel_sindf(pi*y); break; 126 case 2: y = __kernel_cosdf(pi*((float)0.5-y)); break; 128 case 4: y = __kernel_sindf(pi*(one-y)); break; 130 case 6: y = -__kernel_cosdf(pi*(y-(float)1.5)); break; 131 default: y = __kernel_sindf(pi*(y-(float)2.0)); break; 162 nadj = __ieee754_logf(pi/fabsf(t*x));
|
/bionic/libc/include/sys/ |
H A D | _system_properties.h | 70 ** 1. serial = pi->serial 72 ** 3. memcpy(local, pi->value, SERIAL_VALUE_LEN(serial) + 1) 73 ** 4. if pi->serial != serial, goto 2 76 ** 1. pi->serial = pi->serial | 1 77 ** 2. memcpy(pi->value, local_value, value_len) 78 ** 3. pi->serial = (value_len << 24) | ((pi->serial + 1) & 0xffffff) 119 int __system_property_update(prop_info *pi, const char *value, unsigned int len); 126 unsigned int __system_property_serial(const prop_info *pi); [all...] |
H A D | system_properties.h | 73 int __system_property_read(const prop_info *pi, char *name, char *value); 97 void (*propfn)(const prop_info *pi, void *cookie),
|
/bionic/tests/ |
H A D | system_properties_test.cpp | 92 prop_info *pi; local 98 pi = (prop_info *)__system_property_find("property"); 99 ASSERT_NE((prop_info *)NULL, pi); 100 __system_property_update(pi, "value4", 6); 102 pi = (prop_info *)__system_property_find("other_property"); 103 ASSERT_NE((prop_info *)NULL, pi); 104 __system_property_update(pi, "newvalue5", 9); 106 pi = (prop_info *)__system_property_find("property_other"); 107 ASSERT_NE((prop_info *)NULL, pi); 108 __system_property_update(pi, "value 161 foreach_test_callback(const prop_info *pi, void* cookie) argument 201 hierarchical_test_callback(const prop_info *pi, void *cookie) argument 299 const prop_info *pi; local 312 prop_info *pi; local 326 prop_info *pi; local [all...] |
/bionic/libc/upstream-freebsd/lib/libc/stdlib/ |
H A D | qsort.c | 53 TYPE *pi = (TYPE *) (parmi); \ 56 TYPE t = *pi; \ 57 *pi++ = *pj; \
|