FreeCalypso > hg > gsm-codec-lib
changeset 621:d04015a2e076
libgsmhr1/sp_frm.c: constify "ROM" static data
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Thu, 05 Mar 2026 21:53:35 +0000 |
| parents | 8aacb33fb767 |
| children | 3ae5508f9a54 |
| files | libgsmhr1/sp_frm.c |
| diffstat | 1 files changed, 9 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/libgsmhr1/sp_frm.c Thu Mar 05 21:47:27 2026 +0000 +++ b/libgsmhr1/sp_frm.c Thu Mar 05 21:53:35 2026 +0000 @@ -3068,7 +3068,7 @@ | Local Static Variables | |_________________________________________________________________________| */ - static Shortword pswPCoefE[3] = + static const Shortword pswPCoefE[3] = { /* c2, c1, c0 */ 0x15ef, 0x556f, 0x7fbd }; @@ -3192,7 +3192,7 @@ |_________________________________________________________________________| */ - static Shortword + static const Shortword swC0 = -0x2b2a, swC1 = 0x7fc5, swC2 = -0x54d0; @@ -5240,11 +5240,13 @@ i, j; - static ShortwordRom psrSubMultFactor[] = {0x0aab, /* 1.0/12.0 */ - 0x071c, /* 1.0/18.0 */ - 0x0555, /* 1.0/24.0 */ - 0x0444, /* 1.0/30.0 */ - 0x038e}; /* 1.0/36.0 */ + static const ShortwordRom psrSubMultFactor[] = { + 0x0aab, /* 1.0/12.0 */ + 0x071c, /* 1.0/18.0 */ + 0x0555, /* 1.0/24.0 */ + 0x0444, /* 1.0/30.0 */ + 0x038e /* 1.0/36.0 */ + }; /*_________________________________________________________________________
