1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-05 01:24:14 +01:00

[util] Implement bcmpeq for non-x86 platforms

This commit is contained in:
Joshua Ashton 2022-09-13 18:44:50 +01:00 committed by Joshie
parent c3093b546e
commit 2d8e14fcf4

View File

@ -177,7 +177,7 @@ namespace dxvk::bit {
template<typename T>
bool bcmpeq(const T* a, const T* b) {
static_assert(alignof(T) >= 16);
#if defined(__GNUC__) || defined(__clang__) || defined(_MSC_VER)
#if defined(DXVK_ARCH_X86) && (defined(__GNUC__) || defined(__clang__) || defined(_MSC_VER))
auto ai = reinterpret_cast<const __m128i*>(a);
auto bi = reinterpret_cast<const __m128i*>(b);