* pack.c (swap64): don't redefine.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2010-02-24 16:01:00 +00:00
parent 4f41b82de2
commit d3d57663a3
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Thu Feb 25 00:57:59 2010 Tanaka Akira <akr@fsij.org>
* pack.c (swap64): don't redefine.
Thu Feb 25 00:29:55 2010 Tanaka Akira <akr@fsij.org>
* pack.c (pack_unpack): don't use OFF32 for gcc 4.5.

3
pack.c
View File

@ -100,8 +100,7 @@ TOKEN_PASTE(swap,x)(xtype z) \
|(((x)&0x0000FF0000000000L)>>24) \
|(((x)&0x00000000FF000000L)<<8) \
|(((x)&0x000000FF00000000L)>>8))
#endif
#if defined(HAVE_LONG_LONG) && SIZEOF_LONG_LONG == 8
#elif defined(HAVE_LONG_LONG) && SIZEOF_LONG_LONG == 8
#define swap64(x) ((((x)&0x00000000000000FFLL)<<56) \
|(((x)&0xFF00000000000000LL)>>56) \
|(((x)&0x000000000000FF00LL)<<40) \