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:
authorRonald S. Bultje <rsbultje@gmail.com>2019-11-03 15:52:55 +0300
committerRonald S. Bultje <rsbultje@gmail.com>2019-12-06 00:13:25 +0300
commit562f1958a61c6e2ab0e416889fbb0aaa3cae1942 (patch)
treef03a8a7c7cb7620ff999e15baa30da1d7168668d /src/film_grain_tmpl.c
parent940eee483a852ec54349ef36f19713bb2b895b57 (diff)
Simplify shifting in generate_grain_y/uv AVX2
Diffstat (limited to 'src/film_grain_tmpl.c')
-rw-r--r--src/film_grain_tmpl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/film_grain_tmpl.c b/src/film_grain_tmpl.c
index 03a499b..90a03a4 100644
--- a/src/film_grain_tmpl.c
+++ b/src/film_grain_tmpl.c
@@ -43,7 +43,7 @@ static inline int get_random_number(const int bits, unsigned *const state) {
return (*state >> (16 - bits)) & ((1 << bits) - 1);
}
-static inline int round2(const int x, const int shift) {
+static inline int round2(const int x, const uint64_t shift) {
return (x + ((1 << shift) >> 1)) >> shift;
}