summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-11 12:24:11 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-11 12:24:11 +0000
commit49771dd308505856126c84285a7acbdaf3400aa0 (patch)
tree7ab6e6a1f7c85e1d36e797eedfbd26e70092f317
parentc1268be411e817830099a91017480d2f2f0644dd (diff)
* pack.c (swaps): Unused macro removed.
(swapi): Ditto. (swapl): Ditto. (swapll): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog7
-rw-r--r--pack.c32
2 files changed, 7 insertions, 32 deletions
diff --git a/ChangeLog b/ChangeLog
index e271d8671c..1bada3b074 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Sun May 11 21:23:27 2014 Tanaka Akira <akr@fsij.org>
+
+ * pack.c (swaps): Unused macro removed.
+ (swapi): Ditto.
+ (swapl): Ditto.
+ (swapll): Ditto.
+
Sun May 11 08:02:49 2014 Eric Wong <e@80x24.org>
* vm_core.h (rb_vm_t): list_head and counter for living_threads
diff --git a/pack.c b/pack.c
index 82ef4f1c71..aae9ceebfb 100644
--- a/pack.c
+++ b/pack.c
@@ -100,38 +100,6 @@ TOKEN_PASTE(swap,x)(xtype z) \
return r; \
}
-#if SIZEOF_SHORT == 2
-# define swaps(x) swap16(x)
-#elif SIZEOF_SHORT == 4
-# define swaps(x) swap32(x)
-#else
- define_swapx(s,short)
-#endif
-
-#if SIZEOF_INT == 2
-# define swapi(x) swap16(x)
-#elif SIZEOF_INT == 4
-# define swapi(x) swap32(x)
-#else
- define_swapx(i,int)
-#endif
-
-#if SIZEOF_LONG == 4
-# define swapl(x) swap32(x)
-#elif SIZEOF_LONG == 8
-# define swapl(x) swap64(x)
-#else
- define_swapx(l,long)
-#endif
-
-#ifdef HAVE_LONG_LONG
-# if SIZEOF_LONG_LONG == 8
-# define swapll(x) swap64(x)
-# else
- define_swapx(ll,LONG_LONG)
-# endif
-#endif
-
#if SIZEOF_FLOAT == 4 && defined(HAVE_INT32_T)
# define swapf(x) swap32(x)
# define FLOAT_SWAPPER uint32_t