summaryrefslogtreecommitdiff
path: root/compat/bswap.h
Commit message (Collapse)AuthorAgeFilesLines
* make sure byte swapping is optimal for gitNicolas Pitre2009-08-181-0/+36
We rely on ntohl() and htonl() to perform byte swapping in many places. However, some platforms have libraries providing really poor implementations of those which might cause significant performance issues, especially with the block-sha1 code. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>