diff options
| author | Stefan Boberg <[email protected]> | 2021-05-24 13:15:31 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-05-24 13:15:31 +0200 |
| commit | 16fef01e27aa5da4e901fee8f84d878ae86c5720 (patch) | |
| tree | 26b0a89a7260c4936f3659397c131a1aeda294d5 | |
| parent | Implemented new URI addressing scheme for the Zen cache endpoints, and prepar... (diff) | |
| download | zen-16fef01e27aa5da4e901fee8f84d878ae86c5720.tar.xz zen-16fef01e27aa5da4e901fee8f84d878ae86c5720.zip | |
Made Min/Max functions constexpr
| -rw-r--r-- | zencore/include/zencore/intmath.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zencore/include/zencore/intmath.h b/zencore/include/zencore/intmath.h index 9d39b8226..792b8b2b4 100644 --- a/zencore/include/zencore/intmath.h +++ b/zencore/include/zencore/intmath.h @@ -125,13 +125,13 @@ IsPointerAligned(const void* Ptr, uint64_t Alignment) # error "Looks like you did #include <windows.h> -- use <zencore/windows.h> instead" #endif -auto +constexpr auto Min(auto x, auto y) { return x < y ? x : y; } -auto +constexpr auto Max(auto x, auto y) { return x > y ? x : y; |