mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-13 16:46:08 +00:00
More main progress; tons of headers & stuff
Former-commit-id: a6e365791b
This commit is contained in:
17
include/rstl/math.hpp
Normal file
17
include/rstl/math.hpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef _RSTL_MATH_HPP
|
||||
#define _RSTL_MATH_HPP
|
||||
|
||||
#include "types.h"
|
||||
|
||||
namespace rstl {
|
||||
template < typename T >
|
||||
static inline const T& max_val(const T& a, const T& b) {
|
||||
return a > b ? a : b;
|
||||
}
|
||||
template < typename T >
|
||||
static inline const T& min_val(const T& a, const T& b) {
|
||||
return a < b ? a : b;
|
||||
}
|
||||
} // namespace rstl
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user