Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
Main Page
Related Pages
+
Classes
Class List
Class Index
+
Class Members
+
All
_
c
d
e
f
g
i
k
l
m
n
p
q
r
s
t
w
x
+
Variables
_
c
d
e
f
g
i
k
l
m
n
p
q
r
s
t
w
x
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
p
q
r
s
t
u
v
w
+
Variables
_
b
c
d
e
f
h
i
l
n
p
t
v
w
+
Typedefs
_
a
b
c
d
f
i
j
n
s
t
u
v
w
Enumerator
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerator
Macros
Pages
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__
fabsf
float fabsf(float)
Definition:
fabsf.c:4
double_t
double double_t
Definition:
math.h:27
float_t
float float_t
Definition:
math.h:26
fabs
double fabs(double)
Definition:
fabs.c:4
include
math.h
Generated by
1.8.15