Skip to content

Commit ac8df65

Browse files
committed
Add support for powerpc64le systems
This requires POWER ISA 3.0 or higher Older ISA variants lack current deployment and required features Big endian systems are NOT supported Signed-off-by: Timothy Pearson <tpearson@raptorcs.com>
1 parent c890131 commit ac8df65

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Inc/DirectXMath.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
#endif
8383

8484
#if !defined(_XM_ARM_NEON_INTRINSICS_) && !defined(_XM_SSE_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_)
85-
#if (defined(_M_IX86) || defined(_M_X64) || __i386__ || __x86_64__) && !defined(_M_HYBRID_X86_ARM64) && !defined(_M_ARM64EC)
85+
#if (defined(_M_IX86) || defined(_M_X64) || __i386__ || __x86_64__ || __powerpc64__) && !defined(_M_HYBRID_X86_ARM64) && !defined(_M_ARM64EC)
8686
#define _XM_SSE_INTRINSICS_
8787
#elif defined(_M_ARM) || defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __arm__ || __aarch64__
8888
#define _XM_ARM_NEON_INTRINSICS_
@@ -213,7 +213,7 @@
213213
#define XM_PERMUTE_PS( v, c ) _mm_shuffle_ps((v), (v), c )
214214
#endif
215215

216-
#if defined(__GNUC__) && !defined(__clang__) && (__GNUC__ < 11)
216+
#if (defined(__GNUC__) && !defined(__clang__) && (__GNUC__ < 11)) || defined(__powerpc64__)
217217
#define XM_LOADU_SI16( p ) _mm_cvtsi32_si128(*reinterpret_cast<unsigned short const*>(p))
218218
#else
219219
#define XM_LOADU_SI16( p ) _mm_loadu_si16(p)

Inc/DirectXMathMisc.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1971,7 +1971,7 @@ inline XMVECTOR XM_CALLCONV XMColorSRGBToRGB(FXMVECTOR srgb) noexcept
19711971

19721972
inline bool XMVerifyCPUSupport() noexcept
19731973
{
1974-
#if defined(_XM_SSE_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_)
1974+
#if defined(_XM_SSE_INTRINSICS_) && !defined(__powerpc64__) && !defined(_XM_NO_INTRINSICS_)
19751975
int CPUInfo[4] = { -1 };
19761976
#if (defined(__clang__) || defined(__GNUC__)) && defined(__cpuid)
19771977
__cpuid(0, CPUInfo[0], CPUInfo[1], CPUInfo[2], CPUInfo[3]);

0 commit comments

Comments
 (0)