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:
parent
ef95e0fa7d
commit
6b9a40bdc4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue