0003-byteswap_h-parentheses.patch (552B)
1 --- include.orig/byteswap.h 2023-04-12 20:25:58.163903358 +0200 2 +++ include/byteswap.h 2023-04-12 20:34:47.369351733 +0200 3 @@ -11,12 +11,12 @@ 4 5 static __inline uint32_t __bswap_32(uint32_t __x) 6 { 7 - return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24; 8 + return (__x>>24) | ((__x>>8)&0xff00) | ((__x<<8)&0xff0000) | (__x<<24); 9 } 10 11 static __inline uint64_t __bswap_64(uint64_t __x) 12 { 13 - return __bswap_32(__x)+0ULL<<32 | __bswap_32(__x>>32); 14 + return ((__bswap_32(__x)+0ULL)<<32) | __bswap_32(__x>>32); 15 } 16 17 #define bswap_16(x) __bswap_16(x)