Mercurial > libavcodec.hg
diff aac.c @ 10881:798c62217427 libavcodec
AAC: ARM/NEON asm for VMUL2/4 functions
author | mru |
---|---|
date | Fri, 15 Jan 2010 02:58:24 +0000 |
parents | 9ad6c1c4455c |
children | 966a8afdd9aa |
line wrap: on
line diff
--- a/aac.c Fri Jan 15 00:45:47 2010 +0000 +++ b/aac.c Fri Jan 15 02:58:24 2010 +0000 @@ -93,6 +93,10 @@ #include <math.h> #include <string.h> +#if ARCH_ARM +# include "arm/aac.h" +#endif + union float754 { float f; uint32_t i; @@ -862,6 +866,7 @@ } } +#ifndef VMUL2 static inline float *VMUL2(float *dst, const float *v, unsigned idx, const float *scale) { @@ -870,7 +875,9 @@ *dst++ = v[idx>>4 & 15] * s; return dst; } +#endif +#ifndef VMUL4 static inline float *VMUL4(float *dst, const float *v, unsigned idx, const float *scale) { @@ -881,7 +888,9 @@ *dst++ = v[idx>>6 & 3] * s; return dst; } +#endif +#ifndef VMUL2S static inline float *VMUL2S(float *dst, const float *v, unsigned idx, unsigned sign, const float *scale) { @@ -896,7 +905,9 @@ return dst; } +#endif +#ifndef VMUL4S static inline float *VMUL4S(float *dst, const float *v, unsigned idx, unsigned sign, const float *scale) { @@ -921,6 +932,7 @@ return dst; } +#endif /** * Decode spectral data; reference: table 4.50.