summaryrefslogtreecommitdiff
path: root/media-libs/codec2/files/codec2-1.0.3-fix-build-with-Os.patch
blob: 4f3f30661421adbd1040976511c0247da463dd76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
https://github.com/drowe67/codec2/commit/a8d4226859548ceb050619160af562e0b43bb05c
https://github.com/drowe67/codec2/issues/293#issuecomment-1025665342

From: drowe67 <david@rowetel.com>
Date: Tue, 1 Feb 2022 07:20:50 +1030
Subject: [PATCH] change required to build with -Os

--- a/src/cohpsk.c
+++ b/src/cohpsk.c
@@ -816,7 +816,7 @@ typedef float float4 __attribute__ ((vector_size (16)));
 
 \*---------------------------------------------------------------------------*/
 
-inline void rx_filter_coh(COMP rx_filt[COHPSK_NC*COHPSK_ND][P+1], int Nc, COMP rx_baseband[COHPSK_NC*COHPSK_ND][COHPSK_M+COHPSK_M/P], COMP rx_filter_memory[COHPSK_NC*COHPSK_ND][COHPSK_NFILTER], int nin)
+inline extern void rx_filter_coh(COMP rx_filt[COHPSK_NC*COHPSK_ND][P+1], int Nc, COMP rx_baseband[COHPSK_NC*COHPSK_ND][COHPSK_M+COHPSK_M/P], COMP rx_filter_memory[COHPSK_NC*COHPSK_ND][COHPSK_NFILTER], int nin)
 {
     int c,i,j,k,l;
     int n=COHPSK_M/P;