summaryrefslogtreecommitdiff
path: root/compat/bswap.h
AgeCommit message (Expand)AuthorFilesLines
2025-07-15bswap.h: provide a built-in based version of bswap32/64 if possibleSebastian Andrzej Siewior1-0/+13
2025-07-15bswap.h: remove optimized x86 version of bswap32/64Sebastian Andrzej Siewior1-40/+1
2025-07-15bswap.h: always overwrite ntohl/ ntohll macrosSebastian Andrzej Siewior1-26/+24
2025-07-15bswap.h: define GIT_LITTLE_ENDIAN on msvc as little endianSebastian Andrzej Siewior1-1/+5
2025-07-15bswap.h: add support for __BYTE_ORDER__Sebastian Andrzej Siewior1-0/+6
2025-06-12Revert "bswap.h: add support for built-in bswap functions"Sebastian Andrzej Siewior1-13/+1
2025-04-23bswap.h: add support for built-in bswap functionsDennis Ameling1-1/+13
2025-01-21bswap.h: squelch potential sparse -Wcast-truncate warningsJunio C Hamano1-12/+12
2020-11-11compat/bswap.h: don't assume MSVC is little-endianDaniel Gurney1-1/+1
2020-11-09compat/bswap.h: simplify MSVC endianness detectionDaniel Gurney1-1/+1
2020-09-24bswap.h: drop unaligned loadsJeff King1-24/+0
2019-03-07compat/bswap: add include header guardsJeff King1-0/+5
2017-09-24bswap: add 64 bit endianness helper get_be64Ben Peart1-0/+22
2017-07-17bswap: convert get_be16, get_be32 and put_be32 to inline functionsRené Scharfe1-14/+24
2017-07-17bswap: convert to unsigned before shifting in get_be32René Scharfe1-4/+4
2016-01-04bswap: add NO_UNALIGNED_LOADS defineJeff King1-2/+3
2014-10-27compat/bswap.h: detect endianness from XL C compiler macrosDavid Michael1-0/+4
2014-05-30compat/bswap.h: fix endianness detectionBen Walton1-1/+1
2014-05-02compat/bswap.h: restore preference __BIG_ENDIAN over BIG_ENDIANJunio C Hamano1-7/+7
2014-05-02compat/bswap.h: detect endianness on more platforms that don't use BYTE_ORDERCharles Bailey1-9/+24
2014-01-23read-cache: use get_be32 instead of hand-rolled ntoh_lJeff King1-0/+4
2014-01-23block-sha1: factor out get_be and put_be wrappersJeff King1-0/+32
2013-11-18compat: add endianness helpersVicent Marti1-1/+75
2011-03-16compat: make gcc bswap an inline functionJonathan Nieder1-8/+10
2010-03-31Don't redefine htonl and ntohl on big-endianHolger Weiß1-0/+2
2009-11-25Explicitly truncate bswap operand to uint32_tBenjamin Kramer1-1/+1
2009-10-30Use faster byte swapping when compiling with MSVCSebastian Schuberth1-0/+10
2009-10-02Fix some printf format warningsRamsay Jones1-2/+2
2009-08-18make sure byte swapping is optimal for gitNicolas Pitre1-0/+36