summaryrefslogtreecommitdiff
path: root/src/common/swap.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Port #3732 from Citra: "common: Fix compilation on ARM"Gravatar Cameron Cawley2018-07-291-1/+1
|
* common/swap: Remove unnecessary const on return value of swap()Gravatar Lioncash2018-07-191-1/+1
|
* common/swap: Use static_cast where applicableGravatar Lioncash2018-07-191-16/+16
|
* common/swap: Use using aliases where applicableGravatar Lioncash2018-07-191-33/+33
|
* Port #3579 from CitraGravatar fearlessTobi2018-07-071-1/+1
|
* common: fix swap functions on Bitrig and OpenBSDGravatar Daniel Lim Wee Soong2018-04-031-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 BSDsGravatar Jan Beich2016-10-271-2/+5
|
* Remove empty newlines in #include blocks.Gravatar 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-formatGravatar Yuri Kunde Schlesner2016-09-181-2/+1
|
* Sources: Run clang-format on everything.Gravatar Emmanuel Gil Peyrot2016-09-181-140/+191
|
* swap: Get rid of pointer casting for swapping structsGravatar Lioncash2016-05-081-5/+5
| | | | These shouldn't haphazardly convert types
* swap: Get rid of undefined behavior in swapf and swapdGravatar Lioncash2016-05-081-14/+18
| | | | This isn't well-defined in C++.
* swap: Remove unused methodsGravatar Lioncash2016-05-081-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.hGravatar Lioncash2015-09-111-2/+2
|
* Common: Cleanup memory and misc includes.Gravatar Emmanuel Gil Peyrot2015-06-281-3/+7
|
* Remove every trailing whitespace from the project (but externals).Gravatar Emmanuel Gil Peyrot2015-05-291-1/+1
|
* Removed swap code redundancy and moved common swap code to swap.hGravatar archshift2015-03-051-14/+97
|
* Common: Remove dead platform #ifdefs to make the code more readable.Gravatar 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 ClangGravatar Yuri Kunde Schlesner2014-10-261-1/+0
|
* fixes to build on linuxGravatar bunnei2014-04-221-13/+13
|
* got rid of 'src' folders in each sub-projectGravatar bunnei2014-04-081-0/+535