]> git.baikalelectronics.ru Git - arm-tf.git/commit
lib: utils_def: add CLAMP macro
authorLionel Debieve <lionel.debieve@st.com>
Thu, 2 Jan 2020 10:14:16 +0000 (11:14 +0100)
committerLionel Debieve <lionel.debieve@st.com>
Mon, 20 Jan 2020 10:32:59 +0000 (11:32 +0100)
commite76d9fc422698a88cee13e960154e185670861dc
treebdde332ba0f91b44f2a11977287441b7fc0476ea
parent162fc183cf439efe029a581fbde8e4f936815f6d
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
include/lib/utils_def.h