common/fp/op/FPNeg: Make FPNeg constexpr

Negation in (standard IEEE) floating-point is simply flipping the sign-bit, so this
operation will never be more complex than what is presented here, making
constexpr a reasonable allowance.
This commit is contained in:
Lioncash 2019-05-04 21:07:48 -04:00 committed by MerryMage
parent ef95e0fa7d
commit 6b9a40bdc4

View file

@ -11,7 +11,7 @@
namespace Dynarmic::FP { namespace Dynarmic::FP {
template<typename FPT> template<typename FPT>
inline FPT FPNeg(FPT op) { constexpr FPT FPNeg(FPT op) {
return op ^ FPInfo<FPT>::sign_mask; return op ^ FPInfo<FPT>::sign_mask;
} }