aboutsummaryrefslogtreecommitdiff
path: root/jutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'jutils.c')
-rw-r--r--jutils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/jutils.c b/jutils.c
index d18a955..616ad05 100644
--- a/jutils.c
+++ b/jutils.c
@@ -86,6 +86,12 @@ jround_up (long a, long b)
return a - (a % b);
}
+GLOBAL(long)
+jmin (long a, long b)
+{
+ return a < b ? a : b;
+}
+
/* On normal machines we can apply MEMCOPY() and MEMZERO() to sample arrays
* and coefficient-block arrays. This won't work on 80x86 because the arrays