summaryrefslogtreecommitdiff
path: root/src/common/swap.h
AgeCommit message (Collapse)Author
2018-07-29Port #3732 from Citra: "common: Fix compilation on ARM"Cameron Cawley
2018-07-19common/swap: Remove unnecessary const on return value of swap()Lioncash
2018-07-19common/swap: Use static_cast where applicableLioncash
2018-07-19common/swap: Use using aliases where applicableLioncash
2018-07-07Port #3579 from CitrafearlessTobi
2018-04-03common: fix swap functions on Bitrig and OpenBSDDaniel Lim Wee Soong
swap{16,32,64} are defined as macros on the two, but client code tries to invoke them as Common::swap{16,32,64}, which naturally doesn't work. This hack redefines the macros as inline functions in the Common namespace: the bodies of the functions are the same as the original macros, but relying on OS-specific implementation details like this is of course brittle.
2016-10-27common: use system bswap* functions on more BSDsJan Beich
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-18Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot
2016-05-08swap: Get rid of pointer casting for swapping structsLioncash
These shouldn't haphazardly convert types
2016-05-08swap: Get rid of undefined behavior in swapf and swapdLioncash
This isn't well-defined in C++.
2016-05-08swap: Remove unused methodsLioncash
Also gets rid of pointer data variants as this prevents the use of the regular swapping routines as unary predicates in std lib functions. They also cast to stricter alignment types, which is undefined behavior.
2015-09-11common: Get rid of a cast in swap.hLioncash
2015-06-28Common: Cleanup memory and misc includes.Emmanuel Gil Peyrot
2015-05-29Remove every trailing whitespace from the project (but externals).Emmanuel Gil Peyrot
2015-03-05Removed swap code redundancy and moved common swap code to swap.harchshift
2015-01-06Common: Remove dead platform #ifdefs to make the code more readable.Emmanuel Gil Peyrot
Symbian, Xbox, Blackberry and iOS got removed. FreeBSD and Android kept due to them potentially being able to run Citra in the future. The iOS specific part also got removed from PPSSPP in order to fix a bug there.
2014-10-26Fix compile errors in ClangYuri Kunde Schlesner
2014-04-22fixes to build on linuxbunnei
2014-04-08got rid of 'src' folders in each sub-projectbunnei