summaryrefslogtreecommitdiff
path: root/generic/lib/integer/max.inc
diff options
context:
space:
mode:
Diffstat (limited to 'generic/lib/integer/max.inc')
-rw-r--r--generic/lib/integer/max.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/lib/integer/max.inc b/generic/lib/integer/max.inc
new file mode 100644
index 0000000..37409fc
--- /dev/null
+++ b/generic/lib/integer/max.inc
@@ -0,0 +1,3 @@
+_CLC_OVERLOAD _CLC_DEF GENTYPE max(GENTYPE a, GENTYPE b) {
+ return (a > b ? a : b);
+}