Remove MRB_NO_FLOAT_INLINE and MRB_WBOX_FLOAT_INLINE configuration.

They are not used from the beginning.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2020-08-19 07:53:48 +09:00
parent 04fd7af23c
commit 5a7cbebc8a
2 changed files with 1 additions and 12 deletions
-10
View File
@@ -45,13 +45,6 @@
#error Cannot define MRB_USE_FLOAT32 and MRB_NO_FLOAT at the same time
#endif
/* stop inlining floating point numbers in mrb_value (effective only with MRB_WORD_BOXING)*/
/* floating numbers are rounded to fit in 30 bits (float) and 62 bits respectively, */
/* by inlining. If you need full precision of floating numbers on the platform, */
/* you have to define this option. when mrb_int is 32bit and mrb_float is double, */
/* this option is set automatically. */
// #define MRB_NO_FLOAT_INLINE
/* add -DMRB_NO_METHOD_CACHE to disable method cache to save memory */
//#define MRB_NO_METHOD_CACHE
/* size of the method cache (need to be the power of 2) */
@@ -81,9 +74,6 @@
/* represent mrb_value as a word (natural unit of data for the processor) */
//#define MRB_WORD_BOXING
/* with MRB_WORD_BOXING, embed float values in mrb_value (dropping 2 bit precision) */
//#define MRB_WBOX_FLOAT_INLINE
/* represent mrb_value as a struct; occupies 2 words */
//#define MRB_NO_BOXING
+1 -2
View File
@@ -11,7 +11,7 @@
#error MRB_INT64 cannot be used with MRB_WORD_BOXING in 32-bit mode.
#endif
#if !defined(MRB_NO_FLOAT) || defined(MRB_NO_FLOAT_INLINE)
#ifndef MRB_NO_FLOAT
struct RFloat {
MRB_OBJECT_HEADER;
mrb_float f;
@@ -64,7 +64,6 @@ enum mrb_special_consts {
* undef : ...0001 0100
* fixnum: ...IIII III1
* symbol: ...SSSS SS10 (use only upper 32-bit as symbol value on 64-bit CPU)
* symbol: ...SSSS SS10 (use only upper 32-bit as symbol value on 64-bit CPU)
* object: ...PPPP P000 (any bits are 1)
*/
typedef uintptr_t mrb_value;