OSDN Git Service

vp8/armv6: mc: avoid boolean expression in calculation
authorJanne Grunau <janne-libav@jannau.net>
Sat, 9 Jul 2016 13:30:34 +0000 (15:30 +0200)
committerJanne Grunau <janne-libav@jannau.net>
Sun, 10 Jul 2016 11:35:41 +0000 (13:35 +0200)
commit5f74bd31a9bd1ac7655103b11743c12d38e0419f
treef7d98968a93b9c93b006bff53796e4530874a3a9
parentfc5cdc0d5372f5103c71d5dede296734fe71ead2
vp8/armv6: mc: avoid boolean expression in calculation

GNU as evaluates true as '-1' while Apple's variant and llvm's internal
assembler evaluate it as '1'. The best way to avoid this madness is to
eliminate boolean expressions instead of trying to fix it with
preprocessor directives. Use a direct formula to calculate the
required temporary space on the stack in
ff_put_vp8_{epel,bilin}{4,8,16}_h[246]v[246]_armv6().

Fixes a checkasm segfault in vp8dsp.mc when using llvm's internal
assembler for a non-Apple target.
libavcodec/arm/vp8dsp_armv6.S