Differences From Artifact [f0062089cf]:

To Artifact [681ea58964]:


16
17
18
19
20
21
22

23
24
25
26
27
28
29
/*
typedef unsigned int bool;
const bool true = 1;
const bool false = 0;
*/
#else
#define cast_to_double	static_cast<double>

#endif /* ! __cplusplus */

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







>







16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
typedef unsigned int bool;
const bool true = 1;
const bool false = 0;
*/
#else
#define cast_to_double	static_cast<double>
using std::pow;
#endif /* ! __cplusplus */

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 ]