8 lines
163 B
C
8 lines
163 B
C
#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);
|
|
}
|