Home
last modified time | relevance | path

Searched refs:Z_CLAMP (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/include/zephyr/dsp/
Dutils.h115 ((q7_t)Z_CLAMP((int32_t)(src * (1U << 7)) >> m, INT8_MIN, INT8_MAX))
125 ((q15_t)Z_CLAMP((int32_t)(src * (1U << 15)) >> m, INT16_MIN, INT16_MAX))
135 ((q31_t)Z_CLAMP((int64_t)(src * (1U << 31)) >> m, INT32_MIN, INT32_MAX))
145 ((q7_t)Z_CLAMP((int32_t)(src * (1U << 7)) >> m, INT8_MIN, INT8_MAX))
155 ((q15_t)Z_CLAMP((int32_t)(src * (1U << 15)) >> m, INT16_MIN, INT16_MAX))
165 ((q31_t)Z_CLAMP((int64_t)(src * (1U << 31)) >> m, INT32_MIN, INT32_MAX))
/Zephyr-latest/include/zephyr/toolchain/
Dgcc.h627 #define Z_CLAMP(val, low, high) ({ \ macro
/Zephyr-latest/tests/unit/util/
Dmain.c232 zassert_equal(Z_CLAMP(inc_func(false), 1, 3), 3, "Unexpected macro result"); in ZTEST()
236 zassert_equal(Z_CLAMP(inc_func(false), 10, 15), 10, in ZTEST()