summaryrefslogtreecommitdiff
path: root/Source/Core/Common/FloatUtils.cpp
AgeCommit message (Collapse)Author
2024-05-03Replace Common::BitCast with std::bit_castPokechu22
2023-10-21PowerPC: Negate m_dec values in frsqrte tableSintendo
This value is used in a multiplication. The result of this multiplication is then subtracted from m_base. By negating m_dec, we are free to use an addition instead. On x64, this saves an instruction.
2023-09-30PowerPC: Flip the order of frsqrte_expectedJosJuice
This makes the the frsqrte routines one instruction shorter.
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2018-05-10FloatUtils: Clean up memcpy usagesLioncash
Now that we have BitCast, we can use that instead.
2018-05-09FloatUtils: Remove union type punning from ClassifyX functionsLioncash
Type-punning via unions is undefined behavior in C++ Also take the liberty of cleaning these up a little bit by removing unnecessary else usages.
2018-05-09FloatUtils: Remove union type punning from ApproximateReciprocal functionsLioncash
This form of type punning invokes undefined behavior in C++
2018-05-09FloatUtils: Remove using namespace std in ApproximateReciprocal()Lioncash
This was made quite a long time ago when we supported 32-bit ARM targets
2018-05-07Common: Move floating-point utility functions to FloatUtils.h/.cppLioncash
Keeps all of the floating-point utility functions in their own file to keep them all together. This also provides a place for other general-purpose floating-point functions to be added in the future, which will be necessary when improving the flag-setting within the interpreter.