/[escript]/trunk/escript/src/system_dep.h
ViewVC logotype

Annotation of /trunk/escript/src/system_dep.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 779 - (hide annotations)
Fri Jul 14 07:41:31 2006 UTC (13 years, 3 months ago) by woo409
File MIME type: text/plain
File size: 938 byte(s)
+ Updated compilation options for Cognac to squeeze out a bit more performance
+ Now compiles using the Intel Math headers (mathimf.h) rather than plain math.h on both Win32 and Linux platforms when using the Intel compiler. Gives a small boost to performance on Altix and is essential on Windows


1 woo409 743 /**
2     \file system_dep.h
3     \ingroup Other
4     */
5     //
6     // @(#) system_dep.h
7     //
8    
9     #ifndef escript_system_dep_h
10     #define escript_system_dep_h
11    
12 woo409 744 # ifdef __INTEL_COMPILER
13 woo409 743 // The Intel compiler on windows has an "improved" math library compared to the usual Visual C++ one
14     // In particular it has a acosh and other similar functions which aren't implemented in Visual C++ math.h
15     // Note you will get a compile time error if any other header (including system ones) includes math.h whilst mathimf.h
16     // has been included. As a result system_dep.h must be included FIRST at all times (this prevents math.h from being included).
17 woo409 744 # include <mathimf.h>
18     # else
19     # include <math.h>
20     # endif
21 woo409 743
22 woo409 779 #ifdef _WIN32
23    
24 woo409 743 #ifndef INTERFACE_STATIC_LIB
25 woo409 744 # ifdef ESCRIPT_EXPORTS
26     # define ESCRIPT_DLL_API __declspec(dllexport)
27     # else
28     # define ESCRIPT_DLL_API __declspec(dllimport)
29     # endif
30 woo409 743 #endif
31 woo409 744
32 woo409 743 #else
33 woo409 744 # define ESCRIPT_DLL_API
34 woo409 743 #endif
35    
36     #endif

  ViewVC Help
Powered by ViewVC 1.1.26