mirror of https://github.com/xiph/flac
include/share/endswap.h : Fix default ENDSWAP_16.
Patch-from: lvqcl <lvqcl.mail@gmail.com>
This commit is contained in:
parent
4a63f10f78
commit
b08c520d33
|
@ -58,7 +58,7 @@ static inline unsigned short __builtin_bswap16(unsigned short a)
|
|||
|
||||
#else
|
||||
|
||||
#define ENDSWAP_16(x) (((((x) >> 8) & 0xFF) + ((x) & 0xFF) << 8))
|
||||
#define ENDSWAP_16(x) ((((x) >> 8) & 0xFF) + (((x) & 0xFF) << 8))
|
||||
#define ENDSWAP_32(x) ((((x) >> 24) & 0xFF) + (((x) >> 8) & 0xFF00) + (((x) & 0xFF00) << 8) + (((x) & 0xFF) << 24))
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue