#include "by_utils.h" inline int32_t clip_s32(int32_t x, int32_t low, int32_t up) { return (x > up ? up : x < low ? low : x); }