]> git.sesse.net Git - ffmpeg/commit
x86: cabac: allow building with suncc
authorMans Rullgard <mans@mansr.com>
Sun, 12 Aug 2012 01:18:41 +0000 (02:18 +0100)
committerMans Rullgard <mans@mansr.com>
Mon, 13 Aug 2012 13:51:52 +0000 (14:51 +0100)
commit8ec0204ee4ee93218c51a86d2faa24937c8108e7
tree661130cb96734266a4f46057d86075172c601109
parentc8252e80eb1d0d0964e94b3186bfdb776fee99d6
x86: cabac: allow building with suncc

This fixes two issues preventing suncc from building this code.

The undocumented 'a' operand modifier, causing gcc to omit a $ in
front of immediate operands (as required in addresses), is not
supported by suncc.  Luckily, the also undocumented 'c' modifer
has the same effect and is supported.

On some asm statements with a large number of operands, suncc for no
obvious reason fails to correctly substitute some of the operands.
Fortunately, some of the operands in these statements are plain
numbers which can be inserted directly into the code block instead
of passed as operands.

With these changes, the code builds correctly with both gcc and
suncc.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/x86/cabac.h
libavcodec/x86/h264_i386.h