mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 14:31:24 +12:00
Silence compiler noise on non-x86 architectures
This commit is contained in:
parent
56cc5d9355
commit
52c8b1ecbb
1 changed files with 15 additions and 1 deletions
|
@ -25,6 +25,14 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <cfenv>
|
#include <cfenv>
|
||||||
|
|
||||||
|
#if defined(__clang__)
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace asmjit
|
namespace asmjit
|
||||||
{
|
{
|
||||||
struct vec_builder;
|
struct vec_builder;
|
||||||
|
@ -541,7 +549,7 @@ namespace asmjit
|
||||||
}
|
}
|
||||||
#define FOR_X64(f, ...) do { using enum asmjit::x86::Inst::Id; return asmjit::f(__VA_ARGS__); } while (0)
|
#define FOR_X64(f, ...) do { using enum asmjit::x86::Inst::Id; return asmjit::f(__VA_ARGS__); } while (0)
|
||||||
#elif defined(ARCH_ARM64)
|
#elif defined(ARCH_ARM64)
|
||||||
#define FOR_X64(...) do {} while (0)
|
#define FOR_X64(...) do { fmt::throw_exception("Unimplemented for this architecture!"); } while (0)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3098,3 +3106,9 @@ inline auto gv_shuffle_right(A&& a)
|
||||||
{
|
{
|
||||||
FOR_X64(unary_op, kIdPsrldq, kIdVpsrldq, std::forward<A>(a), Count);
|
FOR_X64(unary_op, kIdPsrldq, kIdVpsrldq, std::forward<A>(a), Count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__clang__)
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue