mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2025-12-26 09:14:54 +01:00
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 {
|
||||
|
||||
template<typename FPT>
|
||||
inline FPT FPNeg(FPT op) {
|
||||
constexpr FPT FPNeg(FPT op) {
|
||||
return op ^ FPInfo<FPT>::sign_mask;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue