commit | e76d9fc422698a88cee13e960154e185670861dc | [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 | 162fc183cf439efe029a581fbde8e4f936815f6d [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