cremno
1838099e00
more mrb_flo_to_str fixes
...
- remove float check (take mrb_float instead of mrb_value)
- support -0.0
- fix range error if log10 is called when n == 0.0
- MSVC older than 2013: add signbit macro (for double)
2014-02-17 12:37:39 +01:00
Yukihiro "Matz" Matsumoto
dc27c2be46
Merge pull request #1634 from cremno/use-mrb_fixnum_p
...
tiny word boxing optimization
2014-01-02 15:46:00 -08:00
cremno
09bb30870b
tiny word boxing optimization
2014-01-02 06:36:29 +01:00
cremno
16c5cf92b0
NaN boxing: use uintptr_t for bit manipulations
2014-01-02 06:19:20 +01:00
Yukihiro "Matz" Matsumoto
9ac386923d
float objects in pool are objects when MRB_WORD_BOXING is set
2013-11-27 17:29:28 +09:00
kyab
1a6244d99d
Fix build error for MRB_WORD_BOXING
2013-11-26 20:28:24 +09:00
Yukihiro "Matz" Matsumoto
3995e7ff8f
rename voidp to cptr
2013-09-21 17:28:47 +09:00
Yukihiro "Matz" Matsumoto
578589141f
use CHAR_BIT instead of bare 8
2013-08-12 09:52:16 +09:00
Yukihiro "Matz" Matsumoto
3a27e9189a
move (void) cast after declarations
2013-08-12 09:37:21 +09:00
Jonas Kulla
9b01bf6035
Silence 'unused parameter' warnings
2013-08-10 09:29:42 +02:00
Yukihiro "Matz" Matsumoto
1f5c91d68d
use intptr_t instead of int64_t for 32bit platforms
2013-08-07 23:02:08 +09:00
Yukihiro "Matz" Matsumoto
40e6cdcb5c
rename mrb_value_p() to mrb_ptr() since _p means predicate in mruby source
2013-08-07 17:39:28 +09:00
Yuichi Nishiwaki
7389ae4b7d
fix bugs in comment
2013-08-04 04:28:51 -07:00
Yuichi Nishiwaki
dd2ea59d61
add commentary to value representation
2013-08-04 01:08:11 -07:00
Yuichi Nishiwaki
94a6d8380f
bugfix: the bit mask was smaller than the size it should be
2013-08-04 01:07:30 -07:00
Yuichi Nishiwaki
8854ecb629
revert one of the API changes: MRB_SET_VALUE_P no longer used
2013-08-04 00:40:41 -07:00
Yuichi Nishiwaki
07fefb585e
cosmetic changes
2013-08-04 00:18:03 -07:00
Yuichi Nishiwaki
831e16cdf5
implement 64bit nan-boxing
2013-08-04 00:12:22 -07:00
Yuichi Nishiwaki
8dc2fa3bc8
add read barrier to value.p
...
API changes:
- value.p must be accessed via mrb_value_p macro
- value.p must be mutated via MRB_SET_VALUE_P macro
2013-08-03 14:03:44 -07:00
Cremno
bc91bcefcf
include inttypes.h if _MSC_VER is not defined
2013-06-27 12:30:25 +02:00
Cremno
8728837478
Visual Studio 2013 support + strtof + inline
...
- VC12 has better C99 library support due to C++11
- defined strtof for VC11 or older
- define "inline" only if the C compiler is used
2013-06-27 12:18:35 +02:00
Yukihiro "Matz" Matsumoto
4e877bc92f
restructure header files; move non config lines away from mrbconf.h
2013-06-10 14:40:32 +09:00
Yukihiro "Matz" Matsumoto
b172be47fa
small refactoring over word boxing
2013-05-29 00:05:57 +09:00
kimu_shu
e720782f81
Add MRB_WORD_BOXING mode (represent mrb_value as a word)
2013-05-26 10:09:17 +09:00
Yukihiro "Matz" Matsumoto
5c0b9b703c
primary mruby fiber implementation
2013-05-20 17:54:07 +09:00
Yukihiro "Matz" Matsumoto
ee14d37da4
use uint8_t for mrb_bool instead of unsigned int; close #1222
2013-04-29 11:46:16 +09:00
Yukihiro "Matz" Matsumoto
8890a992a6
always use unsigned int as mrb_bool even in C++
2013-04-29 09:23:43 +09:00
Yukihiro "Matz" Matsumoto
f475da9bf9
Merge pull request #871 from monaka/pr-remove-bit-field-in-mrb_value
...
Remove the bit-field by mrb_value.tt
2013-03-30 07:23:24 -07:00
Yukihiro Matz Matsumoto
b1bd62e047
remove all MRB_TT_MAIN from source
2013-03-26 21:25:00 +09:00
Cremno
c09c098bc5
fixed NaN boxing compilation
...
Use MRB_SET_VALUE instead of directly accessing members of mrb_value
which are different if NaN boxing is enabled.
2013-03-23 16:55:56 +01:00
Yukihiro Matz Matsumoto
7602574536
add new macro mrb_bool as a counterpart of mrb_bool_value
2013-03-19 12:06:53 +09:00
Yukihiro Matz Matsumoto
d0d920e909
rename mrb_true_or_false_value() to mrb_bool_value()
2013-03-19 12:03:54 +09:00
Masaki Muranaka
4f9503acd7
Add new API mrb_true_or_false_value().
2013-03-19 11:03:08 +09:00
crimsonwoods
3678d2545c
fix the type of bit field variable.
...
if 'int' type is 16bit integer, 'unsigned int flags: 21' is too large.
2013-03-18 00:16:13 +09:00
Yukihiro Matz Matsumoto
88483fad00
rename mrb_basic to mrb_basic_ptr; close #1011
2013-03-15 23:21:13 +09:00
Yukihiro Matz Matsumoto
243669308d
obsolete mrb_object; opposite of bc870ce
2013-03-15 23:16:20 +09:00
Masaki Muranaka
4ac352df21
Remove bit-field.
2013-03-03 20:27:57 +09:00
mattn
138ecf4723
Pluggable Struct
2013-03-01 13:37:46 +09:00
Yukihiro Matz Matsumoto
59a6d1b514
remove TT_REGEX and TT_MATCH
2013-02-18 16:18:19 +09:00
Masamitsu MURASE
54eb08e2fc
Remove ";" suffix from function-type macros.
2013-02-02 00:24:30 +09:00
Yukihiro Matz Matsumoto
2a5d82885a
add MRB_TT_VOIDP
2012-12-12 18:20:50 +09:00
Yukihiro Matz Matsumoto
3ceadfa5b2
inline include/mruby/object.h
2012-11-05 06:10:22 +09:00
Yukihiro Matz Matsumoto
902dd63803
remove FL_XXX macros
2012-11-04 05:15:22 +09:00
Yukihiro Matz Matsumoto
15304c194d
replace RTEST() by mrb_test_p()
2012-11-04 05:05:53 +09:00
Yukihiro Matz Matsumoto
d2d2e9f5f9
add new predicates mrb_string_p(),mrb_array_p(),mrb_hash_p()
2012-11-04 05:02:39 +09:00
Yukihiro Matz Matsumoto
051777dc5d
replace SYMBOL_P() by mrb_symbol_p()
2012-11-04 04:53:25 +09:00
Yukihiro Matz Matsumoto
da88627a37
add mrb_float_p()
2012-11-04 04:51:13 +09:00
Yukihiro Matz Matsumoto
3ba521ae9e
replace FIXNUM_P() by mrb_fixnum_p()
2012-11-04 04:49:43 +09:00
Yukihiro Matsumoto
7f30385d4a
MRB_TT_MAIN is an immediate type; need make clean; close #452
2012-09-06 19:41:02 +09:00
Yukihiro Matsumoto
fd3af6aec8
introduce toplevel object main; close #327
2012-09-03 00:41:09 +09:00