--- linuxsampler/trunk/src/common/global_private.h 2009/07/04 11:40:15 1929 +++ linuxsampler/trunk/src/common/global_private.h 2009/07/04 12:31:44 1930 @@ -3,7 +3,7 @@ * LinuxSampler - modular, streaming capable sampler * * * * Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * - * Copyright (C) 2005 - 2008 Christian Schoenebeck * + * Copyright (C) 2005 - 2009 Christian Schoenebeck * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -48,10 +48,14 @@ // macro to check for a certain version (or newer) of GCC #define GNUC_VERSION_PREREQ(major,minor) (__GNUC__ > (major) || (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor))) + // macro which checks if GCC vector extensions are avialable #define HAVE_GCC_VECTOR_EXTENSIONS ( GNUC_VERSION_PREREQ(3,3) && ( defined(__i386__) || defined(__x86_64__) || defined(_ARCH_PPC) ) ) + +#if HAVE_GCC_VECTOR_EXTENSIONS // v4sf is used by some routines that make use of GCC vector extensions (ie AudioChannel.cpp) typedef float v4sf __attribute__ ((vector_size(16))); +#endif /** * Whether a function / method call was successful, or if warnings or even an