# HG changeset patch # User Mychaela Falconia # Date 1773287601 0 # Node ID fd35fd05bc8bfbcf41e6ab5058b344e693219c5b # Parent 6366902640fd1939b626466a20def8fb1c6a9441 libgsmhr1/sp_frm.[ch]: constify some function arguments Speech encoder main function calls filt4_2nd(), which in turn calls iir_d(). A pointer comes from a "ROM" table, hence const. diff -r 6366902640fd -r fd35fd05bc8b libgsmhr1/sp_frm.c --- a/libgsmhr1/sp_frm.c Thu Mar 12 02:52:36 2026 +0000 +++ b/libgsmhr1/sp_frm.c Thu Mar 12 03:53:21 2026 +0000 @@ -2104,7 +2104,7 @@ * *************************************************************************/ -void filt4_2nd(Shortword pswCoeff[], Shortword pswIn[], +void filt4_2nd(const Shortword pswCoeff[], Shortword pswIn[], Shortword pswXstate[], Shortword pswYstate[], int npts, int shifts) { @@ -3899,9 +3899,9 @@ * *************************************************************************/ -void iir_d(Shortword pswCoeff[], Shortword pswIn[], Shortword pswXstate[], - Shortword pswYstate[], int npts, int shifts, - Shortword swPreFirDownSh, Shortword swFinalUpShift) +void iir_d(const Shortword pswCoeff[], Shortword pswIn[], Shortword pswXstate[], + Shortword pswYstate[], int npts, int shifts, + Shortword swPreFirDownSh, Shortword swFinalUpShift) { /*_________________________________________________________________________ diff -r 6366902640fd -r fd35fd05bc8b libgsmhr1/sp_frm.h --- a/libgsmhr1/sp_frm.h Thu Mar 12 02:52:36 2026 +0000 +++ b/libgsmhr1/sp_frm.h Thu Mar 12 03:53:21 2026 +0000 @@ -59,7 +59,7 @@ Shortword pswWNumSpace[], Shortword pswWDenomSpace[], Shortword pswWSpeechBuffBase[]); -void iir_d(Shortword pswCoeff[], Shortword pswIn[], +void iir_d(const Shortword pswCoeff[], Shortword pswIn[], Shortword pswXstate[], Shortword pswYstate[], int npts, int shifts, @@ -67,7 +67,7 @@ Shortword swFinalUpShift); - void filt4_2nd(Shortword pswCoeff[], + void filt4_2nd(const Shortword pswCoeff[], Shortword pswIn[], Shortword pswXstate[], Shortword pswYstate[],