Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
math.h
Go to the documentation of this file.
1 #ifndef MATH_H__
2 #define MATH_H__
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #include <openlibm_fenv.h>
9 #include <openlibm_math.h>
10 
11 #ifdef FLT_EVAL_METHOD
12 #if FLT_EVAL_METHOD == 0
13 typedef float float_t;
14 typedef double double_t;
15 #elif FLT_EVAL_METHOD == 1
16 typedef double float_t;
17 typedef double double_t;
18 #elif FLT_EVAL_METHOD == 2
19 typedef long double float_t;
20 typedef long double double_t;
21 #else
22 typedef float float_t;
23 typedef double double_t;
24 #endif // FLT_EVAL_METHOD value
25 #else
26 typedef float float_t;
27 typedef double double_t;
28 #endif // ifdef FLT_EVAL_METHOD
29 
30 double fabs(double);
31 float fabsf(float);
32 // long double fabsl(long double);
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 #endif // MATH_H__
float fabsf(float)
Definition: fabsf.c:4
double double_t
Definition: math.h:27
float float_t
Definition: math.h:26
double fabs(double)
Definition: fabs.c:4