a-c.c: Make vector extensions also be compiled with Clang.

I was checking for GCC >= 4.7, while Clangs pretends to be GCC 4.2. Use a
feature test macro instead. The comment I made in r4161 regarding GCC vs.
Clang code was wrong. Now, Clang generates slightly faster code for these cases
(solid and masked 4-pixel wide vlines).

git-svn-id: https://svn.eduke32.com/eduke32@4182 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2013-11-28 21:18:07 +00:00
parent 7350e1cfa0
commit a68ef20182

View file

@ -159,7 +159,11 @@ extern uint32_t vplce[4];
extern int32_t vince[4];
extern intptr_t bufplce[4];
#if defined __GNUC__ && __GNUC_MINOR__ >= 7
#if !defined __has_extension
# define __has_extension(x) 0
#endif
#if (defined __GNUC__ && __GNUC_MINOR__ >= 7) || (defined __clang__ && __has_extension(attribute_ext_vector_type))
# if defined _WIN64 || defined __amd64 || defined __x86_64 || defined __x86_64__
# define USE_VECTOR_EXT
# endif