commit | a265ade96156333c780928604162df7545707a10 | [log] [tgz] |
---|---|---|
author | Lionel Debieve <lionel.debieve@st.com> | Thu Jan 02 11:14:16 2020 +0100 |
committer | Lionel Debieve <lionel.debieve@st.com> | Mon Jan 20 11:32:59 2020 +0100 |
tree | bdde332ba0f91b44f2a11977287441b7fc0476ea | |
parent | 236f7bdbc62499458cd090663e8d68d4f5a545b2 [diff] |
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