summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-math/src
AgeCommit message (Collapse)Author
2020-10-12Integrate `Fixnum` class into `Integer` classdearblue
* The `Fixnum` constant is now an alias for the `Integer` class. * Remove `struct mrb_state::fixnum_class` member. If necessary, use `struct mrb_state::integer_class` instead.
2020-10-12Rename float configuration option names.Yukihiro "Matz" Matsumoto
- `MRB_WITHOUT_FLOAT` => `MRB_NO_FLOAT` - `MRB_USE_FLOAT` => `MRB_USE_FLOAT32` The former is to use `USE_XXX` naming convention. The latter is to make sure `float` is 32bit float and not floating point number in general.
2020-10-12Use functions that take symbols to reduce string litrals in C.Yukihiro "Matz" Matsumoto
2019-08-05Use new specifiers/modifiers of `mrb_vfromat()`KOBAYASHI Shuji
The binary sizes (gems are only `mruby-bin-mruby`) are reduced slightly in my environment than before the introduction of new specifiers/modifiers (5116789a) with this change. ------------+-------------------+-------------------+-------- BINARY | BEFORE (5116789a) | AFTER (This PR) | RATIO ------------+-------------------+-------------------+-------- mruby | 593416 bytes | 593208 bytes | -0.04% libmruby.a | 769048 bytes | 767264 bytes | -0.23% ------------+-------------------+-------------------+-------- BTW, I accidentally changed `tasks/toolchains/visualcpp.rake` at #4613, so I put it back.
2019-07-22Improve conflict error message of `Time` and `Math`; ref #4576Yukihiro "Matz" Matsumoto
2019-07-14Error needed/conflicts configurationdearblue
The purpose is to clarify the error if there is a needed/conflicts configuration at compile time.
2019-03-28Use `Mrbtest::FLOAT_TOLERANCE` instead of `Math::TORELANCE`; ref #4345Yukihiro "Matz" Matsumoto
2019-03-28Break loop whem `sum==0` to avoid zero division; ref #4345Yukihiro "Matz" Matsumoto
2019-03-28Use `DBL_EPSILON` instead of `1E-12`; ref #4345Yukihiro "Matz" Matsumoto
2018-12-23Suppress __FreeBSD_version warns for FreeBSDdearblue
2017-09-27fix: mrbgems\mruby-math\src\math.c(660): warning C4244: 'function': ↵Tomasz Dąbrowski
conversion from 'mrb_int' to 'int', possible loss of data
2017-09-27fix: mrbgems\mruby-math\src\math.c(491): warning C4244: '=': conversion from ↵Tomasz Dąbrowski
'mrb_int' to 'int', possible loss of data
2015-12-22fix build on VS2012Yasuhiro Matsumoto
2015-11-27include changed from by quotes ("") to by brackets (<>); close #3032Yukihiro "Matz" Matsumoto
2015-11-19Fix check for VisualStudio Version in mruby-math gemPaolo Bosetti
2015-10-21Revert "Mark core gems with mrbgem tag"Seba Gamboa
This reverts commit 5cdcce8dbddd94ecb9503a0a1d47370c4ef97177.
2015-10-20Remove obvious warnings from docsSeba Gamboa
2015-10-20Mark core gems with mrbgem tagSeba Gamboa
2014-08-22Update math.cbggd
2014-08-15Improve replacement math functions for Visual C++.chasonr
2014-05-02mruby-math: define and use `Math::DomainError`cremno
Domain errors are detected as per ISO C99 and may differ from CRuby.
2014-02-12 mruby-math: remove Cygwin compatibility macroscremno
nan: The first non-test release of Cygwin 1.5.x was over a decade ago: <http://cygwin.com/ml/cygwin-announce/2003-09/msg00001.html> log/log10: This workaround is not needed anymore (1.2.6.1, 1.3 - both over 6 years ago): <https://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libm/math/w_log.c?cvsroot=src>
2013-09-23support freebsd versions without log2 functionJulien Ammous
2013-08-19android doesn't have log2wanabe
2013-06-27Visual Studio 2013 support + strtof + inlineCremno
- 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-05-26Add MRB_WORD_BOXING mode (represent mrb_value as a word)kimu_shu
2013-04-25rename every ARGS_XXX to MRB_ARGS_XXX; ref #1206Yukihiro "Matz" Matsumoto
2013-03-03Remove trailing whitespaces. This is just a cosmetic change.Masaki Muranaka
2013-02-28mv mrgems/mruby-math to mrbgemsYukihiro Matz Matsumoto