[FFmpeg-devel] C99 or GCC extensions

pross at xvid.org pross
Sat Jul 5 01:22:49 CEST 2008


On Fri, Jul 04, 2008 at 10:20:12PM +0200, Guillaume POIRIER wrote:
> Hello,
> 
> On Fri, Jul 4, 2008 at 9:48 PM, Axel Holzinger <aholzinger at gmx.de> wrote:
> > Hi Ivan,
> >
> > Ivan Kalvachev <ikalvachev at gmail.com> wrote:
> >
> >> ...
> >>
> >> Be more specific, give concrete examples and quotes.
> >> Most of asm code is written in gcc asm style.
> >>
> >> My personal opinion is that extensions should be avoided when
> >> possible.
> >> This is - they should be used only for speed critical stuff.
> >
> > I.e. #define AVV(x...) {x} instead of #define AVV(...) {__VA_ARGS__}
> >
> > I will work on this and send patches.
> 
> Don't work on this issue, it's useless.
> This macro aims at supporting writing Altivec constants with both
> Motorola (used in Apple version of GCC, and in codewarior, maybe even
> in XLC) and FSF (used in FSF GCC) syntaxes.

Coincidently I hit the same problem recently when compiling ffmpeg with
icc-win32. Patch enclosed.

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-altivec-hack.diff
Type: text/x-diff
Size: 397 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080705/59a264dc/attachment.diff>
-------------- 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/20080705/59a264dc/attachment.pgp>



More information about the ffmpeg-devel mailing list