Searched refs:Z_CLAMP (Results 1 – 3 of 3) sorted by relevance
/Zephyr-latest/include/zephyr/dsp/ |
D | utils.h | 115 ((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/ |
D | gcc.h | 627 #define Z_CLAMP(val, low, high) ({ \ macro
|
/Zephyr-latest/tests/unit/util/ |
D | main.c | 232 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()
|