[LANG] Added hacky min/max

This commit is contained in:
Philippe Tillet
2020-12-23 18:17:52 -05:00
parent d70f54fd6a
commit c4fceeea49

View File

@@ -351,6 +351,8 @@ std::string function::preheader() {
#define F32_INFINITY bitcast<float>(0x7F800000)
#define F16_INFINITY bitcast<half>((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, _)