Added fabs, and errhandling; removed types.h incl

This commit is contained in:
Gitea 2020-12-01 17:30:40 -06:00
parent 3a1a19790a
commit bd271b12a2

View file

@ -12,8 +12,6 @@
#ifndef _MATH_H
#define _MATH_H
#include <sys/types.h>
#if FLT_EVAL_METHOD == 1
typedef double float_t;
typedef double double_t;
@ -40,6 +38,10 @@ typedef double double_t;
#define M_LN2 0.69314718056
#define M_LN10 2.302585093
#define MATH_ERRNO 1
#define MATH_ERREXCEPT 2
#define math_errhandling (int) (MATH_ERRNO | MATH_ERREXCEPT)
double acos(double);
float acosf(float);
long double acosl(long double);
@ -108,6 +110,10 @@ double frexp(double, int *);
float frexpf(float, int *);
long double frexpl(double, int *);
double fabs(double);
float fabsf(float);
long double fabsl(long double);
#endif