Commit 3dc71a32 authored by Timo Witte's avatar Timo Witte Committed by Johann Koenig

inline get_random_number()

Improve performance in grain synthesis.

Change-Id: I944efb3f0b099fcc43f844962c9eeedab476885d
parent d8edf23b
......@@ -357,7 +357,7 @@ static void dealloc_arrays(aom_film_grain_t *params, int ***pred_pos_luma,
}
// get a number between 0 and 2^bits - 1
int get_random_number(int bits) {
static INLINE int get_random_number(int bits) {
uint16_t bit;
bit = ((random_register >> 0) ^ (random_register >> 1) ^
(random_register >> 3) ^ (random_register >> 12)) &
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment