[XviD-devel] function of the "DECLARE_ALIGNED_MATRIX(name,sizex,sizey,type,alignment)"
josse
xvid-devel@xvid.org
Tue, 21 Jan 2003 14:44:03 +0100
Hi,
i test it and it works better (not perfect) as befor. Thanks
The Compiler is the VisualDSP Ver. 2.2.2.4 from Analog Device.
I dont now now alignment the compiler is used. This is the Next Problem.
A other question i have.
is the Sourecode 100% ANSI-C i think not. The MS VS6.0 Compiler have 0
Errors after compiling
but the Analog Device Compiler have a lot of warnings and errors after
compiling.
suxen_drol schrieb:
>On Tue, 21 Jan 2003 14:03:41 +0100 josse <josse11@epost.de> wrote:
>
>
>
>>Hi,
>>
>>What function have the
>> DECLARE_ALIGNED_MATRIX(name,sizex,sizey,type,alignment)
>>Macro in the porttab.h File
>>
>>I implement the code to Analog Devices DSP and i dont no if i need the
>>macro of this platform.
>>
>>Have anyone a idea
>>
>>
>
>on many platforms there is a significant memory access
>penalty for unaligned data. the purpose of the macro, as the name
>suggests, is to DECLARE an ALIGNED MATRIX (array).
>
>how alignment is performed is dependant upon the compiler. what compiler
>are you using?
>
>
>if you wish to ignore alignment, try the following:
>
>#define DECLARE_ALIGNED_MATRIX(name,sizex,sizey,type,alignment) \
> type name[(sizex)*(sizey)]
>
>-- pete; life is like a box of ammo
>
>
>_______________________________________________
>XviD-devel mailing list
>XviD-devel@xvid.org
>http://list.xvid.org/mailman/listinfo/xvid-devel
>
>
>