[FFmpeg-devel] [PATCH] MMX for Win64
Ramiro Polla
ramiro
Thu May 8 04:09:45 CEST 2008
Hello,
>> Attached patch passes regression tests on mingw32 and mingw64.
>>
>> Ramiro Polla
>
>> Index: libavutil/x86_cpu.h
>> ===================================================================
>> --- libavutil/x86_cpu.h (revision 13058)
>> +++ libavutil/x86_cpu.h (working copy)
>> @@ -31,6 +31,7 @@
>> # define REG_D "rdi"
>> # define REG_S "rsi"
>> # define PTR_SIZE "8"
>> +typedef int64_t register_t;
>>
>> # define REG_SP "rsp"
>> # define REG_BP "rbp"
>> @@ -50,6 +51,7 @@
>> # define REG_D "edi"
>> # define REG_S "esi"
>> # define PTR_SIZE "4"
>> +typedef int32_t register_t;
>
> Id prefer reg_t as its shorter
Change to x86_reg to not invade POSIX namespace.
> [...]
>> @@ -142,7 +143,8 @@
>> void ff_imdct_calc_sse(MDCTContext *s, FFTSample *output,
>> const FFTSample *input, FFTSample *tmp)
>> {
>> - long k, n8, n4, n2, n;
>> + register_t k;
>> + int n8, n4, n2, n;
>
> bad and unrelated
This and a couple more fixed.
Ramiro Polla
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: amd64_3.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080508/979f05cf/attachment.asc>
More information about the ffmpeg-devel
mailing list