[MPlayer-dev-eng] AMD64 assembler support
Johan Groth
johan.groth at cell-telecom.co.uk
Sun Jul 31 22:07:43 CEST 2005
Michael Niedermayer wrote:
> Hi
>
> On Sunday 31 July 2005 21:49, Johan Groth wrote:
>
>>Reimar Döffinger wrote:
>>
>>>>-static uint64_t attribute_used __attribute__((aligned(8))) magicF2W=
>>>>0x43c0000043c00000LL; -static uint64_t attribute_used
>>>>__attribute__((aligned(8))) wm1010= 0xFFFF0000FFFF0000LL; -static
>>>>uint64_t attribute_used __attribute__((aligned(8))) wm0101=
>>>>0x0000FFFF0000FFFFLL; -static uint64_t attribute_used
>>>>__attribute__((aligned(8))) wm1100= 0xFFFFFFFF00000000LL; +#include
>>>>"a52_internal.h"
>>>>+
>>>>+
>>>>+static uint64_t attribute_used __attribute__((aligned(8))) magicF2W=
>>>>0x43c0000043c00000ULL; +static uint64_t attribute_used
>>>>__attribute__((aligned(8))) wm1010= 0xFFFF0000FFFF0000ULL; +static
>>>>uint64_t attribute_used __attribute__((aligned(8))) wm0101=
>>>>0x0000FFFF0000FFFFULL; +static uint64_t attribute_used
>>>>__attribute__((aligned(8))) wm1100= 0xFFFFFFFF00000000ULL;
>>>
>>>Why this LL -> ULL change?
>>
>>To quote the GCC info pages:
>>"To make an integer constant of type `long
>>long int', add the suffix `LL' to the integer. To make an integer
>>constant of type `unsigned long long int', add the suffix `ULL' to the
>>integer."
>>Hence the change to ULL.
>
>
> this change is ok, but it should be a seprate patch, not part of the amd64
> stuff
Yeah, I agree with you. I became a bit overzealous with the 64 bit
pureism stuff :)
/Johan
More information about the MPlayer-dev-eng
mailing list