diff --git a/src/modules/audio_processing/ns/nsx_core.c b/src/modules/audio_processing/ns/nsx_core.c index 940f4722b..47f799bc8 100644 --- a/src/modules/audio_processing/ns/nsx_core.c +++ b/src/modules/audio_processing/ns/nsx_core.c @@ -2341,7 +2341,7 @@ void WebRtcNsx_PrepareSpectrum(NsxInst_t* inst, int16_t* freq_buf) { } // Denormalize the input buffer. -inline void WebRtcNsx_Denormalize(NsxInst_t* inst, int16_t* in, int factor) { +__inline void WebRtcNsx_Denormalize(NsxInst_t* inst, int16_t* in, int factor) { int i = 0, j = 0; int32_t tmp32 = 0; for (i = 0, j = 0; i < inst->anaLen; i += 1, j += 2) { @@ -2407,9 +2407,9 @@ void WebRtcNsx_AnalysisUpdate(NsxInst_t* inst, // Create a complex number buffer (out[]) as the intput (in[]) interleaved with // zeros, and normalize it. -inline void WebRtcNsx_CreateComplexBuffer(NsxInst_t* inst, - int16_t* in, - int16_t* out) { +__inline void WebRtcNsx_CreateComplexBuffer(NsxInst_t* inst, + int16_t* in, + int16_t* out) { int i = 0, j = 0; for (i = 0, j = 0; i < inst->anaLen; i += 1, j += 2) { out[j] = WEBRTC_SPL_LSHIFT_W16(in[i], inst->normData); // Q(normData) diff --git a/src/modules/audio_processing/ns/nsx_core.h b/src/modules/audio_processing/ns/nsx_core.h index 28772223d..990dfcb3a 100644 --- a/src/modules/audio_processing/ns/nsx_core.h +++ b/src/modules/audio_processing/ns/nsx_core.h @@ -190,15 +190,15 @@ void WebRtcNsx_AnalysisUpdate(NsxInst_t* inst, int16_t* new_speech); // Denormalize the input buffer. -inline void WebRtcNsx_Denormalize(NsxInst_t* inst, - int16_t* in, - int factor); +__inline void WebRtcNsx_Denormalize(NsxInst_t* inst, + int16_t* in, + int factor); // Create a complex number buffer, as the intput interleaved with zeros, // and normalize it. -inline void WebRtcNsx_CreateComplexBuffer(NsxInst_t* inst, - int16_t* in, - int16_t* out); +__inline void WebRtcNsx_CreateComplexBuffer(NsxInst_t* inst, + int16_t* in, + int16_t* out); extern const WebRtc_Word16 WebRtcNsx_kLogTable[9]; extern const WebRtc_Word16 WebRtcNsx_kLogTableFrac[256]; diff --git a/src/modules/audio_processing/ns/nsx_core_neon.c b/src/modules/audio_processing/ns/nsx_core_neon.c index e6163e312..d01ba3b97 100644 --- a/src/modules/audio_processing/ns/nsx_core_neon.c +++ b/src/modules/audio_processing/ns/nsx_core_neon.c @@ -456,7 +456,7 @@ void WebRtcNsx_PrepareSpectrum(NsxInst_t* inst, int16_t* freq_buf) { } // Denormalize the input buffer. -inline void WebRtcNsx_Denormalize(NsxInst_t* inst, int16_t* in, int factor) { +__inline void WebRtcNsx_Denormalize(NsxInst_t* inst, int16_t* in, int factor) { int16_t* ptr_real = &inst->real[0]; int16_t* ptr_in = &in[0]; @@ -683,9 +683,9 @@ void WebRtcNsx_AnalysisUpdate(NsxInst_t* inst, // Create a complex number buffer (out[]) as the intput (in[]) interleaved with // zeros, and normalize it. -inline void WebRtcNsx_CreateComplexBuffer(NsxInst_t* inst, - int16_t* in, - int16_t* out) { +__inline void WebRtcNsx_CreateComplexBuffer(NsxInst_t* inst, + int16_t* in, + int16_t* out) { int16_t* ptr_out = &out[0]; int16_t* ptr_in = &in[0];