diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/math.h | 6 | ||||
-rw-r--r-- | include/stdlib.h | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/include/math.h b/include/math.h index 6fbb4c7f5..032b2b073 100644 --- a/include/math.h +++ b/include/math.h @@ -28,6 +28,11 @@ typedef struct { #define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */ +#if 1 +extern double sin(double); +extern double cos(double); +extern double sqrt(double); +#else extern float acos ( float x ); extern float acosh ( float xx ); extern int airy ( float xx, float *ai, float *aip, float *bi, float *bip ); @@ -168,3 +173,4 @@ extern float yn ( int nn, float xx ); extern float yv ( float vv, float xx ); extern float zetac ( float xx ); extern float zeta ( float xx, float qq ); +#endif diff --git a/include/stdlib.h b/include/stdlib.h index 20261bdc1..6ad53fc9a 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -46,8 +46,8 @@ typedef __compar_fn_t comparison_fn_t; extern long strtol __P ((const char * nptr, char ** endptr, int base)); extern unsigned long strtoul __P ((const char * nptr, char ** endptr, int base)); #ifndef __HAS_NO_FLOATS__ -extern char * gcvt __P ((float number, size_t ndigit, char * buf)); -extern float strtod __P ((const char * nptr, char ** endptr)); +/*TODO: extern char * gcvt __P ((double number, size_t ndigit, char * buf)); */ +extern double strtod __P ((const char * nptr, char ** endptr)); #endif |