min
* use a macro for `min` inside lx_emul/kernel.h * unify the definition of the clamp function Fix #2964