diff --git a/lib/runtime/function.cc b/lib/runtime/function.cc index 6f457d6c9..d73903c07 100644 --- a/lib/runtime/function.cc +++ b/lib/runtime/function.cc @@ -351,6 +351,8 @@ std::string function::preheader() { #define F32_INFINITY bitcast(0x7F800000) #define F16_INFINITY bitcast((int16)0x7C00) +#define min(a,b) (((a)<(b))?(a):(b)) +#define max(a,b) (((a)>(b))?(a):(b)) #define PASTER(a, b, _) a ## _ ## b #define EVALUATOR(a, b, _) PASTER(a, b, _)