[x264-devel] [PATCH 3/3] checkasm: arm: Check register clobbering

Henrik Gramner henrik at gramner.com
Thu Aug 27 23:33:03 CEST 2015


On Thu, Aug 27, 2015 at 11:15 PM, Martin Storsjö <martin at martin.st> wrote:
> Instead of using a separate checkasm_call function for a 64 bit
> return value, one could also just declare the second one with
> asm("x264_checkasm_call_neon") to have it map to the same symbol,
> but I guess it's easier to duplicate than to deal with the
> potential portability issues.

It should be possible to simply typecast the function pointer inside
the call_a1_64 macro instead of having separate functions returning
64-bit values.

#define call_a1_64(func,...) ((uint64_t (*)((intptr_t(*)(), int,
...))x264_checkasm_call)( (intptr_t(*)())func, &ok, __VA_ARGS__ )

(untested)


More information about the x264-devel mailing list