shithub: opus

Download patch

ref: c9b95709706773f76f841f1857b6ee99a977564c
parent: c6db01d2a6c2fa7d8f062af3311b1fa47aeac7f4
author: Jean-Marc Valin <jmvalin@amazon.com>
date: Wed May 24 08:58:05 EDT 2023

Add missing include guards

--- a/dnn/burg.h
+++ b/dnn/burg.h
@@ -25,7 +25,10 @@
 POSSIBILITY OF SUCH DAMAGE.
 ***********************************************************************/
 
+#ifndef BURG_H
+#define BURG_H
 
+
 float silk_burg_analysis(              /* O    returns residual energy                                     */
     float          A[],                /* O    prediction coefficients (length order)                      */
     const float    x[],                /* I    input signal, length: nb_subfr*(D+L_sub)                    */
@@ -34,3 +37,5 @@
     const int      nb_subfr,           /* I    number of subframes stacked in x                            */
     const int      D                   /* I    order                                                       */
 );
+
+#endif
--- a/dnn/freq.h
+++ b/dnn/freq.h
@@ -24,6 +24,9 @@
    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
+#ifndef FREQ_H
+#define FREQ_H
+
 #include "kiss_fft.h"
 
 #define LPC_ORDER 16
@@ -59,3 +62,5 @@
 float lpc_from_cepstrum(float *lpc, const float *cepstrum);
 void apply_window(float *x);
 void lpc_weighting(float *lpc, float gamma);
+
+#endif
--- a/dnn/vec_neon.h
+++ b/dnn/vec_neon.h
@@ -28,6 +28,9 @@
 */
 /* NEON support for ARM machines */
 
+#ifndef VEC_NEON_H
+#define VEC_NEON_H
+
 #include <arm_neon.h>
 
 #ifndef DISABLE_DOT_PROD
@@ -366,3 +369,5 @@
       vst1q_f32(&_out[i+4], vmulq_f32(scale_1, vcvtq_f32_s32(acc1)));
    }
 }
+
+#endif
--