diff options
Diffstat (limited to 'libspeex/vq_sse.h')
-rw-r--r-- | libspeex/vq_sse.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libspeex/vq_sse.h b/libspeex/vq_sse.h index 00a42ce..2abe880 100644 --- a/libspeex/vq_sse.h +++ b/libspeex/vq_sse.h @@ -7,18 +7,18 @@ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - + - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - + - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - + - Neither the name of the Xiph.org Foundation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. - + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -77,10 +77,10 @@ void vq_nbest_sign(spx_word16_t *_in, const __m128 *codebook, int len, int entri int i,j,k,used; VARDECL(float *dist); VARDECL(__m128 *in); - __m128 half; + used = 0; ALLOC(dist, entries, float); - half = _mm_set_ps1(.5f); + ALLOC(in, len, __m128); for (i=0;i<len;i++) in[i] = _mm_set_ps1(_in[i]); |