escript
Revision_Unversioneddirectory
Main Page
Namespaces
Classes
Files
File List
File Members
escriptcore
src
escriptcore/src/system_dep.h
Go to the documentation of this file.
1
2
/*****************************************************************************
3
*
4
* Copyright (c) 2003-2016 by The University of Queensland
5
* http://www.uq.edu.au
6
*
7
* Primary Business: Queensland, Australia
8
* Licensed under the Apache License, version 2.0
9
* http://www.apache.org/licenses/LICENSE-2.0
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
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
Generated on Sat Oct 8 2016 15:13:03 for escript by
1.8.11