shithub: opus

Download patch

ref: 17bb81934ba2bf3123500c10b8aac6a8f2dfc11a
parent: 105e1d83fad6393b00edb7eb676be483eb4ee2d7
author: Michael Klingbeil <klingm@amazon.com>
date: Fri Jun 30 18:41:03 EDT 2023

add undefs in mathops.h and remove OPUS_INLINE in vec_neon.h

--- a/celt/mathops.h
+++ b/celt/mathops.h
@@ -230,6 +230,12 @@
    frac = SHL16(x, 4);
    return ADD16(D0, MULT16_16_Q15(frac, ADD16(D1, MULT16_16_Q15(frac, ADD16(D2 , MULT16_16_Q15(D3,frac))))));
 }
+
+#undef D0
+#undef D1
+#undef D2
+#undef D3
+
 /** Base-2 exponential approximation (2^x). (Q10 input, Q16 output) */
 static OPUS_INLINE opus_val32 celt_exp2(opus_val16 x)
 {
--- a/dnn/vec_neon.h
+++ b/dnn/vec_neon.h
@@ -45,7 +45,7 @@
 
 
 #ifndef LPCNET_TEST
-static inline OPUS_INLINE float32x4_t exp4_approx(float32x4_t x) {
+static inline float32x4_t exp4_approx(float32x4_t x) {
   int32x4_t i;
   float32x4_t xf;
 
--