Overview
Comment:Defined pi to be 3.1416 if M_PI is not defined.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: abfa7c8ebfa1fd48f3c93e0e1e5fc798fcaa5d885e58a3c478fea6d6ab78d8b6
User & Date: geraint@users.sourceforge.net on 2004-02-10 11:42:05
Other Links: branch diff | manifest | tags
Context
2004-02-10
12:53:16
Updated using version 1.38 from syncmail project. check-in: 2dd02c921b user: geraint@users.sourceforge.net tags: origin/master, trunk
11:42:05
Defined pi to be 3.1416 if M_PI is not defined. check-in: abfa7c8ebf user: geraint@users.sourceforge.net tags: origin/master, trunk
10:22:10
Do proper arithmetic via let
Three levels of output
enumerate, not itemize
check-in: cbb1ac6c08 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/cc/include/useful-functions.hh from [e59a66354c] to [0e72d01a8a].

20
21
22
23
24
25
26
27
28
29
30
31




32
33
34
35
36
37
38
*/
#else
#include <cmath>
#define cast_to_double	static_cast<double>
using std::pow;
#endif /* ! __cplusplus */


static double pi = M_PI;
static double Pi = M_PI;
static double PI = M_PI;






static inline double
max (const double x1, const double x2)
{
  return cast_to_double ((x1 >= x2) ? x1 : (x1 < x2) ? x2 : 0);
}








|



|
>
>
>
>







20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
*/
#else
#include <cmath>
#define cast_to_double	static_cast<double>
using std::pow;
#endif /* ! __cplusplus */

#ifdef M_PI
static double pi = M_PI;
static double Pi = M_PI;
static double PI = M_PI;
#else
static double pi = 3.1416;
static double Pi = pi;
static double PI = pi;
#endif

static inline double
max (const double x1, const double x2)
{
  return cast_to_double ((x1 >= x2) ? x1 : (x1 < x2) ? x2 : 0);
}


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]