Re: [PATCH 1/5] compat/bswap.h: Fix build on cygwin, MinGW and msvc

2013-11-08 Thread Jeff King
On Fri, Nov 08, 2013 at 01:45:50AM +0100, SZEDER Gábor wrote: > Hi, > > On Thu, Nov 07, 2013 at 09:59:38PM +, Ramsay Jones wrote: > > +static inline uint64_t default_bswap64(uint64_t val) > > +{ > > + return (((val & (uint64_t)0x00ffULL) << 56) | > > + ((val & (uint64_

Re: [PATCH 1/5] compat/bswap.h: Fix build on cygwin, MinGW and msvc

2013-11-07 Thread SZEDER Gábor
Hi, On Thu, Nov 07, 2013 at 09:59:38PM +, Ramsay Jones wrote: > +static inline uint64_t default_bswap64(uint64_t val) > +{ > + return (((val & (uint64_t)0x00ffULL) << 56) | > + ((val & (uint64_t)0xff00ULL) << 40) | > + ((val & (uint64_t)0x000

[PATCH 1/5] compat/bswap.h: Fix build on cygwin, MinGW and msvc

2013-11-07 Thread Ramsay Jones
Signed-off-by: Ramsay Jones --- compat/bswap.h | 97 -- 1 file changed, 68 insertions(+), 29 deletions(-) diff --git a/compat/bswap.h b/compat/bswap.h index ea1a9ed..c18a78e 100644 --- a/compat/bswap.h +++ b/compat/bswap.h @@ -17,7 +17,20