Skip to content

Commit

Permalink
fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Sadokhov committed Nov 6, 2024
1 parent 5e67a03 commit fce4bdb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions runtime-common/stdlib/math/math-functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,3 @@ int64_t f$abs(const Optional<bool> &v) noexcept {
double f$abs(const Optional<double> &v) noexcept {
return f$abs(val(v));
}


12 changes: 6 additions & 6 deletions runtime-common/stdlib/math/math-functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ template<class T>
inline T f$min(const T &arg1) noexcept;

template<class T, class... Args>
inline T f$min(const T &arg1, const T &arg2, Args&&... args) noexcept;
inline T f$min(const T &arg1, const T &arg2, Args &&...args) noexcept;

template<class T>
inline T f$max(const T &arg1) noexcept;

template<class T, class... Args>
inline T f$max(const T &arg1, const T &arg2, Args&&... args) noexcept;
inline T f$max(const T &arg1, const T &arg2, Args &&...args) noexcept;

inline double f$pi() noexcept;

Expand Down Expand Up @@ -118,8 +118,8 @@ T f$min(const T &arg1) noexcept {
return arg1;
}

template<class T, class ...Args>
T f$min(const T &arg1, const T &arg2, Args&& ...args) noexcept {
template<class T, class... Args>
T f$min(const T &arg1, const T &arg2, Args &&...args) noexcept {
return f$min<T>(lt(arg1, arg2) ? arg1 : arg2, std::forward<Args>(args)...);
}

Expand All @@ -128,8 +128,8 @@ T f$max(const T &arg1) noexcept {
return arg1;
}

template<class T, class ...Args>
T f$max(const T &arg1, const T &arg2, Args&& ...args) noexcept {
template<class T, class... Args>
T f$max(const T &arg1, const T &arg2, Args &&...args) noexcept {
return f$max<T>(lt(arg2, arg1) ? arg1 : arg2, std::forward<Args>(args)...);
}

Expand Down

0 comments on commit fce4bdb

Please sign in to comment.