Equalizer 1.0

compiler.h

00001  
00002 /* Copyright (c) 2010, Stefan Eilemann <eile@eyescale.ch> 
00003  *
00004  * This library is free software; you can redistribute it and/or modify it under
00005  * the terms of the GNU Lesser General Public License version 2.1 as published
00006  * by the Free Software Foundation.
00007  *  
00008  * This library is distributed in the hope that it will be useful, but WITHOUT
00009  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00010  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
00011  * details.
00012  * 
00013  * You should have received a copy of the GNU Lesser General Public License
00014  * along with this library; if not, write to the Free Software Foundation, Inc.,
00015  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00016  */
00017 
00018 #ifndef COBASE_COMPILER_H
00019 #define COBASE_COMPILER_H
00020 
00021 #ifdef _MSC_VER
00022 
00023 #  define EQ_ALIGN8( var )  __declspec (align (8)) var;
00024 
00025 #  define EQ_ALIGN16( var ) __declspec (align (16)) var;
00026 #else
00027 
00028 #  define EQ_ALIGN8( var )  var __attribute__ ((aligned (8)));
00029 
00030 #  define EQ_ALIGN16( var ) var __attribute__ ((aligned (16)));
00031 #endif
00032 
00033 #ifdef __GNUC__
00034 #  if (( __GNUC__ > 4 ) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 0)) )
00035 #    define EQ_GCC_4_0_OR_LATER
00036 #  endif
00037 #  if (( __GNUC__ > 4 ) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 1)) )
00038 #    define EQ_GCC_4_1_OR_LATER
00039 #  endif
00040 #  if (( __GNUC__ > 4 ) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 2)) )
00041 #    define EQ_GCC_4_2_OR_LATER
00042 #  endif
00043 #  if (( __GNUC__ > 4 ) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)) )
00044 #    define EQ_GCC_4_3_OR_LATER
00045 #  endif
00046 #  if (( __GNUC__ > 4 ) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) )
00047 #    define EQ_GCC_4_4_OR_LATER
00048 #  endif
00049 #  if (( __GNUC__ > 4 ) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 5)) )
00050 #    define EQ_GCC_4_5_OR_LATER
00051 #  endif
00052 #endif // GCC
00053 
00054 #endif //COBASE_COMPILER_H
Generated on Sun May 8 2011 19:11:05 for Equalizer 1.0 by  doxygen 1.7.3