Skip to content

Commit cba9116

Browse files
committed
fix: Add missing math wrappers
1 parent f77af68 commit cba9116

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/colvarmodule.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ class colvarmodule {
126126
return ::floor(static_cast<double>(x));
127127
}
128128

129+
/// Reimplemented to work around MS compiler issues
130+
static inline real ceil(real const &x)
131+
{
132+
return ::ceil(static_cast<double>(x));
133+
}
134+
129135
/// Reimplemented to work around MS compiler issues
130136
static inline real fabs(real const &x)
131137
{
@@ -195,6 +201,12 @@ static inline real acos(real const &x)
195201
return ::atan2(static_cast<double>(x), static_cast<double>(y));
196202
}
197203

204+
/// Reimplemented to work around MS compiler issues
205+
static inline real tanh(real const &x)
206+
{
207+
return ::tanh(static_cast<double>(x));
208+
}
209+
198210
/// Reimplemented to work around MS compiler issues
199211
static inline real exp(real const &x)
200212
{

0 commit comments

Comments
 (0)