Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lafenghu
ffado
libffado-bswap.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libffado-bswap.patch of Package ffado
Index: libffado-2.0.1.2040/src/rme/rme_avdevice.cpp =================================================================== --- libffado-2.0.1.2040.orig/src/rme/rme_avdevice.cpp +++ libffado-2.0.1.2040/src/rme/rme_avdevice.cpp @@ -61,27 +61,21 @@ namespace Rme { // opposed to bus order, which is big endian). Therefore define our own // 32-bit byteswap function to do this. #if __BYTE_ORDER == __BIG_ENDIAN +#define RME_BYTESWAP32(x) ByteSwap32(x) +#else +#define RME_BYTESWAP32(x) (x) +#endif + static inline uint32_t ByteSwapToDevice32(uint32_t d) { - return byteswap_32(d); -} -ByteSwapFromDevice32(uint32_t d) -{ - return byteswap_32(d); -} -#else -static inline uint32_t -ByteSwapToDevice32(uint32_t d) -{ - return d; + return RME_BYTESWAP32(d); } static inline uint32_t ByteSwapFromDevice32(uint32_t d) { - return d; + return RME_BYTESWAP32(d); } -#endif Device::Device( DeviceManager& d, std::auto_ptr<ConfigRom>( configRom ))
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor