[vlc-devel] VLC_MMX and VLC_SSE function attribute macros breaks outside GCC
Rafaël Carré
funman at videolan.org
Sun Mar 4 23:55:10 CET 2012
Le 2012-03-04 17:24, Francois Cartegnie a écrit :
> Le 04/03/2012 22:18, Rafaël Carré a écrit :
>> Doesn't it mean that you have to implement VLC_MMX for Suncc ? (i.e. it
>> falls back on the last case)
>
> Seems MMX is enabled by compiler flags, and there's no preprocessor
> symbol to check it, or pragma/attribute way to change it on the fly.
Wouldn't the asm code fail to build if MMX was not enabled ?
Compiler wouldn't know what are xmm* in the constraint.
That mean at least compiler would choke on those functions until user
adds the correct flags:
#elif defined(__SUNPRO_C)
# define VLC_MMX
More information about the vlc-devel
mailing list