Skip to content

Commit

Permalink
Improve OFFSET handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpd002 committed Jul 17, 2024
1 parent 11e3798 commit 5ed55dc
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Source/ee/Vif.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
#include "../Profiler.h"
#include "zip/ZipArchiveWriter.h"
#include "zip/ZipArchiveReader.h"
#include "SimdDefs.h"

#ifdef FRAMEWORK_SIMD_USE_SSE
#include <emmintrin.h>
#endif

class CINTC;

Expand Down Expand Up @@ -584,6 +589,12 @@ class CVif
{
(*dst) = writeValue;
}
#ifdef FRAMEWORK_SIMD_USE_SSE
else if((colMask == 0) && (mode == MODE_OFFSET))
{
*reinterpret_cast<__m128i*>(dst) = _mm_add_epi32(*reinterpret_cast<__m128i*>(&writeValue), *reinterpret_cast<__m128i*>(&m_R));
}
#endif
else
{
for(unsigned int i = 0; i < 4; i++)
Expand Down Expand Up @@ -699,7 +710,7 @@ class CVif
CODE m_CODE;
uint8 m_NUM;
uint32 m_MODE;
uint32 m_R[4];
alignas(16) uint32 m_R[4];
uint32 m_C[4];
uint32 m_MASK;
uint32 m_MARK;
Expand Down

0 comments on commit 5ed55dc

Please sign in to comment.