aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/min-max.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/min-max.h b/lib/min-max.h
new file mode 100644
index 00000000000..997cdd191eb
--- /dev/null
+++ b/lib/min-max.h
@@ -0,0 +1,6 @@
1#ifndef min
2# define min(a,b) ((a) < (b) ? (a) : (b))
3#endif
4#ifndef max
5# define max(a,b) ((a) > (b) ? (a) : (b))
6#endif