You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bswap.h: Move the overwriting of the ntohl*/ htonl* macros.
The top of that file contains optimized bswap32/64 only for a few little
endian machines. Since the commit cited below there is one for every
architecture supporting the __builtin_bswap* directives.
Later in the file, the ntohl* macros are replaced with the bswap* macros
should they be provided. Since they are now provided even on big endian
machines they replace the nop with a swap.
Move the ntohl*/ htonl* replacement once it is determined that it is a
little architecture where the swap is performed.
Fixes: 6547d1c ("bswap.h: add support for built-in bswap functions")
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
0 commit comments