Absolute value functions utility header.
More...
Go to the source code of this file.
|
| static signed int | abs_i (int x) |
| |
| static float | abs_f (float x) |
| |
Absolute value functions utility header.
Typesafe, supporting ints and floats. Integer promotions also cover int8_t, int16_t
- Author
- Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)
◆ ABS
Value: _Generic((x) + 0, \
)((x))
static signed int abs_i(int x)
Definition abs.h:15
static float abs_f(float x)
Definition abs.h:20
◆ abs_f()
| static float abs_f |
( |
float | x | ) |
|
|
inlinestatic |
◆ abs_i()
| static signed int abs_i |
( |
int | x | ) |
|
|
inlinestatic |