Name function arguments in libc headers for Studio.
Third batch of headers... Bug: http://b/64613623 Test: builds Change-Id: I32d8467a0bd22ba94d76476397f4f7dc51003886
This commit is contained in:
parent
096fa4497c
commit
684c31a267
4 changed files with 352 additions and 354 deletions
|
@ -59,102 +59,102 @@ __BEGIN_DECLS
|
||||||
|
|
||||||
/* 7.3.5 Trigonometric functions */
|
/* 7.3.5 Trigonometric functions */
|
||||||
/* 7.3.5.1 The cacos functions */
|
/* 7.3.5.1 The cacos functions */
|
||||||
double complex cacos(double complex) __INTRODUCED_IN(23);
|
double complex cacos(double complex __z) __INTRODUCED_IN(23);
|
||||||
float complex cacosf(float complex) __INTRODUCED_IN(23);
|
float complex cacosf(float complex __z) __INTRODUCED_IN(23);
|
||||||
long double complex cacosl(long double complex) __INTRODUCED_IN(26);
|
long double complex cacosl(long double complex __z) __INTRODUCED_IN(26);
|
||||||
/* 7.3.5.2 The casin functions */
|
/* 7.3.5.2 The casin functions */
|
||||||
double complex casin(double complex) __INTRODUCED_IN(23);
|
double complex casin(double complex __z) __INTRODUCED_IN(23);
|
||||||
float complex casinf(float complex) __INTRODUCED_IN(23);
|
float complex casinf(float complex __z) __INTRODUCED_IN(23);
|
||||||
long double complex casinl(long double complex) __INTRODUCED_IN(26);
|
long double complex casinl(long double complex __z) __INTRODUCED_IN(26);
|
||||||
/* 7.3.5.1 The catan functions */
|
/* 7.3.5.1 The catan functions */
|
||||||
double complex catan(double complex) __INTRODUCED_IN(23);
|
double complex catan(double complex __z) __INTRODUCED_IN(23);
|
||||||
float complex catanf(float complex) __INTRODUCED_IN(23);
|
float complex catanf(float complex __z) __INTRODUCED_IN(23);
|
||||||
long double complex catanl(long double complex) __INTRODUCED_IN(26);
|
long double complex catanl(long double complex __z) __INTRODUCED_IN(26);
|
||||||
/* 7.3.5.1 The ccos functions */
|
/* 7.3.5.1 The ccos functions */
|
||||||
double complex ccos(double complex) __INTRODUCED_IN(23);
|
double complex ccos(double complex __z) __INTRODUCED_IN(23);
|
||||||
float complex ccosf(float complex) __INTRODUCED_IN(23);
|
float complex ccosf(float complex __z) __INTRODUCED_IN(23);
|
||||||
long double complex ccosl(long double complex) __INTRODUCED_IN(26);
|
long double complex ccosl(long double complex __z) __INTRODUCED_IN(26);
|
||||||
/* 7.3.5.1 The csin functions */
|
/* 7.3.5.1 The csin functions */
|
||||||
double complex csin(double complex) __INTRODUCED_IN(23);
|
double complex csin(double complex __z) __INTRODUCED_IN(23);
|
||||||
float complex csinf(float complex) __INTRODUCED_IN(23);
|
float complex csinf(float complex __z) __INTRODUCED_IN(23);
|
||||||
long double complex csinl(long double complex) __INTRODUCED_IN(26);
|
long double complex csinl(long double complex __z) __INTRODUCED_IN(26);
|
||||||
/* 7.3.5.1 The ctan functions */
|
/* 7.3.5.1 The ctan functions */
|
||||||
double complex ctan(double complex) __INTRODUCED_IN(23);
|
double complex ctan(double complex __z) __INTRODUCED_IN(23);
|
||||||
float complex ctanf(float complex) __INTRODUCED_IN(23);
|
float complex ctanf(float complex __z) __INTRODUCED_IN(23);
|
||||||
long double complex ctanl(long double complex) __INTRODUCED_IN(26);
|
long double complex ctanl(long double complex __z) __INTRODUCED_IN(26);
|
||||||
|
|
||||||
/* 7.3.6 Hyperbolic functions */
|
/* 7.3.6 Hyperbolic functions */
|
||||||
/* 7.3.6.1 The cacosh functions */
|
/* 7.3.6.1 The cacosh functions */
|
||||||
double complex cacosh(double complex) __INTRODUCED_IN(23);
|
double complex cacosh(double complex __z) __INTRODUCED_IN(23);
|
||||||
float complex cacoshf(float complex) __INTRODUCED_IN(23);
|
float complex cacoshf(float complex __z) __INTRODUCED_IN(23);
|
||||||
long double complex cacoshl(long double complex) __INTRODUCED_IN(26);
|
long double complex cacoshl(long double complex __z) __INTRODUCED_IN(26);
|
||||||
/* 7.3.6.2 The casinh functions */
|
/* 7.3.6.2 The casinh functions */
|
||||||
double complex casinh(double complex) __INTRODUCED_IN(23);
|
double complex casinh(double complex __z) __INTRODUCED_IN(23);
|
||||||
float complex casinhf(float complex) __INTRODUCED_IN(23);
|
float complex casinhf(float complex __z) __INTRODUCED_IN(23);
|
||||||
long double complex casinhl(long double complex) __INTRODUCED_IN(26);
|
long double complex casinhl(long double complex __z) __INTRODUCED_IN(26);
|
||||||
/* 7.3.6.3 The catanh functions */
|
/* 7.3.6.3 The catanh functions */
|
||||||
double complex catanh(double complex) __INTRODUCED_IN(23);
|
double complex catanh(double complex __z) __INTRODUCED_IN(23);
|
||||||
float complex catanhf(float complex) __INTRODUCED_IN(23);
|
float complex catanhf(float complex __z) __INTRODUCED_IN(23);
|
||||||
long double complex catanhl(long double complex) __INTRODUCED_IN(26);
|
long double complex catanhl(long double complex __z) __INTRODUCED_IN(26);
|
||||||
/* 7.3.6.4 The ccosh functions */
|
/* 7.3.6.4 The ccosh functions */
|
||||||
double complex ccosh(double complex) __INTRODUCED_IN(23);
|
double complex ccosh(double complex __z) __INTRODUCED_IN(23);
|
||||||
float complex ccoshf(float complex) __INTRODUCED_IN(23);
|
float complex ccoshf(float complex __z) __INTRODUCED_IN(23);
|
||||||
long double complex ccoshl(long double complex) __INTRODUCED_IN(26);
|
long double complex ccoshl(long double complex __z) __INTRODUCED_IN(26);
|
||||||
/* 7.3.6.5 The csinh functions */
|
/* 7.3.6.5 The csinh functions */
|
||||||
double complex csinh(double complex) __INTRODUCED_IN(23);
|
double complex csinh(double complex __z) __INTRODUCED_IN(23);
|
||||||
float complex csinhf(float complex) __INTRODUCED_IN(23);
|
float complex csinhf(float complex __z) __INTRODUCED_IN(23);
|
||||||
long double complex csinhl(long double complex) __INTRODUCED_IN(26);
|
long double complex csinhl(long double complex __z) __INTRODUCED_IN(26);
|
||||||
/* 7.3.6.6 The ctanh functions */
|
/* 7.3.6.6 The ctanh functions */
|
||||||
double complex ctanh(double complex) __INTRODUCED_IN(23);
|
double complex ctanh(double complex __z) __INTRODUCED_IN(23);
|
||||||
float complex ctanhf(float complex) __INTRODUCED_IN(23);
|
float complex ctanhf(float complex __z) __INTRODUCED_IN(23);
|
||||||
long double complex ctanhl(long double complex) __INTRODUCED_IN(26);
|
long double complex ctanhl(long double complex __z) __INTRODUCED_IN(26);
|
||||||
|
|
||||||
/* 7.3.7 Exponential and logarithmic functions */
|
/* 7.3.7 Exponential and logarithmic functions */
|
||||||
/* 7.3.7.1 The cexp functions */
|
/* 7.3.7.1 The cexp functions */
|
||||||
double complex cexp(double complex) __INTRODUCED_IN(23);
|
double complex cexp(double complex __z) __INTRODUCED_IN(23);
|
||||||
float complex cexpf(float complex) __INTRODUCED_IN(23);
|
float complex cexpf(float complex __z) __INTRODUCED_IN(23);
|
||||||
long double complex cexpl(long double complex) __INTRODUCED_IN(26);
|
long double complex cexpl(long double complex __z) __INTRODUCED_IN(26);
|
||||||
/* 7.3.7.2 The clog functions */
|
/* 7.3.7.2 The clog functions */
|
||||||
double complex clog(double complex) __INTRODUCED_IN(26);
|
double complex clog(double complex __z) __INTRODUCED_IN(26);
|
||||||
float complex clogf(float complex) __INTRODUCED_IN(26);
|
float complex clogf(float complex __z) __INTRODUCED_IN(26);
|
||||||
long double complex clogl(long double complex) __INTRODUCED_IN(26);
|
long double complex clogl(long double complex __z) __INTRODUCED_IN(26);
|
||||||
|
|
||||||
/* 7.3.8 Power and absolute-value functions */
|
/* 7.3.8 Power and absolute-value functions */
|
||||||
/* 7.3.8.1 The cabs functions */
|
/* 7.3.8.1 The cabs functions */
|
||||||
double cabs(double complex) __INTRODUCED_IN(23);
|
double cabs(double complex __z) __INTRODUCED_IN(23);
|
||||||
float cabsf(float complex) __INTRODUCED_IN(23);
|
float cabsf(float complex __z) __INTRODUCED_IN(23);
|
||||||
long double cabsl(long double complex) __INTRODUCED_IN_32(21) __INTRODUCED_IN_64(23);
|
long double cabsl(long double complex __z) __INTRODUCED_IN_32(21) __INTRODUCED_IN_64(23);
|
||||||
/* 7.3.8.2 The cpow functions */
|
/* 7.3.8.2 The cpow functions */
|
||||||
double complex cpow(double complex, double complex) __INTRODUCED_IN(26);
|
double complex cpow(double complex __x, double complex __z) __INTRODUCED_IN(26);
|
||||||
float complex cpowf(float complex, float complex) __INTRODUCED_IN(26);
|
float complex cpowf(float complex __x, float complex __z) __INTRODUCED_IN(26);
|
||||||
long double complex cpowl(long double complex, long double complex) __INTRODUCED_IN(26);
|
long double complex cpowl(long double complex __x, long double complex __z) __INTRODUCED_IN(26);
|
||||||
/* 7.3.8.3 The csqrt functions */
|
/* 7.3.8.3 The csqrt functions */
|
||||||
double complex csqrt(double complex) __INTRODUCED_IN(23);
|
double complex csqrt(double complex __z) __INTRODUCED_IN(23);
|
||||||
float complex csqrtf(float complex) __INTRODUCED_IN(23);
|
float complex csqrtf(float complex __z) __INTRODUCED_IN(23);
|
||||||
long double complex csqrtl(long double complex) __INTRODUCED_IN_32(21) __INTRODUCED_IN_64(23);
|
long double complex csqrtl(long double complex __z) __INTRODUCED_IN_32(21) __INTRODUCED_IN_64(23);
|
||||||
|
|
||||||
/* 7.3.9 Manipulation functions */
|
/* 7.3.9 Manipulation functions */
|
||||||
/* 7.3.9.1 The carg functions */
|
/* 7.3.9.1 The carg functions */
|
||||||
double carg(double complex) __INTRODUCED_IN(23);
|
double carg(double complex __z) __INTRODUCED_IN(23);
|
||||||
float cargf(float complex) __INTRODUCED_IN(23);
|
float cargf(float complex __z) __INTRODUCED_IN(23);
|
||||||
long double cargl(long double complex) __INTRODUCED_IN(23);
|
long double cargl(long double complex __z) __INTRODUCED_IN(23);
|
||||||
/* 7.3.9.2 The cimag functions */
|
/* 7.3.9.2 The cimag functions */
|
||||||
double cimag(double complex) __INTRODUCED_IN(23);
|
double cimag(double complex __z) __INTRODUCED_IN(23);
|
||||||
float cimagf(float complex) __INTRODUCED_IN(23);
|
float cimagf(float complex __z) __INTRODUCED_IN(23);
|
||||||
long double cimagl(long double complex) __INTRODUCED_IN(23);
|
long double cimagl(long double complex __z) __INTRODUCED_IN(23);
|
||||||
/* 7.3.9.3 The conj functions */
|
/* 7.3.9.3 The conj functions */
|
||||||
double complex conj(double complex) __INTRODUCED_IN(23);
|
double complex conj(double complex __z) __INTRODUCED_IN(23);
|
||||||
float complex conjf(float complex) __INTRODUCED_IN(23);
|
float complex conjf(float complex __z) __INTRODUCED_IN(23);
|
||||||
long double complex conjl(long double complex) __INTRODUCED_IN(23);
|
long double complex conjl(long double complex __z) __INTRODUCED_IN(23);
|
||||||
/* 7.3.9.4 The cproj functions */
|
/* 7.3.9.4 The cproj functions */
|
||||||
double complex cproj(double complex) __INTRODUCED_IN(23);
|
double complex cproj(double complex __z) __INTRODUCED_IN(23);
|
||||||
float complex cprojf(float complex) __INTRODUCED_IN(23);
|
float complex cprojf(float complex __z) __INTRODUCED_IN(23);
|
||||||
long double complex cprojl(long double complex) __INTRODUCED_IN_32(21) __INTRODUCED_IN_64(23);
|
long double complex cprojl(long double complex __z) __INTRODUCED_IN_32(21) __INTRODUCED_IN_64(23);
|
||||||
/* 7.3.9.5 The creal functions */
|
/* 7.3.9.5 The creal functions */
|
||||||
double creal(double complex) __INTRODUCED_IN(23);
|
double creal(double complex __z) __INTRODUCED_IN(23);
|
||||||
float crealf(float complex) __INTRODUCED_IN(23);
|
float crealf(float complex __z) __INTRODUCED_IN(23);
|
||||||
long double creall(long double complex) __INTRODUCED_IN(23);
|
long double creall(long double complex __z) __INTRODUCED_IN(23);
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
#endif /* _COMPLEX_H */
|
#endif
|
||||||
|
|
|
@ -37,25 +37,25 @@ __BEGIN_DECLS
|
||||||
|
|
||||||
// fenv was always available on x86.
|
// fenv was always available on x86.
|
||||||
#if __ANDROID_API__ >= __ANDROID_API_L__ || defined(__i386__)
|
#if __ANDROID_API__ >= __ANDROID_API_L__ || defined(__i386__)
|
||||||
int feclearexcept(int) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21) __INTRODUCED_IN_X86(9);
|
int feclearexcept(int __exceptions) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21) __INTRODUCED_IN_X86(9);
|
||||||
int fegetexceptflag(fexcept_t*, int) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21)
|
int fegetexceptflag(fexcept_t* __flag_ptr, int __exceptions) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21)
|
||||||
__INTRODUCED_IN_X86(9);
|
__INTRODUCED_IN_X86(9);
|
||||||
int feraiseexcept(int) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21) __INTRODUCED_IN_X86(9);
|
int feraiseexcept(int __exceptions) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21) __INTRODUCED_IN_X86(9);
|
||||||
int fesetexceptflag(const fexcept_t*, int) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21)
|
int fesetexceptflag(const fexcept_t* __flag_ptr, int __exceptions) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21)
|
||||||
__INTRODUCED_IN_X86(9);
|
__INTRODUCED_IN_X86(9);
|
||||||
int fetestexcept(int) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21) __INTRODUCED_IN_X86(9);
|
int fetestexcept(int __exceptions) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21) __INTRODUCED_IN_X86(9);
|
||||||
|
|
||||||
int fegetround(void) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21) __INTRODUCED_IN_X86(9);
|
int fegetround(void) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21) __INTRODUCED_IN_X86(9);
|
||||||
int fesetround(int) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21) __INTRODUCED_IN_X86(9);
|
int fesetround(int __rounding_mode) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21) __INTRODUCED_IN_X86(9);
|
||||||
|
|
||||||
int fegetenv(fenv_t*) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21) __INTRODUCED_IN_X86(9);
|
int fegetenv(fenv_t* __env) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21) __INTRODUCED_IN_X86(9);
|
||||||
int feholdexcept(fenv_t*) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21) __INTRODUCED_IN_X86(9);
|
int feholdexcept(fenv_t* __env) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21) __INTRODUCED_IN_X86(9);
|
||||||
int fesetenv(const fenv_t*) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21) __INTRODUCED_IN_X86(9);
|
int fesetenv(const fenv_t* __env) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21) __INTRODUCED_IN_X86(9);
|
||||||
int feupdateenv(const fenv_t*) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21)
|
int feupdateenv(const fenv_t* __env) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21)
|
||||||
__INTRODUCED_IN_X86(9);
|
__INTRODUCED_IN_X86(9);
|
||||||
|
|
||||||
int feenableexcept(int) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21) __INTRODUCED_IN_X86(9);
|
int feenableexcept(int __exceptions) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21) __INTRODUCED_IN_X86(9);
|
||||||
int fedisableexcept(int) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21) __INTRODUCED_IN_X86(9);
|
int fedisableexcept(int __exceptions) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21) __INTRODUCED_IN_X86(9);
|
||||||
int fegetexcept(void) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21) __INTRODUCED_IN_X86(9);
|
int fegetexcept(void) __INTRODUCED_IN_ARM(21) __INTRODUCED_IN_MIPS(21) __INTRODUCED_IN_X86(9);
|
||||||
#else
|
#else
|
||||||
/* Defined as inlines for pre-21 ARM and MIPS. */
|
/* Defined as inlines for pre-21 ARM and MIPS. */
|
||||||
|
|
|
@ -89,69 +89,69 @@ extern int signgam;
|
||||||
* as __attribute_const__. In C99, FENV_ACCESS affects the purity of these functions.
|
* as __attribute_const__. In C99, FENV_ACCESS affects the purity of these functions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int __fpclassifyd(double) __attribute_const__;
|
int __fpclassifyd(double __x) __attribute_const__;
|
||||||
int __fpclassifyf(float) __attribute_const__;
|
int __fpclassifyf(float __x) __attribute_const__;
|
||||||
int __fpclassifyl(long double) __attribute_const__;
|
int __fpclassifyl(long double __x) __attribute_const__;
|
||||||
int __isfinitef(float) __attribute_const__;
|
int __isfinitef(float __x) __attribute_const__;
|
||||||
int __isfinite(double) __attribute_const__;
|
int __isfinite(double __x) __attribute_const__;
|
||||||
int __isfinitel(long double) __attribute_const__;
|
int __isfinitel(long double __x) __attribute_const__;
|
||||||
int __isinff(float) __attribute_const__;
|
int __isinff(float __x) __attribute_const__;
|
||||||
int __isinfl(long double) __attribute_const__;
|
int __isinfl(long double __x) __attribute_const__;
|
||||||
int __isnanf(float) __attribute_const__ __INTRODUCED_IN(21);
|
int __isnanf(float __x) __attribute_const__ __INTRODUCED_IN(21);
|
||||||
int __isnanl(long double) __attribute_const__;
|
int __isnanl(long double __x) __attribute_const__;
|
||||||
int __isnormalf(float) __attribute_const__;
|
int __isnormalf(float __x) __attribute_const__;
|
||||||
int __isnormal(double) __attribute_const__;
|
int __isnormal(double __x) __attribute_const__;
|
||||||
int __isnormall(long double) __attribute_const__;
|
int __isnormall(long double __x) __attribute_const__;
|
||||||
int __signbit(double) __attribute_const__;
|
int __signbit(double __x) __attribute_const__;
|
||||||
int __signbitf(float) __attribute_const__;
|
int __signbitf(float __x) __attribute_const__;
|
||||||
int __signbitl(long double) __attribute_const__;
|
int __signbitl(long double __x) __attribute_const__;
|
||||||
|
|
||||||
double acos(double);
|
double acos(double __x);
|
||||||
double asin(double);
|
double asin(double __x);
|
||||||
double atan(double);
|
double atan(double __x);
|
||||||
double atan2(double, double);
|
double atan2(double __y, double __x);
|
||||||
double cos(double);
|
double cos(double __x);
|
||||||
double sin(double);
|
double sin(double __x);
|
||||||
double tan(double);
|
double tan(double __x);
|
||||||
|
|
||||||
double cosh(double);
|
double cosh(double __x);
|
||||||
double sinh(double);
|
double sinh(double __x);
|
||||||
double tanh(double);
|
double tanh(double __x);
|
||||||
|
|
||||||
double exp(double);
|
double exp(double __x);
|
||||||
double frexp(double, int *); /* fundamentally !__attribute_const__ */
|
double frexp(double __x, int* __exponent); /* fundamentally !__attribute_const__ */
|
||||||
double ldexp(double, int);
|
double ldexp(double __x, int __exponent);
|
||||||
double log(double);
|
double log(double __x);
|
||||||
double log10(double);
|
double log10(double __x);
|
||||||
double modf(double, double *); /* fundamentally !__attribute_const__ */
|
double modf(double __x, double* __integral_part); /* fundamentally !__attribute_const__ */
|
||||||
|
|
||||||
double pow(double, double);
|
double pow(double __x, double __y);
|
||||||
double sqrt(double);
|
double sqrt(double __x);
|
||||||
|
|
||||||
double ceil(double);
|
double ceil(double __x);
|
||||||
double fabs(double) __attribute_const__;
|
double fabs(double __x) __attribute_const__;
|
||||||
double floor(double);
|
double floor(double __x);
|
||||||
double fmod(double, double);
|
double fmod(double __x, double __y);
|
||||||
|
|
||||||
double acosh(double);
|
double acosh(double __x);
|
||||||
double asinh(double);
|
double asinh(double __x);
|
||||||
double atanh(double);
|
double atanh(double __x);
|
||||||
double cbrt(double);
|
double cbrt(double __x);
|
||||||
double erf(double);
|
double erf(double __x);
|
||||||
double erfc(double);
|
double erfc(double __x);
|
||||||
double exp2(double);
|
double exp2(double __x);
|
||||||
double expm1(double);
|
double expm1(double __x);
|
||||||
double fma(double, double, double);
|
double fma(double __x, double __y, double __z);
|
||||||
double hypot(double, double);
|
double hypot(double __x, double __y);
|
||||||
int ilogb(double) __attribute_const__;
|
int ilogb(double __x) __attribute_const__;
|
||||||
double lgamma(double);
|
double lgamma(double __x);
|
||||||
long long llrint(double);
|
long long llrint(double __x);
|
||||||
long long llround(double);
|
long long llround(double __x);
|
||||||
double log1p(double);
|
double log1p(double __x);
|
||||||
double log2(double) __INTRODUCED_IN(18);
|
double log2(double __x) __INTRODUCED_IN(18);
|
||||||
double logb(double);
|
double logb(double __x);
|
||||||
long lrint(double);
|
long lrint(double __x);
|
||||||
long lround(double);
|
long lround(double __x);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* https://code.google.com/p/android/issues/detail?id=271629
|
* https://code.google.com/p/android/issues/detail?id=271629
|
||||||
|
@ -164,160 +164,160 @@ long lround(double);
|
||||||
* to the std namespace, making it impossible to use both <cmath> (which gets
|
* to the std namespace, making it impossible to use both <cmath> (which gets
|
||||||
* included by a lot of other standard headers) and ::isnan.
|
* included by a lot of other standard headers) and ::isnan.
|
||||||
*/
|
*/
|
||||||
int(isinf)(double) __attribute_const__ __INTRODUCED_IN(21);
|
int (isinf)(double __x) __attribute_const__ __INTRODUCED_IN(21);
|
||||||
int (isnan)(double) __attribute_const__;
|
int (isnan)(double __x) __attribute_const__;
|
||||||
|
|
||||||
double nan(const char*) __attribute_const__ __INTRODUCED_IN_ARM(13) __INTRODUCED_IN_MIPS(13)
|
double nan(const char* __kind) __attribute_const__ __INTRODUCED_IN_ARM(13) __INTRODUCED_IN_MIPS(13)
|
||||||
__INTRODUCED_IN_X86(9);
|
__INTRODUCED_IN_X86(9);
|
||||||
|
|
||||||
double nextafter(double, double);
|
double nextafter(double __x, double __y);
|
||||||
double remainder(double, double);
|
double remainder(double __x, double __y);
|
||||||
double remquo(double, double, int*);
|
double remquo(double __x, double __y, int* __quotient_bits);
|
||||||
double rint(double);
|
double rint(double __x);
|
||||||
|
|
||||||
double copysign(double, double) __attribute_const__;
|
double copysign(double __value, double __sign) __attribute_const__;
|
||||||
double fdim(double, double);
|
double fdim(double __x, double __y);
|
||||||
double fmax(double, double) __attribute_const__;
|
double fmax(double __x, double __y) __attribute_const__;
|
||||||
double fmin(double, double) __attribute_const__;
|
double fmin(double __x, double __y) __attribute_const__;
|
||||||
double nearbyint(double);
|
double nearbyint(double __x);
|
||||||
double round(double);
|
double round(double __x);
|
||||||
double scalbln(double, long) __INTRODUCED_IN_X86(18) __VERSIONER_NO_GUARD;
|
double scalbln(double __x, long __exponent) __INTRODUCED_IN_X86(18) __VERSIONER_NO_GUARD;
|
||||||
double scalbn(double, int);
|
double scalbn(double __x, int __exponent);
|
||||||
double tgamma(double);
|
double tgamma(double __x);
|
||||||
double trunc(double);
|
double trunc(double __x);
|
||||||
|
|
||||||
float acosf(float);
|
float acosf(float __x);
|
||||||
float asinf(float);
|
float asinf(float __x);
|
||||||
float atanf(float);
|
float atanf(float __x);
|
||||||
float atan2f(float, float);
|
float atan2f(float __y, float __x);
|
||||||
float cosf(float);
|
float cosf(float __x);
|
||||||
float sinf(float);
|
float sinf(float __x);
|
||||||
float tanf(float);
|
float tanf(float __x);
|
||||||
|
|
||||||
float coshf(float);
|
float coshf(float __x);
|
||||||
float sinhf(float);
|
float sinhf(float __x);
|
||||||
float tanhf(float);
|
float tanhf(float __x);
|
||||||
|
|
||||||
float exp2f(float);
|
float exp2f(float __x);
|
||||||
float expf(float);
|
float expf(float __x);
|
||||||
float expm1f(float);
|
float expm1f(float __x);
|
||||||
float frexpf(float, int *); /* fundamentally !__attribute_const__ */
|
float frexpf(float __x, int* __exponent); /* fundamentally !__attribute_const__ */
|
||||||
int ilogbf(float) __attribute_const__;
|
int ilogbf(float __x) __attribute_const__;
|
||||||
float ldexpf(float, int);
|
float ldexpf(float __x, int __exponent);
|
||||||
float log10f(float);
|
float log10f(float __x);
|
||||||
float log1pf(float);
|
float log1pf(float __x);
|
||||||
float log2f(float) __INTRODUCED_IN(18);
|
float log2f(float __x) __INTRODUCED_IN(18);
|
||||||
float logf(float);
|
float logf(float __x);
|
||||||
float modff(float, float *); /* fundamentally !__attribute_const__ */
|
float modff(float __x, float* __integral_part); /* fundamentally !__attribute_const__ */
|
||||||
|
|
||||||
float powf(float, float);
|
float powf(float __x, float __y);
|
||||||
float sqrtf(float);
|
float sqrtf(float __x);
|
||||||
|
|
||||||
float ceilf(float);
|
float ceilf(float __x);
|
||||||
float fabsf(float) __attribute_const__;
|
float fabsf(float __x) __attribute_const__;
|
||||||
float floorf(float);
|
float floorf(float __x);
|
||||||
float fmodf(float, float);
|
float fmodf(float __x, float __y);
|
||||||
float roundf(float);
|
float roundf(float __x);
|
||||||
|
|
||||||
float erff(float);
|
float erff(float __x);
|
||||||
float erfcf(float);
|
float erfcf(float __x);
|
||||||
float hypotf(float, float);
|
float hypotf(float __x, float __y);
|
||||||
float lgammaf(float);
|
float lgammaf(float __x);
|
||||||
float tgammaf(float) __INTRODUCED_IN_ARM(13) __INTRODUCED_IN_MIPS(13) __INTRODUCED_IN_X86(9);
|
float tgammaf(float __x) __INTRODUCED_IN_ARM(13) __INTRODUCED_IN_MIPS(13) __INTRODUCED_IN_X86(9);
|
||||||
|
|
||||||
float acoshf(float);
|
float acoshf(float __x);
|
||||||
float asinhf(float);
|
float asinhf(float __x);
|
||||||
float atanhf(float);
|
float atanhf(float __x);
|
||||||
float cbrtf(float);
|
float cbrtf(float __x);
|
||||||
float logbf(float);
|
float logbf(float __x);
|
||||||
float copysignf(float, float) __attribute_const__;
|
float copysignf(float __value, float __sign) __attribute_const__;
|
||||||
long long llrintf(float);
|
long long llrintf(float __x);
|
||||||
long long llroundf(float);
|
long long llroundf(float __x);
|
||||||
long lrintf(float);
|
long lrintf(float __x);
|
||||||
long lroundf(float);
|
long lroundf(float __x);
|
||||||
float nanf(const char*) __attribute_const__ __INTRODUCED_IN_ARM(13) __INTRODUCED_IN_MIPS(13)
|
float nanf(const char* __kind) __attribute_const__ __INTRODUCED_IN_ARM(13) __INTRODUCED_IN_MIPS(13)
|
||||||
__INTRODUCED_IN_X86(9);
|
__INTRODUCED_IN_X86(9);
|
||||||
float nearbyintf(float);
|
float nearbyintf(float __x);
|
||||||
float nextafterf(float, float);
|
float nextafterf(float __x, float __y);
|
||||||
float remainderf(float, float);
|
float remainderf(float __x, float __y);
|
||||||
float remquof(float, float, int *);
|
float remquof(float __x, float __y, int* __quotient_bits);
|
||||||
float rintf(float);
|
float rintf(float __x);
|
||||||
float scalblnf(float, long) __INTRODUCED_IN_X86(18) __VERSIONER_NO_GUARD;
|
float scalblnf(float __x, long __exponent) __INTRODUCED_IN_X86(18) __VERSIONER_NO_GUARD;
|
||||||
float scalbnf(float, int);
|
float scalbnf(float __x, int __exponent);
|
||||||
float truncf(float);
|
float truncf(float __x);
|
||||||
|
|
||||||
float fdimf(float, float);
|
float fdimf(float __x, float __y);
|
||||||
float fmaf(float, float, float);
|
float fmaf(float __x, float __y, float __z);
|
||||||
float fmaxf(float, float) __attribute_const__;
|
float fmaxf(float __x, float __y) __attribute_const__;
|
||||||
float fminf(float, float) __attribute_const__;
|
float fminf(float __x, float __y) __attribute_const__;
|
||||||
|
|
||||||
long double acoshl(long double) __INTRODUCED_IN(21);
|
long double acoshl(long double __x) __INTRODUCED_IN(21);
|
||||||
long double acosl(long double) __INTRODUCED_IN(21);
|
long double acosl(long double __x) __INTRODUCED_IN(21);
|
||||||
long double asinhl(long double) __INTRODUCED_IN(21);
|
long double asinhl(long double __x) __INTRODUCED_IN(21);
|
||||||
long double asinl(long double) __INTRODUCED_IN(21);
|
long double asinl(long double __x) __INTRODUCED_IN(21);
|
||||||
long double atan2l(long double, long double) __INTRODUCED_IN(21);
|
long double atan2l(long double __y, long double __x) __INTRODUCED_IN(21);
|
||||||
long double atanhl(long double) __INTRODUCED_IN(21);
|
long double atanhl(long double __x) __INTRODUCED_IN(21);
|
||||||
long double atanl(long double) __INTRODUCED_IN(21);
|
long double atanl(long double __x) __INTRODUCED_IN(21);
|
||||||
long double cbrtl(long double) __INTRODUCED_IN(21);
|
long double cbrtl(long double __x) __INTRODUCED_IN(21);
|
||||||
long double ceill(long double);
|
long double ceill(long double __x);
|
||||||
long double copysignl(long double, long double) __attribute_const__;
|
long double copysignl(long double __value, long double __sign) __attribute_const__;
|
||||||
long double coshl(long double) __INTRODUCED_IN(21);
|
long double coshl(long double __x) __INTRODUCED_IN(21);
|
||||||
long double cosl(long double) __INTRODUCED_IN(21);
|
long double cosl(long double __x) __INTRODUCED_IN(21);
|
||||||
long double erfcl(long double) __INTRODUCED_IN(21);
|
long double erfcl(long double __x) __INTRODUCED_IN(21);
|
||||||
long double erfl(long double) __INTRODUCED_IN(21);
|
long double erfl(long double __x) __INTRODUCED_IN(21);
|
||||||
long double exp2l(long double) __INTRODUCED_IN(21);
|
long double exp2l(long double __x) __INTRODUCED_IN(21);
|
||||||
long double expl(long double) __INTRODUCED_IN(21);
|
long double expl(long double __x) __INTRODUCED_IN(21);
|
||||||
long double expm1l(long double) __INTRODUCED_IN(21);
|
long double expm1l(long double __x) __INTRODUCED_IN(21);
|
||||||
long double fabsl(long double) __attribute_const__;
|
long double fabsl(long double __x) __attribute_const__;
|
||||||
long double fdiml(long double, long double);
|
long double fdiml(long double __x, long double __y);
|
||||||
long double floorl(long double);
|
long double floorl(long double __x);
|
||||||
long double fmal(long double, long double, long double) __INTRODUCED_IN(21) __VERSIONER_NO_GUARD;
|
long double fmal(long double __x, long double __y, long double __z) __INTRODUCED_IN(21) __VERSIONER_NO_GUARD;
|
||||||
long double fmaxl(long double, long double) __attribute_const__;
|
long double fmaxl(long double __x, long double __y) __attribute_const__;
|
||||||
long double fminl(long double, long double) __attribute_const__;
|
long double fminl(long double __x, long double __y) __attribute_const__;
|
||||||
long double fmodl(long double, long double) __INTRODUCED_IN(21);
|
long double fmodl(long double __x, long double __y) __INTRODUCED_IN(21);
|
||||||
long double frexpl(long double value, int*)
|
long double frexpl(long double __x, int* __exponent)
|
||||||
__INTRODUCED_IN(21) __VERSIONER_NO_GUARD; /* fundamentally !__attribute_const__ */
|
__INTRODUCED_IN(21) __VERSIONER_NO_GUARD; /* fundamentally !__attribute_const__ */
|
||||||
long double hypotl(long double, long double) __INTRODUCED_IN(21);
|
long double hypotl(long double __x, long double __y) __INTRODUCED_IN(21);
|
||||||
int ilogbl(long double) __attribute_const__;
|
int ilogbl(long double __x) __attribute_const__;
|
||||||
long double ldexpl(long double, int);
|
long double ldexpl(long double __x, int __exponent);
|
||||||
long double lgammal(long double) __INTRODUCED_IN(21);
|
long double lgammal(long double __x) __INTRODUCED_IN(21);
|
||||||
long long llrintl(long double) __INTRODUCED_IN(21);
|
long long llrintl(long double __x) __INTRODUCED_IN(21);
|
||||||
long long llroundl(long double);
|
long long llroundl(long double __x);
|
||||||
long double log10l(long double) __INTRODUCED_IN(21);
|
long double log10l(long double __x) __INTRODUCED_IN(21);
|
||||||
long double log1pl(long double) __INTRODUCED_IN(21);
|
long double log1pl(long double __x) __INTRODUCED_IN(21);
|
||||||
long double log2l(long double) __INTRODUCED_IN(18);
|
long double log2l(long double __x) __INTRODUCED_IN(18);
|
||||||
long double logbl(long double) __INTRODUCED_IN(18);
|
long double logbl(long double __x) __INTRODUCED_IN(18);
|
||||||
long double logl(long double) __INTRODUCED_IN(21);
|
long double logl(long double __x) __INTRODUCED_IN(21);
|
||||||
long lrintl(long double) __INTRODUCED_IN(21);
|
long lrintl(long double __x) __INTRODUCED_IN(21);
|
||||||
long lroundl(long double);
|
long lroundl(long double __x);
|
||||||
long double modfl(long double, long double*) __INTRODUCED_IN(21); /* fundamentally !__attribute_const__ */
|
long double modfl(long double __x, long double* __integral_part) __INTRODUCED_IN(21); /* fundamentally !__attribute_const__ */
|
||||||
long double nanl(const char*) __attribute_const__ __INTRODUCED_IN(13);
|
long double nanl(const char* __kind) __attribute_const__ __INTRODUCED_IN(13);
|
||||||
long double nearbyintl(long double) __INTRODUCED_IN(21);
|
long double nearbyintl(long double __x) __INTRODUCED_IN(21);
|
||||||
long double nextafterl(long double, long double) __INTRODUCED_IN(21) __VERSIONER_NO_GUARD;
|
long double nextafterl(long double __x, long double __y) __INTRODUCED_IN(21) __VERSIONER_NO_GUARD;
|
||||||
double nexttoward(double, long double) __INTRODUCED_IN(18) __VERSIONER_NO_GUARD;
|
double nexttoward(double __x, long double __y) __INTRODUCED_IN(18) __VERSIONER_NO_GUARD;
|
||||||
float nexttowardf(float, long double);
|
float nexttowardf(float __x, long double __y);
|
||||||
long double nexttowardl(long double, long double) __INTRODUCED_IN(18) __VERSIONER_NO_GUARD;
|
long double nexttowardl(long double __x, long double __y) __INTRODUCED_IN(18) __VERSIONER_NO_GUARD;
|
||||||
long double powl(long double, long double) __INTRODUCED_IN(21);
|
long double powl(long double __x, long double __y) __INTRODUCED_IN(21);
|
||||||
long double remainderl(long double, long double) __INTRODUCED_IN(21);
|
long double remainderl(long double __x, long double __y) __INTRODUCED_IN(21);
|
||||||
long double remquol(long double, long double, int*) __INTRODUCED_IN(21);
|
long double remquol(long double __x, long double __y, int* __quotient_bits) __INTRODUCED_IN(21);
|
||||||
long double rintl(long double) __INTRODUCED_IN(21);
|
long double rintl(long double __x) __INTRODUCED_IN(21);
|
||||||
long double roundl(long double);
|
long double roundl(long double __x);
|
||||||
long double scalblnl(long double, long) __INTRODUCED_IN_X86(18) __VERSIONER_NO_GUARD;
|
long double scalblnl(long double __x, long __exponent) __INTRODUCED_IN_X86(18) __VERSIONER_NO_GUARD;
|
||||||
long double scalbnl(long double, int);
|
long double scalbnl(long double __x, int __exponent);
|
||||||
long double sinhl(long double) __INTRODUCED_IN(21);
|
long double sinhl(long double __x) __INTRODUCED_IN(21);
|
||||||
long double sinl(long double) __INTRODUCED_IN(21);
|
long double sinl(long double __x) __INTRODUCED_IN(21);
|
||||||
long double sqrtl(long double) __INTRODUCED_IN(21);
|
long double sqrtl(long double __x) __INTRODUCED_IN(21);
|
||||||
long double tanhl(long double) __INTRODUCED_IN(21);
|
long double tanhl(long double __x) __INTRODUCED_IN(21);
|
||||||
long double tanl(long double) __INTRODUCED_IN(21);
|
long double tanl(long double __x) __INTRODUCED_IN(21);
|
||||||
long double tgammal(long double) __INTRODUCED_IN(21);
|
long double tgammal(long double __x) __INTRODUCED_IN(21);
|
||||||
long double truncl(long double);
|
long double truncl(long double __x);
|
||||||
|
|
||||||
double j0(double);
|
double j0(double __x);
|
||||||
double j1(double);
|
double j1(double __x);
|
||||||
double jn(int, double);
|
double jn(int __n, double __x);
|
||||||
double y0(double);
|
double y0(double __x);
|
||||||
double y1(double);
|
double y1(double __x);
|
||||||
double yn(int, double);
|
double yn(int __n, double __x);
|
||||||
|
|
||||||
#define M_E 2.7182818284590452354 /* e */
|
#define M_E 2.7182818284590452354 /* e */
|
||||||
#define M_LOG2E 1.4426950408889634074 /* log 2e */
|
#define M_LOG2E 1.4426950408889634074 /* log 2e */
|
||||||
|
@ -336,29 +336,29 @@ double yn(int, double);
|
||||||
#define MAXFLOAT ((float)3.40282346638528860e+38)
|
#define MAXFLOAT ((float)3.40282346638528860e+38)
|
||||||
|
|
||||||
#if defined(__USE_BSD) || defined(__USE_GNU)
|
#if defined(__USE_BSD) || defined(__USE_GNU)
|
||||||
double gamma(double);
|
double gamma(double __x);
|
||||||
double scalb(double, double);
|
double scalb(double __x, double __exponent);
|
||||||
double drem(double, double);
|
double drem(double __x, double __y);
|
||||||
int finite(double) __attribute_const__;
|
int finite(double __x) __attribute_const__;
|
||||||
int isnanf(float) __attribute_const__;
|
int isnanf(float __x) __attribute_const__;
|
||||||
double gamma_r(double, int*);
|
double gamma_r(double __x, int* __sign);
|
||||||
double lgamma_r(double, int*);
|
double lgamma_r(double __x, int* __sign);
|
||||||
double significand(double);
|
double significand(double __x);
|
||||||
long double lgammal_r(long double, int*) __INTRODUCED_IN(23);
|
long double lgammal_r(long double __x, int* __sign) __INTRODUCED_IN(23);
|
||||||
long double significandl(long double) __INTRODUCED_IN(21);
|
long double significandl(long double __x) __INTRODUCED_IN(21);
|
||||||
float dremf(float, float);
|
float dremf(float __x, float __y);
|
||||||
int finitef(float) __attribute_const__;
|
int finitef(float __x) __attribute_const__;
|
||||||
float gammaf(float);
|
float gammaf(float __x);
|
||||||
float j0f(float);
|
float j0f(float __x);
|
||||||
float j1f(float);
|
float j1f(float __x);
|
||||||
float jnf(int, float);
|
float jnf(int __n, float __x);
|
||||||
float scalbf(float, float);
|
float scalbf(float __x, float __exponent);
|
||||||
float y0f(float);
|
float y0f(float __x);
|
||||||
float y1f(float);
|
float y1f(float __x);
|
||||||
float ynf(int, float);
|
float ynf(int __n, float __x);
|
||||||
float gammaf_r(float, int *);
|
float gammaf_r(float __x, int* __sign);
|
||||||
float lgammaf_r(float, int *);
|
float lgammaf_r(float __x, int* __sign);
|
||||||
float significandf(float);
|
float significandf(float __x);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__USE_GNU)
|
#if defined(__USE_GNU)
|
||||||
|
@ -375,11 +375,11 @@ float significandf(float);
|
||||||
#define M_2_SQRTPIl 1.128379167095512573896158903121545172L /* 2/sqrt(pi) */
|
#define M_2_SQRTPIl 1.128379167095512573896158903121545172L /* 2/sqrt(pi) */
|
||||||
#define M_SQRT2l 1.414213562373095048801688724209698079L /* sqrt(2) */
|
#define M_SQRT2l 1.414213562373095048801688724209698079L /* sqrt(2) */
|
||||||
#define M_SQRT1_2l 0.707106781186547524400844362104849039L /* 1/sqrt(2) */
|
#define M_SQRT1_2l 0.707106781186547524400844362104849039L /* 1/sqrt(2) */
|
||||||
void sincos(double, double*, double*);
|
void sincos(double __x, double* __sin, double* __cos);
|
||||||
void sincosf(float, float*, float*);
|
void sincosf(float __x, float* __sin, float* __cos);
|
||||||
void sincosl(long double, long double*, long double*);
|
void sincosl(long double __x, long double* __sin, long double* __cos);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
#endif /* !_MATH_H_ */
|
#endif
|
||||||
|
|
|
@ -41,83 +41,81 @@ __BEGIN_DECLS
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void* memccpy(void*, const void*, int, size_t);
|
void* memccpy(void* __dst, const void* __src, int __stop_char, size_t __n);
|
||||||
void* memchr(const void*, int, size_t) __attribute_pure__ __overloadable __RENAME_CLANG(memchr);
|
void* memchr(const void* __s, int __ch, size_t __n) __attribute_pure__ __overloadable __RENAME_CLANG(memchr);
|
||||||
void* memrchr(const void*, int, size_t) __attribute_pure__ __overloadable __RENAME_CLANG(memrchr);
|
void* memrchr(const void* __s, int __ch, size_t __n) __attribute_pure__ __overloadable __RENAME_CLANG(memrchr);
|
||||||
int memcmp(const void*, const void*, size_t) __attribute_pure__;
|
int memcmp(const void* __lhs, const void* __rhs, size_t __n) __attribute_pure__;
|
||||||
void* memcpy(void*, const void*, size_t)
|
void* memcpy(void*, const void*, size_t)
|
||||||
__overloadable __RENAME_CLANG(memcpy);
|
__overloadable __RENAME_CLANG(memcpy);
|
||||||
#if defined(__USE_GNU)
|
#if defined(__USE_GNU)
|
||||||
void* mempcpy(void*, const void*, size_t) __INTRODUCED_IN(23);
|
void* mempcpy(void* __dst, const void* __src, size_t __n) __INTRODUCED_IN(23);
|
||||||
#endif
|
#endif
|
||||||
void* memmove(void*, const void*, size_t) __overloadable __RENAME_CLANG(memmove);
|
void* memmove(void* __dst, const void* __src, size_t __n) __overloadable __RENAME_CLANG(memmove);
|
||||||
void* memset(void*, int, size_t) __overloadable __RENAME_CLANG(memset);
|
void* memset(void* __dst, int __ch, size_t __n) __overloadable __RENAME_CLANG(memset);
|
||||||
void* memmem(const void*, size_t, const void*, size_t) __attribute_pure__;
|
void* memmem(const void* __haystack, size_t __haystack_size, const void* __needle, size_t __needle_size) __attribute_pure__;
|
||||||
|
|
||||||
char* strchr(const char*, int) __attribute_pure__ __overloadable __RENAME_CLANG(strchr);
|
char* strchr(const char* __s, int __ch) __attribute_pure__ __overloadable __RENAME_CLANG(strchr);
|
||||||
char* __strchr_chk(const char*, int, size_t) __INTRODUCED_IN(18);
|
char* __strchr_chk(const char* __s, int __ch, size_t __n) __INTRODUCED_IN(18);
|
||||||
#if defined(__USE_GNU)
|
#if defined(__USE_GNU)
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
/* The versioner doesn't handle C++ blocks yet, so manually guarded. */
|
/* The versioner doesn't handle C++ blocks yet, so manually guarded. */
|
||||||
#if __ANDROID_API__ >= 24
|
#if __ANDROID_API__ >= 24
|
||||||
extern "C++" char* strchrnul(char*, int) __RENAME(strchrnul) __attribute_pure__ __INTRODUCED_IN(24);
|
extern "C++" char* strchrnul(char* __s, int __ch) __RENAME(strchrnul) __attribute_pure__ __INTRODUCED_IN(24);
|
||||||
extern "C++" const char* strchrnul(const char*, int) __RENAME(strchrnul) __attribute_pure__ __INTRODUCED_IN(24);
|
extern "C++" const char* strchrnul(const char* __s, int __ch) __RENAME(strchrnul) __attribute_pure__ __INTRODUCED_IN(24);
|
||||||
#endif /* __ANDROID_API__ >= 24 */
|
#endif /* __ANDROID_API__ >= 24 */
|
||||||
#else
|
#else
|
||||||
char* strchrnul(const char*, int) __attribute_pure__ __INTRODUCED_IN(24);
|
char* strchrnul(const char* __s, int __ch) __attribute_pure__ __INTRODUCED_IN(24);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char* strrchr(const char*, int) __attribute_pure__ __overloadable __RENAME_CLANG(strrchr);
|
char* strrchr(const char* __s, int __ch) __attribute_pure__ __overloadable __RENAME_CLANG(strrchr);
|
||||||
char* __strrchr_chk(const char*, int, size_t) __INTRODUCED_IN(18);
|
char* __strrchr_chk(const char* __s, int __ch, size_t __n) __INTRODUCED_IN(18);
|
||||||
|
|
||||||
size_t strlen(const char*) __attribute_pure__ __overloadable
|
size_t strlen(const char* __s) __attribute_pure__ __overloadable __RENAME_CLANG(strlen);
|
||||||
__RENAME_CLANG(strlen);
|
size_t __strlen_chk(const char* __s, size_t __n) __INTRODUCED_IN(17);
|
||||||
size_t __strlen_chk(const char*, size_t) __INTRODUCED_IN(17);
|
|
||||||
|
|
||||||
int strcmp(const char*, const char*) __attribute_pure__;
|
int strcmp(const char* __lhs, const char* __rhs) __attribute_pure__;
|
||||||
char* stpcpy(char*, const char*) __overloadable __RENAME_CLANG(stpcpy) __INTRODUCED_IN(21);
|
char* stpcpy(char* __dst, const char* __src) __overloadable __RENAME_CLANG(stpcpy) __INTRODUCED_IN(21);
|
||||||
char* strcpy(char*, const char*)
|
char* strcpy(char* __dst, const char* __src) __overloadable __RENAME_CLANG(strcpy);
|
||||||
__overloadable __RENAME_CLANG(strcpy);
|
char* strcat(char* __dst, const char* __src) __overloadable __RENAME_CLANG(strcat);
|
||||||
char* strcat(char*, const char*) __overloadable __RENAME_CLANG(strcat);
|
char* strdup(const char* __s);
|
||||||
char* strdup(const char*);
|
|
||||||
|
|
||||||
char* strstr(const char*, const char*) __attribute_pure__;
|
char* strstr(const char* __haystack, const char* __needle) __attribute_pure__;
|
||||||
char* strcasestr(const char*, const char*) __attribute_pure__;
|
char* strcasestr(const char* __haystack, const char* __needle) __attribute_pure__;
|
||||||
char* strtok(char*, const char*);
|
char* strtok(char* __s, const char* __delimiter);
|
||||||
char* strtok_r(char*, const char*, char**);
|
char* strtok_r(char* __s, const char* __delimiter, char** __pos_ptr);
|
||||||
|
|
||||||
char* strerror(int);
|
char* strerror(int __errno_value);
|
||||||
char* strerror_l(int, locale_t) __INTRODUCED_IN(23);
|
char* strerror_l(int __errno_value, locale_t __l) __INTRODUCED_IN(23);
|
||||||
#if defined(__USE_GNU) && __ANDROID_API__ >= 23
|
#if defined(__USE_GNU) && __ANDROID_API__ >= 23
|
||||||
char* strerror_r(int, char*, size_t) __RENAME(__gnu_strerror_r) __INTRODUCED_IN(23);
|
char* strerror_r(int __errno_value, char* __buf, size_t __n) __RENAME(__gnu_strerror_r) __INTRODUCED_IN(23);
|
||||||
#else /* POSIX */
|
#else /* POSIX */
|
||||||
int strerror_r(int, char*, size_t);
|
int strerror_r(int __errno_value, char* __buf, size_t __n);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
size_t strnlen(const char*, size_t) __attribute_pure__;
|
size_t strnlen(const char* __s, size_t __n) __attribute_pure__;
|
||||||
char* strncat(char*, const char*, size_t) __overloadable __RENAME_CLANG(strncat);
|
char* strncat(char* __dst, const char* __src, size_t __n) __overloadable __RENAME_CLANG(strncat);
|
||||||
char* strndup(const char*, size_t);
|
char* strndup(const char* __s, size_t __n);
|
||||||
int strncmp(const char*, const char*, size_t) __attribute_pure__;
|
int strncmp(const char* __lhs, const char* __rhs, size_t __n) __attribute_pure__;
|
||||||
char* stpncpy(char*, const char*, size_t) __overloadable __RENAME_CLANG(stpncpy) __INTRODUCED_IN(21);
|
char* stpncpy(char* __dst, const char* __src, size_t __n) __overloadable __RENAME_CLANG(stpncpy) __INTRODUCED_IN(21);
|
||||||
char* strncpy(char*, const char*, size_t) __overloadable __RENAME_CLANG(strncpy);
|
char* strncpy(char* __dst, const char* __src, size_t __n) __overloadable __RENAME_CLANG(strncpy);
|
||||||
|
|
||||||
size_t strlcat(char*, const char*, size_t) __overloadable __RENAME_CLANG(strlcat);
|
size_t strlcat(char* __dst, const char* __src, size_t __n) __overloadable __RENAME_CLANG(strlcat);
|
||||||
size_t strlcpy(char*, const char*, size_t) __overloadable __RENAME_CLANG(strlcpy);
|
size_t strlcpy(char* __dst, const char* __src, size_t __n) __overloadable __RENAME_CLANG(strlcpy);
|
||||||
|
|
||||||
size_t strcspn(const char*, const char*) __attribute_pure__;
|
size_t strcspn(const char* __s, const char* __reject) __attribute_pure__;
|
||||||
char* strpbrk(const char*, const char*) __attribute_pure__;
|
char* strpbrk(const char* __s, const char* __accept) __attribute_pure__;
|
||||||
char* strsep(char**, const char*);
|
char* strsep(char** __s_ptr, const char* __delimiter);
|
||||||
size_t strspn(const char*, const char*);
|
size_t strspn(const char* __s, const char* __accept);
|
||||||
|
|
||||||
char* strsignal(int);
|
char* strsignal(int __signal);
|
||||||
|
|
||||||
int strcoll(const char*, const char*) __attribute_pure__;
|
int strcoll(const char* __lhs, const char* __rhs) __attribute_pure__;
|
||||||
size_t strxfrm(char*, const char*, size_t);
|
size_t strxfrm(char* __dst, const char* __src, size_t __n);
|
||||||
|
|
||||||
#if __ANDROID_API__ >= __ANDROID_API_L__
|
#if __ANDROID_API__ >= __ANDROID_API_L__
|
||||||
int strcoll_l(const char*, const char*, locale_t) __attribute_pure__ __INTRODUCED_IN(21);
|
int strcoll_l(const char* __lhs, const char* __rhs, locale_t __l) __attribute_pure__ __INTRODUCED_IN(21);
|
||||||
size_t strxfrm_l(char*, const char*, size_t, locale_t) __INTRODUCED_IN(21);
|
size_t strxfrm_l(char* __dst, const char* __src, size_t __n, locale_t __l) __INTRODUCED_IN(21);
|
||||||
#else
|
#else
|
||||||
// Implemented as static inlines before 21.
|
// Implemented as static inlines before 21.
|
||||||
#endif
|
#endif
|
||||||
|
@ -130,11 +128,11 @@ size_t strxfrm_l(char*, const char*, size_t, locale_t) __INTRODUCED_IN(21);
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
/* The versioner doesn't handle C++ blocks yet, so manually guarded. */
|
/* The versioner doesn't handle C++ blocks yet, so manually guarded. */
|
||||||
#if __ANDROID_API__ >= 23
|
#if __ANDROID_API__ >= 23
|
||||||
extern "C++" char* basename(char*) __RENAME(__gnu_basename) __INTRODUCED_IN(23);
|
extern "C++" char* basename(char* __path) __RENAME(__gnu_basename) __INTRODUCED_IN(23);
|
||||||
extern "C++" const char* basename(const char*) __RENAME(__gnu_basename) __INTRODUCED_IN(23);
|
extern "C++" const char* basename(const char* __path) __RENAME(__gnu_basename) __INTRODUCED_IN(23);
|
||||||
#endif /* __ANDROID_API__ >= 23 */
|
#endif /* __ANDROID_API__ >= 23 */
|
||||||
#else
|
#else
|
||||||
char* basename(const char*) __RENAME(__gnu_basename) __INTRODUCED_IN(23);
|
char* basename(const char* __path) __RENAME(__gnu_basename) __INTRODUCED_IN(23);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -230,4 +228,4 @@ const char* strpbrk(const char* h, const char* n) __prefer_this_overload {
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
#endif /* _STRING_H */
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue