|
PER Firmware
|
Minimum value functions utility header. More...
Go to the source code of this file.
Macros | |
| #define | MINOF2(a, b) |
| #define | MINOF3(a, b, c) |
| #define | MINOF4(a, b, c, d) |
| #define | DISPATCH_MINOF(_1, _2, _3, _4, NAME, ...) |
| #define | MINOF(...) |
Functions | |
| static signed int | min2_signed (signed int a, signed int b) |
| static unsigned int | min2_unsigned (unsigned int a, unsigned int b) |
| static float | min2_float (float a, float b) |
Minimum value functions utility header.
Typesafe, supporting ints and floats. Generic MINOF interface for 2, 3, or 4 arguments. Integer promotions also cover int8_t, uint8_t, int16_t, uint16_t
| #define DISPATCH_MINOF | ( | _1, | |
| _2, | |||
| _3, | |||
| _4, | |||
| NAME, | |||
| ... ) |
| #define MINOF | ( | ... | ) |
| #define MINOF2 | ( | a, | |
| b ) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |