Various minor changes for compatibility with MS Visual C++ and GCC 4.4
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3105 ac1d8469-bf42-47a9-8791-bf33cf982152issue#70
parent
e45d3a4cb2
commit
8bd114300a
|
@ -36,6 +36,18 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
typedef __int8 int8_t;
|
||||||
|
typedef unsigned __int8 uint8_t;
|
||||||
|
typedef __int16 int16_t;
|
||||||
|
typedef unsigned __int16 uint16_t;
|
||||||
|
typedef __int32 int32_t;
|
||||||
|
typedef unsigned __int32 uint32_t;
|
||||||
|
typedef __int64 int64_t;
|
||||||
|
typedef unsigned __int64 uint64_t;
|
||||||
|
#else
|
||||||
|
# include <stdint.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|
|
@ -1379,21 +1379,12 @@ UnaryOpNode::eval_opcode(UnaryOpcode op_code, double v) throw (EvalException)
|
||||||
return(sinh(v));
|
return(sinh(v));
|
||||||
case oTanh:
|
case oTanh:
|
||||||
return(tanh(v));
|
return(tanh(v));
|
||||||
#ifndef _WIN64
|
|
||||||
case oAcosh:
|
case oAcosh:
|
||||||
return(acosh(v));
|
return(acosh(v));
|
||||||
case oAsinh:
|
case oAsinh:
|
||||||
return(asinh(v));
|
return(asinh(v));
|
||||||
case oAtanh:
|
case oAtanh:
|
||||||
return(atanh(v));
|
return(atanh(v));
|
||||||
#else
|
|
||||||
case oAcosh:
|
|
||||||
throw EvalException();
|
|
||||||
case oAsinh:
|
|
||||||
throw EvalException();
|
|
||||||
case oAtanh:
|
|
||||||
throw EvalException();
|
|
||||||
#endif
|
|
||||||
case oSqrt:
|
case oSqrt:
|
||||||
return(sqrt(v));
|
return(sqrt(v));
|
||||||
case oSteadyState:
|
case oSteadyState:
|
||||||
|
|
Loading…
Reference in New Issue