From: Kees van Reeuwijk Date: Tue, 9 Mar 2010 22:05:20 +0000 (+0000) Subject: Add a set of declarations to math.h. Since we don't actually have X-Git-Tag: v3.1.7~244 X-Git-Url: http://zhaoyanbai.com/repos/man.isc-hmac-fixup.html?a=commitdiff_plain;h=a34d34bc1fb9d8ad52551ba9b44f04333a521f3b;p=minix.git Add a set of declarations to math.h. Since we don't actually have implementations for these functions, we lean on GNU builtin functions for using them, so these declarations are also conditional on using a GNU compiler. --- diff --git a/include/math.h b/include/math.h index a3c8d28ab..1c3df22d4 100644 --- a/include/math.h +++ b/include/math.h @@ -66,9 +66,37 @@ _PROTOTYPE( int isless, (double x, double y) ); _PROTOTYPE( int islessequal, (double x, double y) ); _PROTOTYPE( int islessgreater, (double x, double y) ); _PROTOTYPE( int isunordered, (double x, double y) ); -_PROTOTYPE( double nearbyint, (double x) ); +_PROTOTYPE( double nearbyint, (double x) ); _PROTOTYPE( double remainder, (double x, double y) ); -_PROTOTYPE( double trunc, (double x) ); +_PROTOTYPE( double trunc, (double x) ); +#endif + +/* The following definitions are not implemented in the ACK math lib. + * We allow them in the GNU compiler because they are builtins there. + */ +#ifdef __GNUC__ +_PROTOTYPE( float powf, (float, float) ); +_PROTOTYPE( float fmodf, (float, float) ); +_PROTOTYPE( double erf, (double) ); +_PROTOTYPE( double erfc, (double) ); +_PROTOTYPE( double gamma, (double) ); +_PROTOTYPE( double j0, (double) ); +_PROTOTYPE( double j1, (double) ); +_PROTOTYPE( double jn, (int, double) ); +_PROTOTYPE( double lgamma, (double) ); +_PROTOTYPE( double y0, (double) ); +_PROTOTYPE( double y1, (double) ); +_PROTOTYPE( double yn, (int, double) ); +_PROTOTYPE( double acosh, (double) ); +_PROTOTYPE( double asinh, (double) ); +_PROTOTYPE( double atanh, (double) ); +_PROTOTYPE( double cbrt, (double) ); +_PROTOTYPE( double expm1, (double) ); +_PROTOTYPE( int ilogb, (double) ); +_PROTOTYPE( double log1p, (double) ); +_PROTOTYPE( double logb, (double) ); +_PROTOTYPE( double nextafter, (double, double) ); +_PROTOTYPE( double scalb, (double, double) ); #endif #endif /* _MATH_H */