Fix warning (ignored attributes)

This commit is contained in:
Nekotekina 2018-05-28 13:40:31 +03:00
parent bdf6545571
commit 55e9d437a9
2 changed files with 3 additions and 3 deletions

View file

@ -355,7 +355,7 @@ spu_imm_table_t::scale_table_t::scale_table_t()
{ {
for (s32 i = -155; i < 174; i++) for (s32 i = -155; i < 174; i++)
{ {
m_data[i + 155] = _mm_set1_ps(static_cast<float>(std::exp2(i))); m_data[i + 155].vf = _mm_set1_ps(static_cast<float>(std::exp2(i)));
} }
} }

View file

@ -388,14 +388,14 @@ struct spu_imm_table_t
class scale_table_t class scale_table_t
{ {
std::array<__m128, 155 + 174> m_data; std::array<v128, 155 + 174> m_data;
public: public:
scale_table_t(); scale_table_t();
FORCE_INLINE __m128 operator [] (s32 scale) const FORCE_INLINE __m128 operator [] (s32 scale) const
{ {
return m_data[scale + 155]; return m_data[scale + 155].vf;
} }
} }
const scale; const scale;