aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-05-24 13:15:31 +0200
committerStefan Boberg <[email protected]>2021-05-24 13:15:31 +0200
commit16fef01e27aa5da4e901fee8f84d878ae86c5720 (patch)
tree26b0a89a7260c4936f3659397c131a1aeda294d5
parentImplemented new URI addressing scheme for the Zen cache endpoints, and prepar... (diff)
downloadzen-16fef01e27aa5da4e901fee8f84d878ae86c5720.tar.xz
zen-16fef01e27aa5da4e901fee8f84d878ae86c5720.zip
Made Min/Max functions constexpr
-rw-r--r--zencore/include/zencore/intmath.h4
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;