common_func: Use std::array for INSERT_PADDING_* macros.

- Zero initialization here is useful for determinism.
This commit is contained in:
bunnei
2019-11-03 18:54:03 -05:00
parent ae6eb61892
commit 1bdae0fe29
14 changed files with 166 additions and 158 deletions

View File

@ -94,7 +94,7 @@ public:
union {
struct {
INSERT_PADDING_WORDS(0xC0);
INSERT_UNION_PADDING_WORDS(0xC0);
struct {
union {
@ -112,7 +112,7 @@ public:
};
} exec;
INSERT_PADDING_WORDS(0x3F);
INSERT_UNION_PADDING_WORDS(0x3F);
struct {
u32 address_high;
@ -139,7 +139,7 @@ public:
u32 x_count;
u32 y_count;
INSERT_PADDING_WORDS(0xB8);
INSERT_UNION_PADDING_WORDS(0xB8);
u32 const0;
u32 const1;
@ -162,11 +162,11 @@ public:
Parameters dst_params;
INSERT_PADDING_WORDS(1);
INSERT_UNION_PADDING_WORDS(1);
Parameters src_params;
INSERT_PADDING_WORDS(0x13);
INSERT_UNION_PADDING_WORDS(0x13);
};
std::array<u32, NUM_REGS> reg_array;
};