aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-08-23 23:01:11 -0700
committerChris Robinson <[email protected]>2017-08-23 23:01:11 -0700
commit9ea32713b57fd95832172de5e8d8534339bb646b (patch)
tree13718ad9174b67f56cc6a904e2221a7955f8f10d
parent3d76e1c5141b10e405c13cd3362cad35a422926b (diff)
Constify some pointers
-rw-r--r--Alc/mixer_c.c2
-rw-r--r--Alc/mixer_neon.c2
-rw-r--r--Alc/mixer_sse.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/Alc/mixer_c.c b/Alc/mixer_c.c
index 1635476a..e468fedb 100644
--- a/Alc/mixer_c.c
+++ b/Alc/mixer_c.c
@@ -73,7 +73,7 @@ const ALfloat *Resample_bsinc_C(const InterpState *state, const ALfloat *restric
ALsizei dstlen)
{
const ALfloat *fil, *scd, *phd, *spd;
- const ALfloat *filter = state->bsinc.filter;
+ const ALfloat *const filter = state->bsinc.filter;
const ALfloat sf = state->bsinc.sf;
const ALsizei m = state->bsinc.m;
ALsizei j_f, pi, i;
diff --git a/Alc/mixer_neon.c b/Alc/mixer_neon.c
index 3345290c..58929e1a 100644
--- a/Alc/mixer_neon.c
+++ b/Alc/mixer_neon.c
@@ -141,7 +141,7 @@ const ALfloat *Resample_bsinc_Neon(const InterpState *state,
const ALfloat *restrict src, ALsizei frac, ALint increment,
ALfloat *restrict dst, ALsizei dstlen)
{
- const ALfloat *filter = state->bsinc.filter;
+ const ALfloat *const filter = state->bsinc.filter;
const float32x4_t sf4 = vdupq_n_f32(state->bsinc.sf);
const ALsizei m = state->bsinc.m;
const ALfloat *fil, *scd, *phd, *spd;
diff --git a/Alc/mixer_sse.c b/Alc/mixer_sse.c
index c2514c46..5273a088 100644
--- a/Alc/mixer_sse.c
+++ b/Alc/mixer_sse.c
@@ -16,7 +16,7 @@ const ALfloat *Resample_bsinc_SSE(const InterpState *state, const ALfloat *restr
ALsizei frac, ALint increment, ALfloat *restrict dst,
ALsizei dstlen)
{
- const ALfloat *filter = state->bsinc.filter;
+ const ALfloat *const filter = state->bsinc.filter;
const __m128 sf4 = _mm_set1_ps(state->bsinc.sf);
const ALsizei m = state->bsinc.m;
const ALfloat *fil, *scd, *phd, *spd;