lib: utils_def: add CLAMP macro
Add the standard CLAMP macro.  It ensures that
x is between the limits set by low and high.
If low is greater than high the result is undefined.

Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Change-Id: Ia173bb9ca51bc8d9a8ec573bbc15636a94f881f4
1 parent 162fc18 commit e76d9fc422698a88cee13e960154e185670861dc
@Lionel Debieve Lionel Debieve authored on 2 Jan 2020
Showing 1 changed file
View
include/lib/utils_def.h