summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-01-12 14:25:51 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-01-12 14:51:33 +0900
commite1c9e7efab7cd49a6d0033c566e97a118c42b863 (patch)
treeb94b176d033cf37f35ae89ef4e416471e8ff2e8a /include
parent974e245ae0cb4a0c3eda14a9617090173b326e8a (diff)
downloadmruby-e1c9e7efab7cd49a6d0033c566e97a118c42b863.tar.gz
mruby-e1c9e7efab7cd49a6d0033c566e97a118c42b863.zip
Changed packing format of inline symbols.
To make inline symbols packed in 30 bits.
Diffstat (limited to 'include')
-rw-r--r--include/mruby/presym/enable.h6
-rw-r--r--include/mruby/value.h2
2 files changed, 1 insertions, 7 deletions
diff --git a/include/mruby/presym/enable.h b/include/mruby/presym/enable.h
index 0aec7274d..ddeb17e32 100644
--- a/include/mruby/presym/enable.h
+++ b/include/mruby/presym/enable.h
@@ -8,11 +8,7 @@
#define MRUBY_PRESYM_ENABLE_H
#undef MRB_PRESYM_MAX
-#ifdef MRB_USE_ALL_SYMBOLS
-# define MRB_PRESYM_NAMED(lit, num, type, name) MRB_##type##__##name = (num),
-#else
-# define MRB_PRESYM_NAMED(lit, num, type, name) MRB_##type##__##name = (num<<1),
-#endif
+#define MRB_PRESYM_NAMED(lit, num, type, name) MRB_##type##__##name = (num),
#define MRB_PRESYM_UNNAMED(lit, num)
enum mruby_presym {
diff --git a/include/mruby/value.h b/include/mruby/value.h
index 2b1fbd7a6..293ef90a7 100644
--- a/include/mruby/value.h
+++ b/include/mruby/value.h
@@ -168,8 +168,6 @@ struct RCptr {
#include "boxing_no.h"
#endif
-#define MRB_SYMBOL_BIT (sizeof(mrb_sym) * CHAR_BIT - MRB_SYMBOL_SHIFT)
-
#if INTPTR_MAX < MRB_INT_MAX
typedef intptr_t mrb_ssize;
# define MRB_SSIZE_MAX INTPTR_MAX