mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-28 05:40:23 -04:00
Make some static tables and strings constants.
By doing this we move them from the .data section to .rodata setion, or from .data.rel to .data.rel.ro. The .rodata section is mapped directly from the on-disk file, which is always a save, while .data.rel.ro is mapped directly when using prelink, which is a save in a lot of cases. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
This commit is contained in:
parent
29a14294fc
commit
8ed98db259
14 changed files with 49 additions and 49 deletions
|
|
@ -89,10 +89,10 @@ typedef struct {
|
|||
#endif
|
||||
|
||||
/* First table lookup for Ima-ADPCM quantizer */
|
||||
static char IndexAdjust[8] = { -1, -1, -1, -1, 2, 4, 6, 8 };
|
||||
static const char IndexAdjust[8] = { -1, -1, -1, -1, 2, 4, 6, 8 };
|
||||
|
||||
/* Second table lookup for Ima-ADPCM quantizer */
|
||||
static short StepSize[89] = {
|
||||
static const short StepSize[89] = {
|
||||
7, 8, 9, 10, 11, 12, 13, 14, 16, 17,
|
||||
19, 21, 23, 25, 28, 31, 34, 37, 41, 45,
|
||||
50, 55, 60, 66, 73, 80, 88, 97, 107, 118,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue