summaryrefslogtreecommitdiffstats
path: root/src/common/alignment.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-07 19:31:57 +0200
committerLioncash <mathew1800@gmail.com>2018-08-08 01:34:47 +0200
commita7d6efc5201960b351fee4760663388dd946ab8e (patch)
treeaea37b49caa9b3b71a98a1266d7786ac39079e2f /src/common/alignment.h
parentMerge pull request #971 from DarkLordZach/mbedtls-2.12.0 (diff)
downloadyuzu-a7d6efc5201960b351fee4760663388dd946ab8e.tar
yuzu-a7d6efc5201960b351fee4760663388dd946ab8e.tar.gz
yuzu-a7d6efc5201960b351fee4760663388dd946ab8e.tar.bz2
yuzu-a7d6efc5201960b351fee4760663388dd946ab8e.tar.lz
yuzu-a7d6efc5201960b351fee4760663388dd946ab8e.tar.xz
yuzu-a7d6efc5201960b351fee4760663388dd946ab8e.tar.zst
yuzu-a7d6efc5201960b351fee4760663388dd946ab8e.zip
Diffstat (limited to '')
-rw-r--r--src/common/alignment.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/alignment.h b/src/common/alignment.h
index b77da4a92..b9dd38746 100644
--- a/src/common/alignment.h
+++ b/src/common/alignment.h
@@ -9,13 +9,13 @@ namespace Common {
template <typename T>
constexpr T AlignUp(T value, size_t size) {
- static_assert(std::is_unsigned<T>::value, "T must be an unsigned value.");
+ static_assert(std::is_unsigned_v<T>, "T must be an unsigned value.");
return static_cast<T>(value + (size - value % size) % size);
}
template <typename T>
constexpr T AlignDown(T value, size_t size) {
- static_assert(std::is_unsigned<T>::value, "T must be an unsigned value.");
+ static_assert(std::is_unsigned_v<T>, "T must be an unsigned value.");
return static_cast<T>(value - value % size);
}