zephyr/tests/unit/util
Trond Einar Snekvik ed1f75da74 sys: util: Add clamp macro
Adds CLAMP macro to complement the current min/max macros, as well as a
gcc specific Z_CLAMP macro for single-evaluation expansion.

CLAMP combines the functionality of MIN and MAX, eliminating the
bug-prone usage of MIN(MAX(value, FLOOR), CEIL) found throughout the
codebase in every possible combination.

Signed-off-by: Trond Einar Snekvik <Trond.Einar.Snekvik@nordicsemi.no>
2020-11-05 12:12:17 +01:00
..
CMakeLists.txt testsuite: fix unittest cross-language flags 2020-08-31 11:02:35 -04:00
main.c
maincxx.cxx
test.inc sys: util: Add clamp macro 2020-11-05 12:12:17 +01:00
testcase.yaml