summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorLC <mathew1800@gmail.com>2021-01-15 22:19:46 +0100
committerGitHub <noreply@github.com>2021-01-15 22:19:46 +0100
commit8be9e5b48b5d8ef1c52fab16668dd479ac799f00 (patch)
treed38b189961f155c6568344ceb631aa82f35c923d /src/common
parentMerge pull request #5355 from lioncash/timer (diff)
parentcommon/common_funcs: Rename INSERT_UNION_PADDING_{BYTES,WORDS} to _NOINIT (diff)
downloadyuzu-8be9e5b48b5d8ef1c52fab16668dd479ac799f00.tar
yuzu-8be9e5b48b5d8ef1c52fab16668dd479ac799f00.tar.gz
yuzu-8be9e5b48b5d8ef1c52fab16668dd479ac799f00.tar.bz2
yuzu-8be9e5b48b5d8ef1c52fab16668dd479ac799f00.tar.lz
yuzu-8be9e5b48b5d8ef1c52fab16668dd479ac799f00.tar.xz
yuzu-8be9e5b48b5d8ef1c52fab16668dd479ac799f00.tar.zst
yuzu-8be9e5b48b5d8ef1c52fab16668dd479ac799f00.zip
Diffstat (limited to '')
-rw-r--r--src/common/common_funcs.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h
index c90978f9c..75f3027fb 100644
--- a/src/common/common_funcs.h
+++ b/src/common/common_funcs.h
@@ -24,10 +24,10 @@
#define INSERT_PADDING_WORDS(num_words) \
std::array<u32, num_words> CONCAT2(pad, __LINE__) {}
-/// These are similar to the INSERT_PADDING_* macros, but are needed for padding unions. This is
-/// because unions can only be initialized by one member.
-#define INSERT_UNION_PADDING_BYTES(num_bytes) std::array<u8, num_bytes> CONCAT2(pad, __LINE__)
-#define INSERT_UNION_PADDING_WORDS(num_words) std::array<u32, num_words> CONCAT2(pad, __LINE__)
+/// These are similar to the INSERT_PADDING_* macros but do not zero-initialize the contents.
+/// This keeps the structure trivial to construct.
+#define INSERT_PADDING_BYTES_NOINIT(num_bytes) std::array<u8, num_bytes> CONCAT2(pad, __LINE__)
+#define INSERT_PADDING_WORDS_NOINIT(num_words) std::array<u32, num_words> CONCAT2(pad, __LINE__)
#ifndef _MSC_VER