summaryrefslogtreecommitdiffstats
path: root/src/common/swap.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* common: fix swap functions on Bitrig and OpenBSDDaniel Lim Wee Soong2018-04-021-1/+13
| | | | | | | | | 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.
* common: use system bswap* functions on more BSDsJan Beich2016-10-281-2/+5
|
* Remove empty newlines in #include blocks.Emmanuel Gil Peyrot2016-09-211-2/+0
| | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
* Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner2016-09-191-2/+1
|
* Sources: Run clang-format on everything.Emmanuel Gil Peyrot2016-09-181-140/+191
|
* swap: Get rid of pointer casting for swapping structsLioncash2016-05-091-5/+5
| | | | These shouldn't haphazardly convert types
* swap: Get rid of undefined behavior in swapf and swapdLioncash2016-05-091-14/+18
| | | | This isn't well-defined in C++.
* swap: Remove unused methodsLioncash2016-05-091-28/+0
| | | | | | | 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.
* common: Get rid of a cast in swap.hLioncash2015-09-111-2/+2
|
* Common: Cleanup memory and misc includes.Emmanuel Gil Peyrot2015-06-281-3/+7
|
* Remove every trailing whitespace from the project (but externals).Emmanuel Gil Peyrot2015-05-291-1/+1
|
* Removed swap code redundancy and moved common swap code to swap.harchshift2015-03-061-14/+97
|
* Common: Remove dead platform #ifdefs to make the code more readable.Emmanuel Gil Peyrot2015-01-061-4/+0
| | | | | | 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.
* Fix compile errors in ClangYuri Kunde Schlesner2014-10-261-1/+0
|
* fixes to build on linuxbunnei2014-04-231-13/+13
|
* got rid of 'src' folders in each sub-projectbunnei2014-04-091-0/+535