mirror of
https://github.com/libretro/bsnes-libretro.git
synced 2024-11-23 08:59:40 +00:00
18 lines
300 B
C++
Executable File
18 lines
300 B
C++
Executable File
#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
|