dolphin/Source/UnitTests/Common
Lioncash b3292298c9
BitUtils: Add C++14/C++17 compatible equivalent of std::bit_cast from C++2a
Given bit conversions between types are quite common in emulation
(particularly when it comes to floating-point among other things) it
makes sense to provide a utility function that keeps all the boilerplate
contained; especially considering it makes it harder to accidentally
misuse std::memcpy (such as accidentally transposing arguments, etc).

Another benefit of this function is that it doesn't require separating
declarations from assignments, allowing variables to be declared const.
This makes the scenario of of uninitialized variables being used less
likely to occur.
2018-05-10 12:28:05 -04:00
..
BitFieldTest.cpp
BitSetTest.cpp UnitTests: use EXPECT_TRUE/EXPECT_FALSE (fixes warnings) 2017-03-24 17:26:27 -07:00
BitUtilsTest.cpp BitUtils: Add C++14/C++17 compatible equivalent of std::bit_cast from C++2a 2018-05-10 12:28:05 -04:00
BlockingLoopTest.cpp
BusyLoopTest.cpp
CMakeLists.txt Common: Move floating-point utility functions to FloatUtils.h/.cpp 2018-05-07 02:56:32 -04:00
CommonFuncsTest.cpp Common: Move byte swapping utilities into their own header 2017-03-03 17:18:18 -05:00
EventTest.cpp
FixedSizeQueueTest.cpp
FlagTest.cpp
FloatUtilsTest.cpp Common: Move floating-point utility functions to FloatUtils.h/.cpp 2018-05-07 02:56:32 -04:00
MathUtilTest.cpp Common: Move floating-point utility functions to FloatUtils.h/.cpp 2018-05-07 02:56:32 -04:00
NandPathsTest.cpp
SPSCQueueTest.cpp Rename Common::FifoQueue to Common::SPSCQueue 2017-08-23 17:00:52 -07:00
StringUtilTest.cpp StringUtil: Add StringPopBackIf UnitTests 2017-06-06 05:50:45 +01:00
SwapTest.cpp Common: Move byte swapping utilities into their own header 2017-03-03 17:18:18 -05:00
x64EmitterTest.cpp