summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorMarkus Wick <markus@selfnet.de>2015-09-12 09:39:38 +0200
committerMarkus Wick <markus@selfnet.de>2015-09-12 09:39:38 +0200
commit35ecc2701d7163eba632adca8eb5e1e752fe43c3 (patch)
treefb46d2c6480f26000b37b827fbd41dede5c7b448 /Source/Core/VideoCommon
parentf121d7a8cd91aa93c15c75a9c35b8a374fe09d72 (diff)
parentbaa9eacd51186010809c21584c617599492d59f7 (diff)
Merge pull request #3027 from lioncash/constexpr
LookUpTables: Make functions constexpr
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/LookUpTables.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/LookUpTables.h b/Source/Core/VideoCommon/LookUpTables.h
index d821597c8f..4bda199be5 100644
--- a/Source/Core/VideoCommon/LookUpTables.h
+++ b/Source/Core/VideoCommon/LookUpTables.h
@@ -6,25 +6,25 @@
#include "Common/CommonTypes.h"
-inline u8 Convert3To8(u8 v)
+constexpr u8 Convert3To8(u8 v)
{
// Swizzle bits: 00000123 -> 12312312
return (v << 5) | (v << 2) | (v >> 1);
}
-inline u8 Convert4To8(u8 v)
+constexpr u8 Convert4To8(u8 v)
{
// Swizzle bits: 00001234 -> 12341234
return (v << 4) | v;
}
-inline u8 Convert5To8(u8 v)
+constexpr u8 Convert5To8(u8 v)
{
// Swizzle bits: 00012345 -> 12345123
return (v << 3) | (v >> 2);
}
-inline u8 Convert6To8(u8 v)
+constexpr u8 Convert6To8(u8 v)
{
// Swizzle bits: 00123456 -> 12345612
return (v << 2) | (v >> 4);