Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
5a7cbebc
Unverified
Commit
5a7cbebc
authored
Aug 19, 2020
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove `MRB_NO_FLOAT_INLINE` and `MRB_WBOX_FLOAT_INLINE` configuration.
They are not used from the beginning.
parent
04fd7af2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
12 deletions
+1
-12
include/mrbconf.h
include/mrbconf.h
+0
-10
include/mruby/boxing_word.h
include/mruby/boxing_word.h
+1
-2
No files found.
include/mrbconf.h
View file @
5a7cbebc
...
@@ -45,13 +45,6 @@
...
@@ -45,13 +45,6 @@
#error Cannot define MRB_USE_FLOAT32 and MRB_NO_FLOAT at the same time
#error Cannot define MRB_USE_FLOAT32 and MRB_NO_FLOAT at the same time
#endif
#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 */
/* add -DMRB_NO_METHOD_CACHE to disable method cache to save memory */
//#define MRB_NO_METHOD_CACHE
//#define MRB_NO_METHOD_CACHE
/* size of the method cache (need to be the power of 2) */
/* size of the method cache (need to be the power of 2) */
...
@@ -81,9 +74,6 @@
...
@@ -81,9 +74,6 @@
/* represent mrb_value as a word (natural unit of data for the processor) */
/* represent mrb_value as a word (natural unit of data for the processor) */
//#define MRB_WORD_BOXING
//#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 */
/* represent mrb_value as a struct; occupies 2 words */
//#define MRB_NO_BOXING
//#define MRB_NO_BOXING
...
...
include/mruby/boxing_word.h
View file @
5a7cbebc
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#error MRB_INT64 cannot be used with MRB_WORD_BOXING in 32-bit mode.
#error MRB_INT64 cannot be used with MRB_WORD_BOXING in 32-bit mode.
#endif
#endif
#if
!defined(MRB_NO_FLOAT) || defined(MRB_NO_FLOAT_INLINE)
#if
ndef MRB_NO_FLOAT
struct
RFloat
{
struct
RFloat
{
MRB_OBJECT_HEADER
;
MRB_OBJECT_HEADER
;
mrb_float
f
;
mrb_float
f
;
...
@@ -64,7 +64,6 @@ enum mrb_special_consts {
...
@@ -64,7 +64,6 @@ enum mrb_special_consts {
* undef : ...0001 0100
* undef : ...0001 0100
* fixnum: ...IIII III1
* 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)
* symbol: ...SSSS SS10 (use only upper 32-bit as symbol value on 64-bit CPU)
* object: ...PPPP P000 (any bits are 1)
* object: ...PPPP P000 (any bits are 1)
*/
*/
typedef
uintptr_t
mrb_value
;
typedef
uintptr_t
mrb_value
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment