Eurobot2012_Primary

Dependencies:   mbed Eurobot_2012_Primary

Committer:
narshu
Date:
Wed Oct 17 22:22:28 2012 +0000
Revision:
25:143b19c1fb05
Commit before publishing;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
narshu 25:143b19c1fb05 1 /*
narshu 25:143b19c1fb05 2 * Tiny Vector Matrix Library
narshu 25:143b19c1fb05 3 * Dense Vector Matrix Libary of Tiny size using Expression Templates
narshu 25:143b19c1fb05 4 *
narshu 25:143b19c1fb05 5 * Copyright (C) 2001 - 2007 Olaf Petzold <opetzold@users.sourceforge.net>
narshu 25:143b19c1fb05 6 *
narshu 25:143b19c1fb05 7 * This library is free software; you can redistribute it and/or
narshu 25:143b19c1fb05 8 * modify it under the terms of the GNU Lesser General Public
narshu 25:143b19c1fb05 9 * License as published by the Free Software Foundation; either
narshu 25:143b19c1fb05 10 * version 2.1 of the License, or (at your option) any later version.
narshu 25:143b19c1fb05 11 *
narshu 25:143b19c1fb05 12 * This library is distributed in the hope that it will be useful,
narshu 25:143b19c1fb05 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
narshu 25:143b19c1fb05 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
narshu 25:143b19c1fb05 15 * Lesser General Public License for more details.
narshu 25:143b19c1fb05 16 *
narshu 25:143b19c1fb05 17 * You should have received a copy of the GNU Lesser General Public
narshu 25:143b19c1fb05 18 * License along with this library; if not, write to the Free Software
narshu 25:143b19c1fb05 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
narshu 25:143b19c1fb05 20 *
narshu 25:143b19c1fb05 21 * $Id: config-icc.h,v 1.12 2007-06-23 15:58:59 opetzold Exp $
narshu 25:143b19c1fb05 22 */
narshu 25:143b19c1fb05 23
narshu 25:143b19c1fb05 24 #ifndef TVMET_CONFIG_ICC_H
narshu 25:143b19c1fb05 25 #define TVMET_CONFIG_ICC_H
narshu 25:143b19c1fb05 26
narshu 25:143b19c1fb05 27 #if defined(__INTEL_COMPILER)
narshu 25:143b19c1fb05 28
narshu 25:143b19c1fb05 29 /* isnan/isinf hack
narshu 25:143b19c1fb05 30 *
narshu 25:143b19c1fb05 31 * The problem is related intel's 8.0 macros isnan and isinf,
narshu 25:143b19c1fb05 32 * they are expanded in this version and they are not compileable
narshu 25:143b19c1fb05 33 * therefore. We use a small hack here - disabling. This is
narshu 25:143b19c1fb05 34 * not an real solution, nor forever.
narshu 25:143b19c1fb05 35 * For a list of all defined symbols use icpc -E -dM prog1.cpp
narshu 25:143b19c1fb05 36 * or read /opt/intel/compiler80/doc/c_ug/index.htm.
narshu 25:143b19c1fb05 37 */
narshu 25:143b19c1fb05 38 # if (__INTEL_COMPILER == 800) || (__INTEL_COMPILER > 800)
narshu 25:143b19c1fb05 39 # define TVMET_NO_IEEE_MATH_ISNAN
narshu 25:143b19c1fb05 40 # define TVMET_NO_IEEE_MATH_ISINF
narshu 25:143b19c1fb05 41 # endif
narshu 25:143b19c1fb05 42
narshu 25:143b19c1fb05 43
narshu 25:143b19c1fb05 44 /*
narshu 25:143b19c1fb05 45 * disable compiler warnings
narshu 25:143b19c1fb05 46 */
narshu 25:143b19c1fb05 47 # pragma warning(disable:981) // operands are evaluated in unspecified order
narshu 25:143b19c1fb05 48
narshu 25:143b19c1fb05 49
narshu 25:143b19c1fb05 50 /*
narshu 25:143b19c1fb05 51 * force inline using gcc's compatibility mode
narshu 25:143b19c1fb05 52 */
narshu 25:143b19c1fb05 53 # if (__INTEL_COMPILER == 800) || (__INTEL_COMPILER > 800)
narshu 25:143b19c1fb05 54 # define TVMET_CXX_ALWAYS_INLINE __attribute__((always_inline))
narshu 25:143b19c1fb05 55 # endif
narshu 25:143b19c1fb05 56
narshu 25:143b19c1fb05 57 #else // !defined(__INTEL_COMPILER)
narshu 25:143b19c1fb05 58
narshu 25:143b19c1fb05 59 // paranoia
narshu 25:143b19c1fb05 60 # warning "config header included without defined __INTEL_COMPILER"
narshu 25:143b19c1fb05 61
narshu 25:143b19c1fb05 62 #endif
narshu 25:143b19c1fb05 63
narshu 25:143b19c1fb05 64 #endif // TVMET_CONFIG_ICC_H
narshu 25:143b19c1fb05 65
narshu 25:143b19c1fb05 66 // Local Variables:
narshu 25:143b19c1fb05 67 // mode:C++
narshu 25:143b19c1fb05 68 // tab-width:8
narshu 25:143b19c1fb05 69 // End: