JitAsmCommon: Add missing sizes to constant arrays

This allows generic code to determine the size of these arrays.
This commit is contained in:
MerryMage 2017-03-19 12:30:41 +00:00
parent 5cc55f0fe3
commit b0d6c29073
2 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@
alignas(16) const u8 pbswapShuffle1x4[16] = {3, 2, 1, 0, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}; alignas(16) const u8 pbswapShuffle1x4[16] = {3, 2, 1, 0, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
alignas(16) const u8 pbswapShuffle2x4[16] = {3, 2, 1, 0, 7, 6, 5, 4, 8, 9, 10, 11, 12, 13, 14, 15}; alignas(16) const u8 pbswapShuffle2x4[16] = {3, 2, 1, 0, 7, 6, 5, 4, 8, 9, 10, 11, 12, 13, 14, 15};
alignas(16) const float m_quantizeTableS[] = { alignas(16) const float m_quantizeTableS[128] = {
(1ULL << 0), (1ULL << 0), (1ULL << 1), (1ULL << 1), (1ULL << 0), (1ULL << 0), (1ULL << 1), (1ULL << 1),
(1ULL << 2), (1ULL << 2), (1ULL << 3), (1ULL << 3), (1ULL << 2), (1ULL << 2), (1ULL << 3), (1ULL << 3),
(1ULL << 4), (1ULL << 4), (1ULL << 5), (1ULL << 5), (1ULL << 4), (1ULL << 4), (1ULL << 5), (1ULL << 5),
@ -42,7 +42,7 @@ alignas(16) const float m_quantizeTableS[] = {
1.0 / (1ULL << 2), 1.0 / (1ULL << 2), 1.0 / (1ULL << 1), 1.0 / (1ULL << 1), 1.0 / (1ULL << 2), 1.0 / (1ULL << 2), 1.0 / (1ULL << 1), 1.0 / (1ULL << 1),
}; };
alignas(16) const float m_dequantizeTableS[] = { alignas(16) const float m_dequantizeTableS[128] = {
1.0 / (1ULL << 0), 1.0 / (1ULL << 0), 1.0 / (1ULL << 1), 1.0 / (1ULL << 1), 1.0 / (1ULL << 0), 1.0 / (1ULL << 0), 1.0 / (1ULL << 1), 1.0 / (1ULL << 1),
1.0 / (1ULL << 2), 1.0 / (1ULL << 2), 1.0 / (1ULL << 3), 1.0 / (1ULL << 3), 1.0 / (1ULL << 2), 1.0 / (1ULL << 2), 1.0 / (1ULL << 3), 1.0 / (1ULL << 3),
1.0 / (1ULL << 4), 1.0 / (1ULL << 4), 1.0 / (1ULL << 5), 1.0 / (1ULL << 5), 1.0 / (1ULL << 4), 1.0 / (1ULL << 4), 1.0 / (1ULL << 5), 1.0 / (1ULL << 5),
@ -77,4 +77,4 @@ alignas(16) const float m_dequantizeTableS[] = {
(1ULL << 2), (1ULL << 2), (1ULL << 1), (1ULL << 1), (1ULL << 2), (1ULL << 2), (1ULL << 1), (1ULL << 1),
}; };
alignas(16) const float m_one[] = {1.0f, 0.0f, 0.0f, 0.0f}; alignas(16) const float m_one[4] = {1.0f, 0.0f, 0.0f, 0.0f};

View File

@ -8,9 +8,9 @@
alignas(16) extern const u8 pbswapShuffle1x4[16]; alignas(16) extern const u8 pbswapShuffle1x4[16];
alignas(16) extern const u8 pbswapShuffle2x4[16]; alignas(16) extern const u8 pbswapShuffle2x4[16];
alignas(16) extern const float m_one[]; alignas(16) extern const float m_one[4];
alignas(16) extern const float m_quantizeTableS[]; alignas(16) extern const float m_quantizeTableS[128];
alignas(16) extern const float m_dequantizeTableS[]; alignas(16) extern const float m_dequantizeTableS[128];
class CommonAsmRoutinesBase class CommonAsmRoutinesBase
{ {