mirror of
https://github.com/libretro/bnes-libretro.git
synced 2025-02-17 07:47:41 +00:00
18 lines
300 B
C++
18 lines
300 B
C++
#ifndef NALL_ALGORITHM_HPP
|
|
#define NALL_ALGORITHM_HPP
|
|
|
|
#undef min
|
|
#undef max
|
|
|
|
namespace nall {
|
|
template<typename T, typename U> T min(const T &t, const U &u) {
|
|
return t < u ? t : u;
|
|
}
|
|
|
|
template<typename T, typename U> T max(const T &t, const U &u) {
|
|
return t > u ? t : u;
|
|
}
|
|
}
|
|
|
|
#endif
|