[vlc-devel] VLC_MMX and VLC_SSE function attribute macros breaks outside GCC

Rafaël Carré funman at videolan.org
Sun Mar 4 22:18:04 CET 2012


Le 2012-03-02 13:59, Francois Cartegnie a écrit :
> commit 209f1ae07f3380a50f3e920d6ba43a1138fae429 logic:
> 
> Breaks VLC_MMX prefixed functions with Suncc:
> __MMX__ is not defined and it's not a GCC compiler.
> 
> # if defined (__MMX__)
> #  define VLC_MMX
> # elif VLC_GCC_VERSION(4, 4)
> #  define VLC_MMX __attribute__ ((__target__ ("mmx")))
> # else
> #  define VLC_MMX VLC_MMX_is_not_implemented_on_this_compiler
> # endif

Doesn't it mean that you have to implement VLC_MMX for Suncc ? (i.e. it
falls back on the last case)



More information about the vlc-devel mailing list