[FFmpeg-devel] [PATCH] MMX for Win64
Ramiro Polla
ramiro
Thu May 8 23:12:33 CEST 2008
Michael Niedermayer wrote:
> On Thu, May 08, 2008 at 03:09:45AM +0100, Ramiro Polla wrote:
>> 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.
>
> looks ok
Applied.
Ramiro Polla
More information about the ffmpeg-devel
mailing list