[FFmpeg-cvslog] r21219 - in trunk/libavcodec: aac.c arm/aac.h

Måns Rullgård mans
Fri Jan 15 21:28:10 CET 2010


Alex Converse <alex.converse at gmail.com> writes:

> On Thu, Jan 14, 2010 at 9:58 PM, mru <subversion at mplayerhq.hu> wrote:
>> Author: mru
>> Date: Fri Jan 15 03:58:24 2010
>> New Revision: 21219
>>
>> Log:
>> AAC: ARM/NEON asm for VMUL2/4 functions
>>
>> Added:
>> ? trunk/libavcodec/arm/aac.h
>> Modified:
>> ? trunk/libavcodec/aac.c
>>
>> Modified: trunk/libavcodec/aac.c
>> ==============================================================================
>> --- trunk/libavcodec/aac.c ? ? ?Fri Jan 15 01:45:47 2010 ? ? ? ?(r21218)
>> +++ trunk/libavcodec/aac.c ? ? ?Fri Jan 15 03:58:24 2010 ? ? ? ?(r21219)
>> @@ -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 @@ static void decode_mid_side_stereo(Chann
>> ? ? }
>> ?}
>>
>> +#ifndef VMUL2
>> ?static inline float *VMUL2(float *dst, const float *v, unsigned idx,
>> ? ? ? ? ? ? ? ? ? ? ? ? ? ?const float *scale)
>> ?{
>> @@ -870,7 +875,9 @@ static inline float *VMUL2(float *dst, c
>> ? ? *dst++ = v[idx>>4 & 15] * s;
>> ? ? return dst;
>> ?}
>> +#endif

[...]

> I certainly like the speed up associated with these changes but there
> has to be a cleaner way of organizing them as not to litter aac.c with
> ifdefs.

Like what?

What's so terrible about those ifdefs anyway?  IMO ifdefs are fine as
long as they have simple conditions and are not deeply nested.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-cvslog mailing list