On Thu, 14 Feb 2013, Ronald S. Bultje wrote:
> On Feb 14, 2013 4:59 AM, "Diego Biurrun" <[email protected]> wrote:
>>On Wed, Feb 13, 2013 at 05:53:36PM -0500, Daniel Kang wrote:
>>> @@ -56,6 +107,44 @@ PUT_PIXELS8_X2
>>>
>>> +%macro PUT_PIXELS8_X2_MMX 0-1
>>> +%if %0 == 1
>>> +cglobal put%1_pixels8_x2, 4,4
>>> +%else
>>> +cglobal put_pixels8_x2, 4,4
>>> +%endif
>>
>> IIRC you don't need the %if, but you can just pass an empty
>> first parameter and it should do the right thing.
>> .. more below ..
>
> MACRO 0-1 "" sets an empty string by default.
True, but strings aren't good for much in asm.
MACRO 0-1 sets an empty *token* by default, which is what you want if
you're going to concatenate it into a function name.
MACRO 0-1 {} works too if you want to explicitly specify the empty token.
--Loren Merritt
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel