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 specify custom brace style to fix unions 2017-01-05 12:55:13 +01:00
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 Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
BusyLoopTest.cpp BusyLoopTest: Only run 10 times. 2016-06-27 22:06:52 +02:00
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 Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
FixedSizeQueueTest.cpp Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
FlagTest.cpp Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
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 IOS HLE: Add unit test for path/filename escaping 2016-11-27 22:11:05 +01:00
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 x64EmitterTest: fill cpu_info with 0x01 instead of 0xFF to make gcc happier 2016-06-27 01:55:42 +02:00