|
PER Firmware
|
Maximum value functions utility header. More...
Go to the source code of this file.
Macros | |
| #define | MAXOF2(a, b) |
| #define | MAXOF3(a, b, c) |
| #define | MAXOF4(a, b, c, d) |
| #define | DISPATCH_MAXOF(_1, _2, _3, _4, NAME, ...) |
| #define | MAXOF(...) |
Functions | |
| static signed int | max2_signed (signed int a, signed int b) |
| static unsigned int | max2_unsigned (unsigned int a, unsigned int b) |
| static float | max2_float (float a, float b) |
Maximum value functions utility header.
Typesafe, supporting ints and floats. Generic MAXOF interface for 2, 3, or 4 arguments. Integer promotions also cover int8_t, uint8_t, int16_t, uint16_t
| #define DISPATCH_MAXOF | ( | _1, | |
| _2, | |||
| _3, | |||
| _4, | |||
| NAME, | |||
| ... ) |
| #define MAXOF | ( | ... | ) |
| #define MAXOF2 | ( | a, | |
| b ) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |