inline get_random_number()
Improve performance in grain synthesis.
Change-Id: I944efb3f0b099fcc43f844962c9eeedab476885d
diff --git a/aom_dsp/grain_synthesis.c b/aom_dsp/grain_synthesis.c
index 8dbc242..bb9d5a3 100644
--- a/aom_dsp/grain_synthesis.c
+++ b/aom_dsp/grain_synthesis.c
@@ -357,7 +357,7 @@
}
// 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)) &