Revision 8593e050

b/include/qemu-common.h
448 448
/* vector definitions */
449 449
#ifdef __ALTIVEC__
450 450
#include <altivec.h>
451
#define VECTYPE        vector unsigned char
451
/* The altivec.h header says we're allowed to undef these for
452
 * C++ compatibility.  Here we don't care about C++, but we
453
 * undef them anyway to avoid namespace pollution.
454
 */
455
#undef vector
456
#undef pixel
457
#undef bool
458
#define VECTYPE        __vector unsigned char
452 459
#define SPLAT(p)       vec_splat(vec_ld(0, p), 0)
453 460
#define ALL_EQ(v1, v2) vec_all_eq(v1, v2)
454 461
/* altivec.h may redefine the bool macro as vector type.
455 462
 * Reset it to POSIX semantics. */
456
#undef bool
457 463
#define bool _Bool
458 464
#elif defined __SSE2__
459 465
#include <emmintrin.h>

Also available in: Unified diff