SourceForge Logo Tiny Vector Matrix library using Expression Templates Sourceforge Project Page

include/tvmet/config/config-icc.h

Go to the documentation of this file.
00001 /*
00002  * Tiny Vector Matrix Library
00003  * Dense Vector Matrix Libary of Tiny size using Expression Templates
00004  *
00005  * Copyright (C) 2001 - 2007 Olaf Petzold <opetzold@users.sourceforge.net>
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2.1 of the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020  *
00021  * $Id: config-icc.h,v 1.12 2007-06-23 15:58:59 opetzold Exp $
00022  */
00023 
00024 #ifndef TVMET_CONFIG_ICC_H
00025 #define TVMET_CONFIG_ICC_H
00026 
00027 #if defined(__INTEL_COMPILER)
00028 
00029   /* isnan/isinf hack
00030    *
00031    * The problem is related intel's 8.0 macros isnan and isinf,
00032    * they are expanded in this version and they are not compileable
00033    * therefore. We use a small hack here - disabling. This is
00034    * not an real solution, nor forever.
00035    * For a list of all defined symbols use icpc -E -dM prog1.cpp
00036    * or read /opt/intel/compiler80/doc/c_ug/index.htm.
00037    */
00038 #  if (__INTEL_COMPILER == 800) || (__INTEL_COMPILER > 800)
00039 #    define TVMET_NO_IEEE_MATH_ISNAN
00040 #    define TVMET_NO_IEEE_MATH_ISINF
00041 #  endif
00042 
00043 
00044    /*
00045     * disable compiler warnings
00046     */
00047 #  pragma warning(disable:981) // operands are evaluated in unspecified order
00048 
00049 
00050    /*
00051     * force inline using gcc's compatibility mode
00052     */
00053 #  if (__INTEL_COMPILER == 800) || (__INTEL_COMPILER > 800)
00054 #    define TVMET_CXX_ALWAYS_INLINE __attribute__((always_inline))
00055 #  endif
00056 
00057 #else // !defined(__INTEL_COMPILER)
00058 
00059    // paranoia
00060 #  warning "config header included without defined __INTEL_COMPILER"
00061 
00062 #endif
00063 
00064 #endif // TVMET_CONFIG_ICC_H
00065 
00066 // Local Variables:
00067 // mode:C++
00068 // tab-width:8
00069 // End:

Author: