Recompiler: write ppc_context.h

This commit is contained in:
Sajid
2024-09-30 13:39:47 +06:00
parent 9d74b4ecb4
commit c4de70262f
7 changed files with 111 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
#pragma once
#ifndef PPC_CONTEXT_H_INCLUDED
#define PPC_CONTEXT_H_INCLUDED
#ifndef PPC_CONFIG_H_INCLUDED
#error "ppc_config.h must be included before ppc_context.h"
@@ -579,3 +580,5 @@ inline __m128i _mm_vsr(__m128i a, __m128i b)
b = _mm_srli_epi64(_mm_slli_epi64(b, 61), 61);
return _mm_castps_si128(_mm_insert_ps(_mm_castsi128_ps(_mm_srl_epi64(a, b)), _mm_castsi128_ps(_mm_srl_epi64(_mm_srli_si128(a, 4), b)), 0x10));
}
#endif