- 24 Mar, 2021 13 commits
-
-
Yukihiro "Matz" Matsumoto authored
This function takes `struct mrb_rational*` and returns converted `mrb_float` value.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
This change relies that `mrb_num_div_flo` does not use `mrb` inside.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
This function handles zero division properly. Also fixed bugs that multiply numbers instead of division.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Use `NaN*i` as CRuby does.
-
- 23 Mar, 2021 1 commit
-
-
Yukihiro "Matz" Matsumoto authored
-
- 22 Mar, 2021 10 commits
-
-
Yukihiro "Matz" Matsumoto authored
Use global defines for `mruby-bin-debugger`
-
Yukihiro "Matz" Matsumoto authored
Reorganize types for `ObjectSpace.count_objects`
-
Yukihiro "Matz" Matsumoto authored
-
KOBAYASHI Shuji authored
#### Addition - T_COMPLEX - T_RATIONAL #### Deletion - T_FALSE - T_FREE - T_TRUE - T_SYMBOL - T_UNDEF
-
Yukihiro "Matz" Matsumoto authored
Add example for cross-compiling to Nintendo Switch
-
Yukihiro "Matz" Matsumoto authored
Add configuration for MinGW cross compilation [ci skip]
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
along with repeated calls of `strlen()`.
-
- 21 Mar, 2021 3 commits
-
-
Lanza authored
Cross Compiling configuration for the Nintendo Switch, it requires Nintendo SDK
-
KOBAYASHI Shuji authored
With this cross compiler configuration, all tests for full-core gembox on Windows on GitHub Actions were successful.
-
Yukihiro "Matz" Matsumoto authored
-
- 20 Mar, 2021 4 commits
-
-
Yukihiro "Matz" Matsumoto authored
This change also fixes the error caused by `rational.c` that calls `mrb_complex_eq()`, which had been undefined.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
`MRB_INT_MIN` does not have a corresponding positive value.
-
- 19 Mar, 2021 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
- define `MRB_TT_COMPLEX` - change object structure (`struct RComplex`) - add memory management for `MRB_TT_COMPLEX` - avoid operator overloading as much as possible - as a result, performance improved a log - should work with and without `Rational` defined
-
Yukihiro "Matz" Matsumoto authored
- define `MRB_TT_RATIONAL` - change object structure (`struct RRational`) - add memory management for `MRB_TT_RATIONAL` - avoid operator overloading as much as possible - implement division overloading in C - as a result, performance improved a lot
-
- 18 Mar, 2021 7 commits
-
-
Yukihiro "Matz" Matsumoto authored
Since `mruby` does not have `Bignum`, `Float#divmod` could overflow, so it will return `Float` values when the divided value does not fit in `mrb_int`. This behavior will be changed when `Bignum` is introduced to `mruby` in the future.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
-
Yukihiro "Matz" Matsumoto authored
`Float::NAN/0` should be `Float::NAN`; ref a0b3378b
-
KOBAYASHI Shuji authored
#### Before this patch: ```console $ bin/mruby -e 'p(Float::NAN/0)' Infinity ``` #### After this patch (same as Ruby): ```console $ bin/mruby -e 'p(Float::NAN/0)' NaN ```
-