[FFmpeg-devel] [PATCH] MMX for Win64

Michael Niedermayer michaelni
Thu May 8 12:46:33 CEST 2008


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

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Everything should be made as simple as possible, but not simpler.
-- Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080508/f4af1349/attachment.pgp>



More information about the ffmpeg-devel mailing list