mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-07-31 22:40:31 +02:00
First version split into asnes and bsnes.
This commit is contained in:
17
nall/algorithm.hpp
Executable file
17
nall/algorithm.hpp
Executable file
@@ -0,0 +1,17 @@
|
||||
#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
|
Reference in New Issue
Block a user