| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2021-03-28 | numeric.c: function renaming. | Yukihiro "Matz" Matsumoto | |
| - `mrb_num_div_int(mrb,x,y)` -> `mrb_div_int(mrb,x,y)` - `mrb_num_div_flo(mrb,x,y)` -> `mrb_div_flo(x,y)` They are internal function not supposed to be used outside of the core. | |||
| 2021-03-27 | Move default `Integer#/` from `rational.c` to `complex.c`. | Yukihiro "Matz" Matsumoto | |
| 2021-03-26 | complex.rb: add test for arithmetic operators. [ci skip] | Yukihiro "Matz" Matsumoto | |
| Tests for (`Float` or `Integer`) `op` `Complex`. Also added test dependency to `mruby-rational` since `int_div` definition relies on `Rational` when `MRB_USE_RATIONAL` is defined. | |||
| 2021-03-26 | rational.rb: add test for arithmetic operators. | Yukihiro "Matz" Matsumoto | |
| Tests for (`Float` or `Integer`) `op` `Rational`. | |||
| 2021-03-25 | rational.c: fix wrong `funcall` method in `rational_mul`. | Yukihiro "Matz" Matsumoto | |
| 2021-03-25 | rational.c: inline `mrb_rational_eq()`. | Yukihiro "Matz" Matsumoto | |
| It removes non-static function, so that strictly saying, it's an incompatible change. But the function was added recently and I am sure no one uses it yet. | |||
| 2021-03-24 | rational.c: implement `Rational#<=>` in C. | Yukihiro "Matz" Matsumoto | |
| 2021-03-24 | rational.c: implement `Rational#/` and `#quo` in C. | Yukihiro "Matz" Matsumoto | |
| 2021-03-24 | rational.c: implement `Rational#*` in C. | Yukihiro "Matz" Matsumoto | |
| 2021-03-24 | rational.c: implement `Rational#-` in C. | Yukihiro "Matz" Matsumoto | |
| 2021-03-24 | fixup! rational.c: prepare utility function `rat_to_flo()`. | Yukihiro "Matz" Matsumoto | |
| 2021-03-24 | rational.c: prepare utility function `rat_to_flo()`. | Yukihiro "Matz" Matsumoto | |
| This function takes `struct mrb_rational*` and returns converted `mrb_float` value. | |||
| 2021-03-24 | rational.c: implement `Rational#+` in C. | Yukihiro "Matz" Matsumoto | |
| 2021-03-24 | complex.c: use `mrb_num_div_flo` to avoid copying function. | Yukihiro "Matz" Matsumoto | |
| This change relies that `mrb_num_div_flo` does not use `mrb` inside. | |||
| 2021-03-24 | rational.c: check integer overflow in `rational_minus`. | Yukihiro "Matz" Matsumoto | |
| 2021-03-24 | complex.rb: unary plus (`+@`) to return self avoiding copying. | Yukihiro "Matz" Matsumoto | |
| 2021-03-24 | complex.c: implement `Complex` addition and subtraction in C. | Yukihiro "Matz" Matsumoto | |
| 2021-03-24 | complex.c: override float division to support `Complex`. | Yukihiro "Matz" Matsumoto | |
| 2021-03-24 | Use `div_flo` (copy of `mrb_num_div_flo`) for float division. | Yukihiro "Matz" Matsumoto | |
| 2021-03-24 | Use `mrb_num_div_flo` for float division. | Yukihiro "Matz" Matsumoto | |
| This function handles zero division properly. Also fixed bugs that multiply numbers instead of division. | |||
| 2021-03-24 | Fix infinite recursive call bugs in integer division. | Yukihiro "Matz" Matsumoto | |
| 2021-03-24 | complex.c: implement `Complex#/` and `#quo` in C. | Yukihiro "Matz" Matsumoto | |
| 2021-03-24 | complex.c: implement `Complex#*` in C. | Yukihiro "Matz" Matsumoto | |
| 2021-03-24 | rational.rb: avoid 'NaNi` representation. | Yukihiro "Matz" Matsumoto | |
| Use `NaN*i` as CRuby does. | |||
| 2021-03-22 | Merge pull request #5387 from shuujii/use-global-defines-for-mruby-bin-debugger | Yukihiro "Matz" Matsumoto | |
| Use global defines for `mruby-bin-debugger` | |||
| 2021-03-22 | Reorganize types for `ObjectSpace.count_objects` | KOBAYASHI Shuji | |
| #### Addition - T_COMPLEX - T_RATIONAL #### Deletion - T_FALSE - T_FREE - T_TRUE - T_SYMBOL - T_UNDEF | |||
| 2021-03-22 | Use global defines for `mruby-bin-debugger` | KOBAYASHI Shuji | |
| 2021-03-22 | Use global defines for `Rational` and `Complex`. | Yukihiro "Matz" Matsumoto | |
| 2021-03-22 | codegen.c: fix integer size warnings. | Yukihiro "Matz" Matsumoto | |
| along with repeated calls of `strlen()`. | |||
| 2021-03-21 | complex.c: define `Complex#==` in C. | Yukihiro "Matz" Matsumoto | |
| This change also fixes the error caused by `rational.c` that calls `mrb_complex_eq()`, which had been undefined. | |||
| 2021-03-21 | memsize.c: handle `MRB_TT_RATIONAL` and `MRB_TT_COMPLEX`. | Yukihiro "Matz" Matsumoto | |
| 2021-03-20 | rational.c: fix `MRB_TT_RATIONAL` and `MRB_TT_COMPLEX` confusion. | Yukihiro "Matz" Matsumoto | |
| 2021-03-20 | random.c: fixed seed underflow bug. | Yukihiro "Matz" Matsumoto | |
| `MRB_INT_MIN` does not have a corresponding positive value. | |||
| 2021-03-19 | complex.c: overhaul complex operators. | Yukihiro "Matz" Matsumoto | |
| - 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 | |||
| 2021-03-19 | rational.c: overhaul rational operators. | Yukihiro "Matz" Matsumoto | |
| - 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 | |||
| 2021-03-14 | time.c: calendar clock should use `CLOCK_REALTIME`; 5e95f11 | Yukihiro "Matz" Matsumoto | |
| The issue was reported by @shuujii | |||
| 2021-03-13 | codegen.c: fix memory leak from `new_litbn()`. | Yukihiro "Matz" Matsumoto | |
| 2021-03-12 | codegen.c: need to preserve `neg` info. | Yukihiro "Matz" Matsumoto | |
| 2021-03-12 | codegen.c: avoid integer comparison of different sign. | Yukihiro "Matz" Matsumoto | |
| 2021-03-12 | codegen.c: no integer overflow error in `codegen`; close #5376 | Yukihiro "Matz" Matsumoto | |
| Add new pool value type `IREP_TT_BIGINT` and generate integer overflow error in the VM. In the future, `mruby` will support `Bignum` for integers bigger than `mrb_int` (probably using `mpz`). | |||
| 2021-03-09 | chore: fix grammar | John Bampton | |
| 2021-03-08 | time.c: fix errors on Windows and macOS; ref #5354 | Yukihiro "Matz" Matsumoto | |
| `gmtime_r` detection logic was too strict. | |||
| 2021-03-08 | ISO C99 doesn't support unnamed unions; fix #5354 | Yukihiro "Matz" Matsumoto | |
| 2021-03-03 | time.c: `timespec_get()` never fails. | Yukihiro "Matz" Matsumoto | |
| 2021-03-03 | time.c: fixed wrong condition to include `unistd.h`. | Yukihiro "Matz" Matsumoto | |
| 2021-03-03 | time.c: Windows does not have `unistd.h`. | Yukihiro "Matz" Matsumoto | |
| 2021-03-03 | time.c: use `clock_gettime()` if possible. | Yukihiro "Matz" Matsumoto | |
| 2021-03-03 | time.c: adjust buffer size in `mrb_time_asctime()`. | Yukihiro "Matz" Matsumoto | |
| 2021-03-03 | time.c: fix compile errors in `mrb_time_asctime()`. | Yukihiro "Matz" Matsumoto | |
| 2021-03-02 | Merge pull request #5368 from jbampton/add-pre-commit-framework | Yukihiro "Matz" Matsumoto | |
| feat: add pre-commit framework | |||
