335 Commits

Author SHA1 Message Date
hyunghwan.chung
98e5deca4f fixing bigint division bugs 2019-04-03 19:19:09 +00:00
hyunghwan.chung
f28bd84c50 removed some deprecated code from bigint.c
fixed a bigint division bug when MOO_USE_FULL_WORD is undefined
2019-04-01 08:45:21 +00:00
hyunghwan.chung
8ce908262a enhanced moo_divints() 2019-03-30 13:43:10 +00:00
hyunghwan.chung
4f1ad1fe64 added a few more test cases 2019-03-25 13:00:15 +00:00
hyunghwan.chung
45b21a004b optimized the bigint division a bit more 2019-03-25 11:41:26 +00:00
hyunghwan.chung
983026c774 optimized the division a bit
removed moo_log2_for_pow2() and created similar macros local to bigint.c
2019-03-24 18:49:16 +00:00
hyunghwan.chung
c875e41ce6 extended Collection with asSet 2019-02-21 08:23:43 +00:00
hyunghwan.chung
04e28e979a extended Collection with asOrderedCollection 2019-02-21 03:49:31 +00:00
hyunghwan.chung
fdda5c94f3 fixed an assertion bug in binint division when divisor is greater than dividend 2019-02-20 17:40:34 +00:00
hyunghwan.chung
fe6c693b86 compacted duplicate code into inline functions 2019-02-19 14:19:31 +00:00
hyunghwan.chung
4a6428445b attempted to improve performance of moo_truncfpdec() and moo_truncfpdecval() but the changes made don't seem to improve performance 2019-02-19 13:59:19 +00:00
hyunghwan.chung
4301066c76 fixed a bug in string_to_fpdec().
supports the plus sign before a numeric literal
2019-02-19 05:02:37 +00:00
hyunghwan.chung
d384801eec added moo_fill_uchars()/moo_fill_bchars()
implemented the new fixed-point decimal prescale notation like 9p10.1 to indicate 10.100000000
2019-02-18 17:13:33 +00:00
hyunghwan.chung
0805ecc76b added doWithIndex:. from:to:do: from:to:doWithIndex: to SequenceableCollection
added scale and scale: to Integer and FixedPointDecimal
added moo_truncfpdec()
2019-02-18 08:57:59 +00:00
hyunghwan.chung
e1ec7a7f38 fixed a bug in at: and at:put: of OrderedCollection 2019-02-16 18:21:39 +00:00
hyunghwan.chung
98451c9b9f meaningless commit for data migration 2019-02-01 16:26:00 +00:00
hyunghwan.chung
fcdd6981b9 added comments to error codes 2019-01-30 10:17:31 +00:00
hyunghwan.chung
5101228c39 Added pf_number_mlt() whcih scales to the smaller of the two fixed-point numbers 2019-01-10 15:28:37 +00:00
hyunghwan.chung
9cd0b28933 change the behavior of pf_number_div upon divide by zero 2019-01-10 15:22:43 +00:00
hyunghwan.chung
7d3d21b3cf added moo_numtostr() 2019-01-10 10:01:50 +00:00
hyunghwan.chung
cd4d34c724 added some number primitives 2019-01-10 07:00:17 +00:00
hyunghwan.chung
c62a0ce3c5 changed some numeric primitives to support fpdec 2019-01-09 16:07:27 +00:00
hyunghwan.chung
29f7058ebf added MOO_IOTOK_FPDECLIT and some handling code 2019-01-09 09:55:27 +00:00
hyunghwan.chung
77fee95759 added two test cases 2019-01-04 16:01:55 +00:00
hyunghwan.chung
1463621bdb added some function prototypes 2019-01-01 06:44:28 +00:00
hyunghwan.chung
fc3a725bb8 renamed moo_pushtmp()/poptmp()/poptmps() to moo_pushvolat()/popvolat()/popvolats() 2018-12-28 08:29:27 +00:00
hyunghwan.chung
3e623c6677 added more test cases 2018-12-23 16:44:47 +00:00
hyunghwan.chung
981882de7e check smptr check in pf_call() in ffi.c
changed FFI>>call:signature:arguments: to throw an FFIException exception upon failure
added FFIException
2018-12-22 08:37:18 +00:00
hyunghwan.chung
f69b4c0881 a few more test cases 2018-12-21 16:58:58 +00:00
hyunghwan.chung
7b7906bf09 define private prototypes of moo_sprintfmtst() and moo_sproutbfmt() 2018-12-21 16:40:20 +00:00
hyunghwan.chung
71a617b95b enhanced moo_inttostr() with 2 new flags - MOO_INTTOSTR_LOWERCASE and MOO_INTTOSTR_NONEWOBJ
redefined bigint and fpdec check macros
added the strfmt primitive to String
2018-12-21 16:25:25 +00:00
hyunghwan.chung
3b49f6998a reverted previous changed done for testing and debugging 2018-12-20 16:11:52 +00:00
hyunghwan.chung
9a4bbcaa4c fixed wrong computation of buffer capacity for moo->inttostr.xbuf and moo->inttostr.t
updated some sample code
fixed a few flaws in ffi.c
2018-12-20 16:08:56 +00:00
hyunghwan.chung
936b9179ed restored some sample moo code files 2018-11-06 06:26:34 +00:00
hyunghwan.chung
65a702a88b enhanced callback functions for os2 2018-11-06 06:24:59 +00:00
hyunghwan.chung
852349b26c allowed interface specification in extending a class. e.g. extend ClassName [Interface1,Interface2,etc] { ... } 2018-10-12 15:57:58 +00:00
hyunghwan.chung
18b270529c added moo_findmethodinclasschain()
added MOO_SYNERR_CLASSNCIFCE
finished implementing interface conformance check primitively
2018-10-12 09:09:45 +00:00
hyunghwan.chung
c6c3739572 added moo_walkdic() for internal use
added incomplete interface implementation check
2018-10-11 14:03:16 +00:00
hyunghwan.chung
1cbe741508 added some code to check interface conformance of a class 2018-10-11 10:01:34 +00:00
hyunghwan.chung
6676e349ca added some more code to store interfaces specified in the implementing class 2018-10-10 08:55:11 +00:00
hyunghwan.chung
653b99545f added the method signature class internally to support interface implementation 2018-10-10 04:23:44 +00:00
hyunghwan.chung
1a43722da1 fixed error literals in test-014.moo 2018-10-09 15:27:35 +00:00
hyunghwan.chung
4ae2ae6f88 added much more code to implement interface. still work in progress 2018-10-09 15:21:58 +00:00
hyunghwan.chung
b16347e2d9 updated the X11.moo sample code 2018-10-08 13:17:11 +00:00
hyunghwan.chung
9ad9299dea allowed class and class extension nesting inside a class 2018-10-08 06:51:31 +00:00
hyunghwan.chung
079f2d3f4a reorganized the compiler code by moving the method data into the cunit_class 2018-10-05 16:25:17 +00:00
hyunghwan.chung
7b5462ca26 changed the compiler structure a bit for planned architectural change of the compiler 2018-09-30 16:06:19 +00:00
hyunghwan.chung
024976295e Added the Interface class for a start 2018-07-08 17:13:10 +00:00
hyunghwan.chung
389a7a3d76 enhanced the __int128_t check with extra check against va_arg 2018-06-30 03:46:45 +00:00
hyunghwan.chung
b100f9a46b added add: to AssociativeDictionary, hence effectively to Dictionary 2018-06-27 14:40:31 +00:00