diff options
author | Chris Robinson <[email protected]> | 2017-08-16 18:19:04 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-08-16 18:19:04 -0700 |
commit | e0408d8edfb0a5804d4ef9bd3e805d08d62d9266 (patch) | |
tree | bfba885baf21ba25efcc9fbc67b53df05a29d6c6 | |
parent | 5008024e73e7451c25a4c8729bfb636699615e8e (diff) |
Make the sinc4 table static
-rw-r--r-- | Alc/bsinc_inc.c | 2 | ||||
-rw-r--r-- | utils/bsincgen.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Alc/bsinc_inc.c b/Alc/bsinc_inc.c index 28ed04bc..73b582e0 100644 --- a/Alc/bsinc_inc.c +++ b/Alc/bsinc_inc.c @@ -1301,7 +1301,7 @@ static const struct { /* filterOffset */ { 0, 1536, 3072, 4608, 6144, 7680, 9216, 10752, 12032, 13312, 14592, 15616, 16640, 17664, 18432, 19200 } }; -alignas(16) const float sinc4Tab[FRACTIONONE][4] = { +alignas(16) static const float sinc4Tab[FRACTIONONE][4] = { { +1.972846707e-17f, +1.000000000e+00f, +1.972846707e-17f, -7.947592825e-19f }, { -1.234844220e-04f, +9.999998638e-01f, +1.236324705e-04f, -2.493930525e-06f }, { -2.468208365e-04f, +9.999994551e-01f, +2.474130305e-04f, -4.998192808e-06f }, diff --git a/utils/bsincgen.c b/utils/bsincgen.c index 82235a63..76047968 100644 --- a/utils/bsincgen.c +++ b/utils/bsincgen.c @@ -342,7 +342,7 @@ static void Sinc4GenerateTables(void) }
}
- fprintf(stdout, "alignas(16) const float sinc4Tab[FRACTIONONE][4] = {\n");
+ fprintf(stdout, "alignas(16) static const float sinc4Tab[FRACTIONONE][4] = {\n");
for(pi = 0;pi < FRACTIONONE;pi++)
fprintf(stdout, " { %+14.9ef, %+14.9ef, %+14.9ef, %+14.9ef },\n",
filter[pi][0], filter[pi][1], filter[pi][2], filter[pi][3]);
|