summaryrefslogtreecommitdiff
path: root/firmware/include/rbendian.h (follow)
Commit message (Collapse)AuthorAge
* Support using swapxx() and bswap_xx() for byteswaps in rbendian.hFranklin Wei2017-01-15
| | | | | | - patch suggested by Massa in http://forums.rockbox.org/index.php/topic,51618.msg238760.html#msg238760 Change-Id: Iba93ff53119db00a18d944d52bc8b1c5fe593fc9
* Fix up maemo port after byte swap header refactoringThomas Jarosch2014-12-17
| | | | | | | | | | Turns out maemo's old gcc 4.2.1 doesn't include any arch optimized swapXX() functions, just plain C implementations. Before we pull in lots of linux kernel headers for the C implementation, just stick to rockbox's own version. Change-Id: Ic28b41b52fe47f814c7f3897ce15334a42b6c5e2
* Patch up rbendian.h for Win32 cross-compileMichael Sevakis2014-08-26
| | | | | | MingW doesn't provide that stuff. Change-Id: Ifa8310ed00f4f79f06adb71db71e58b70e7d2b60
* Do a better endian.h setup that isn't as fragileMichael Sevakis2014-08-25
We redefine the top-level macros to our own in order to maintain compatibility with compound initializers by wrapping the mid or low level definitions from the OS header. This allows, hopefully optimized, macros from the host OS's headers to be used when building any hosted target obviating the need for NEED_GENERIC_BYTESWAPS unless the target simply doesn't define its own optimized versions (MIPS!). Throw in some 64-bit swaps for completeness' sake; they generate no code if not yet used anyway. Change-Id: I21b384b55fea46833d01ea3cad1ad8952ea01a11