Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Gramner <gramner@twoorioles.com>2019-08-20 19:59:32 +0300
committerHenrik Gramner <henrik@gramner.com>2019-08-23 22:31:42 +0300
commit70b66ff13fc7f082e43777a8c9fa4c0a2ace685e (patch)
tree87fe4cda5e5e72e58c7409e58c2aeca6a8f8ca5d /include
parenta62c445d842d7e459062fad8468aceb8f5efaef4 (diff)
Optimize coef ctx calculations
Diffstat (limited to 'include')
-rw-r--r--include/common/intops.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/common/intops.h b/include/common/intops.h
index 119caab..2d21998 100644
--- a/include/common/intops.h
+++ b/include/common/intops.h
@@ -40,6 +40,14 @@ static inline int imin(const int a, const int b) {
return a < b ? a : b;
}
+static inline unsigned umax(const unsigned a, const unsigned b) {
+ return a > b ? a : b;
+}
+
+static inline unsigned umin(const unsigned a, const unsigned b) {
+ return a < b ? a : b;
+}
+
static inline int iclip(const int v, const int min, const int max) {
return v < min ? min : v > max ? max : v;
}