/[escript]/branches/subworld2/escriptcore/src/system_dep.h
ViewVC logotype

Contents of /branches/subworld2/escriptcore/src/system_dep.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5504 - (show annotations)
Wed Mar 4 22:58:13 2015 UTC (4 years, 1 month ago) by jfenwick
File MIME type: text/plain
File size: 1603 byte(s)
Again with a more up to date copy


1
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2015 by University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Open Software License version 3.0
9 * http://www.opensource.org/licenses/osl-3.0.php
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development 2012-2013 by School of Earth Sciences
13 * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 *
15 *****************************************************************************/
16
17
18 /**
19 \file escript/src/system_dep.h
20 \ingroup Other
21 */
22 /*
23 @(#) system_dep.h
24 */
25
26
27 #ifndef escript_system_dep_h
28 #define escript_system_dep_h
29
30
31 #ifdef NO_FLOAT_H
32 # define DBL_EPSILON 2.2204460492503131E-16
33 # define DBL_MAX 1.7976931348623157E+308
34 # define DBL_MIN 2.2250738585072014E-308
35 #else /* for the rest of the world */
36 # include <float.h>
37 #endif
38 #include <limits.h>
39
40 # include <cmath>
41
42 #ifndef M_PI
43 # define M_PI 3.14159265358979323846
44 #endif
45
46 #ifndef SQRT_DBL_EPSILON
47 # define SQRT_DBL_EPSILON 1.4901161193847656e-08
48 #endif
49
50 #ifndef M_LN2
51 # define M_LN2 0.69314718055994530942 /* log_e 2 */
52 #endif
53
54 #define ESCRIPT_DLL_API
55
56 #ifdef _WIN32
57 # ifndef ESCRIPT_STATIC_LIB
58 # undef ESCRIPT_DLL_API
59 # ifdef ESCRIPT_EXPORTS
60 # define ESCRIPT_DLL_API __declspec(dllexport)
61 # else
62 # define ESCRIPT_DLL_API __declspec(dllimport)
63 # endif
64 # endif
65 #endif
66
67 #ifndef ESCRIPT_MAX_DATA_RANK
68 #define ESCRIPT_MAX_DATA_RANK 4
69 #endif
70
71 #include <esysUtils/types.h>
72
73 #endif
74

  ViewVC Help
Powered by ViewVC 1.1.26