Commit Graph

368 Commits (clean-macosx-x86-32)

Author SHA1 Message Date
John Benediktsson c7868226d0 math.parser: simplify using member-eq?. 2015-07-16 09:55:33 -07:00
John Benediktsson 33a62c7f9d math.parser: with-radix-char quot shouldn't get called with ``f``. 2015-07-16 08:51:58 -07:00
John Benediktsson e280bafabe math.parser: remove unnecessary with-no-radix, thanks @jonenst! 2015-07-16 07:35:51 -07:00
John Benediktsson f6f596f40f math.parser: okay time for sleep, maybe this works, sorry git history. 2015-07-14 22:48:08 -07:00
John Benediktsson 5b58e1d3e8 math.parser: fix a regression. 2015-07-14 22:05:25 -07:00
John Benediktsson 94bb834eae math.parser: fix ``"-.5" dec>``. 2015-07-14 20:16:34 -07:00
John Benediktsson 866b40271d math.parser: fix "most-negative-fixnum number>string string>number fixnum?". 2015-07-14 20:03:33 -07:00
Doug Coleman 43d6f1d3e2 factor: Retrying on the unit tests. Also normalize some syntax with FUNCTION:. 2015-07-02 17:28:17 -07:00
Doug Coleman 59f3b1ea57 Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!"
Needs a bit more work.

This reverts commit 7e54cc2824.
2015-07-02 13:47:06 -07:00
Doug Coleman 7e54cc2824 factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool! 2015-07-02 11:36:08 -07:00
Doug Coleman 999aa7c897 factor: clean up spaces in -tests files 2015-07-02 10:34:01 -07:00
Doug Coleman e3cb325040 factor: clean up whitespace in -docs files 2015-07-02 10:31:22 -07:00
Doug Coleman 69ee8b9190 core, basis: Don't use the IN: foo.private feature and undocument it.
It only works well when you are loading code dynamically.
2015-06-30 08:51:07 -07:00
Björn Lindqvist ed702209ce VM: fix bignum>fixnum-strict conversion, previously most-negative-fixnum
>bignum bignum>fixnum-strict didn't work
2015-06-29 08:19:42 +02:00
Doug Coleman 44e8e7b344 primitives: Change PRIMITIVE: to check that the word is in that vocabulary and the stack effect is correct.
Use PRIMITIVE: in core/ and basis/
2015-06-25 18:02:03 -07:00
John Benediktsson 7dfe023854 math.integers: add some more tests for bit?. 2015-06-17 20:23:21 -07:00
John Benediktsson 621b50a8e5 cpu: enable bit-test intrinsic for fixnum-bit?. 2015-06-17 19:11:10 -07:00
John Benediktsson db9cfeeae2 math.integers: simplify fixnum-bit?. 2015-06-17 18:42:11 -07:00
John Benediktsson ed786070e2 math.integers: fixnum-bit? should not use fixnum-shift-fast. 2015-06-17 08:22:00 -07:00
John Benediktsson ccddbebf94 math.parser: slightly faster ((pow)). 2015-06-11 20:04:44 -07:00
John Benediktsson d60d098c11 math.integers: speedup to fixnum-bit?. 2015-06-07 11:08:57 -07:00
John Benediktsson 2c3492a916 minor cleanup to some docs. 2015-05-13 16:09:14 -07:00
John Benediktsson 9033a28c09 math.parser: simplify store-exponent. 2014-11-29 14:31:23 -08:00
John Benediktsson 38bc43b968 math.parser: whoops, this part shouldn't have been committed. 2014-11-29 12:54:48 -08:00
John Benediktsson cbba812d7e math.parser: remove float>string, speedup format-float. 2014-11-29 12:47:57 -08:00
Doug Coleman 632ee276e1 core: Remove trailing whitespace. 2014-10-31 01:14:31 -07:00
John Benediktsson 53a9c43b31 math.parser: fix docs for >base and base>. 2014-06-07 12:05:52 -07:00
John Benediktsson 24ad4e9424 math: remove out-of-fixnum-range error. 2014-06-07 09:50:50 -07:00
John Benediktsson eeaa91d6c1 vm: using bignum>fixnum-strict in integer>fixnum-strict. 2014-06-07 09:46:05 -07:00
John Benediktsson 309ce3aa69 math: adding a simple test for bignum_square. 2014-06-06 10:58:58 -07:00
John Benediktsson 57f9d78892 improve help by linking to types directly. 2014-05-23 20:20:15 -07:00
John Benediktsson 98935b7f15 docs: change ``{ $quotation "( x -- y )" }`` to ``{ $quotation ( x -- y ) }``. 2014-05-18 20:09:10 -07:00
John Benediktsson ede21dfb56 math: fix docs for next-power-of-2 and some tests. 2014-02-06 17:23:54 -08:00
John Benediktsson 63514bbbf8 math: fix quot stack effect in unless-zero. 2014-01-07 08:25:18 -08:00
John Benediktsson 8aac272c58 math.floats: shorten definitions using "bit?". 2013-11-25 11:07:06 -08:00
John Benediktsson 5793229dae math.floats: fix M\ float /mod. 2013-03-29 08:48:28 -07:00
John Benediktsson 37ca02a84e math.floats: adding some tests for M\ float mod. 2013-03-29 08:30:56 -07:00
John Benediktsson ff72d10fda math.parser: don't use variables in M\ ratio >base. 2013-03-28 14:31:55 -07:00
John Benediktsson 412382abca math.parser: exactly allocate sbuf for fixnums. 2013-03-28 11:55:52 -07:00
John Benediktsson bf0f6476f5 math.parser: do two digits down until 10. 2013-03-27 18:01:59 -07:00
John Benediktsson b5b0839426 math.parser: faster using byte-arrays. 2013-03-27 17:54:24 -07:00
John Benediktsson b7cb67bf76 math.parser: faster number>string. 2013-03-27 14:47:46 -07:00
Doug Coleman 5bf5cb3446 math.floats: Fix the output of /mod and add some unit tests. Fixes #803. 2013-03-20 17:43:56 -07:00
John Benediktsson 9620438ab7 math: implement /mod on floats. 2013-03-20 13:13:14 -07:00
Doug Coleman 5a9e7cd374 classes.builtin: Add the BUILTIN: keyword which lets builtin classes show up in source files. Probably could use save-location to allow editing, but it seemed to break things. 2013-03-10 12:05:38 -07:00
John Benediktsson 5487480126 core: cleanup USING lists. 2013-03-05 10:34:47 -08:00
John Benediktsson ff95c17972 math: speed up (find-integer) and (all-integers?) by removing curry. 2013-03-04 17:32:11 -08:00
John Benediktsson 6d679cf3a2 math.integers: the fixnum-log2 intrinsic didn't work due to inlining. 2013-02-27 17:08:36 -08:00
John Benediktsson 7ba77673a8 math.integers: faster fixnum-log2. 2013-02-27 16:01:34 -08:00
Doug Coleman 3582a6c624 kernel: Add 4dup, 4drop, and 4cleave. 2012-10-22 09:47:34 -07:00
John Benediktsson 34aab78998 math.integers: fix docs for fixnum comparisons. 2012-09-21 10:05:33 -07:00
John Benediktsson eaed0db99a Revert "math: speed up integer>fixnum operations."
This reverts commit b467db9a9a.
2012-09-16 07:46:22 -07:00
John Benediktsson 6ea9c0fc02 math: speed up integer>fixnum operations. 2012-09-15 08:52:06 -07:00
John Benediktsson 159f5d6344 math.integers: fix docs for >integer. 2012-09-15 08:51:19 -07:00
John Benediktsson 7e3a5fc1b2 math.order: improve docs for invert-comparison. 2012-09-14 09:45:03 -07:00
John Benediktsson 40e7813214 math.order: cleanup stack effects. 2012-09-14 09:36:09 -07:00
John Benediktsson 2a1fbb3396 math.order: make it more obvious this is a real<=>. 2012-09-14 09:19:26 -07:00
John Benediktsson 2158e772ec math.order: speed up math comparisons using a math generic. 2012-09-14 08:43:29 -07:00
John Benediktsson a4f264509d math: cleaner "2/" speedup by using custom inlining. 2012-09-10 17:59:03 -07:00
John Benediktsson 36fb890be2 math: faster definition of 2/ (allows inlining of fixnum-shift-fast). 2012-09-10 17:20:31 -07:00
John Benediktsson 089bdb1268 math.integers: inline fixnum-log2. 2012-09-10 17:20:12 -07:00
John Benediktsson 009fb4249e math: faster recip for integers and ratios. 2012-09-02 09:47:31 -07:00
John Benediktsson 18a087cb2a math: adding some tests for bignum bitnot. 2012-08-31 15:22:20 -07:00
John Benediktsson 20100d7853 math.integers: faster fixnum-bit?. 2012-08-30 22:40:22 -07:00
Doug Coleman cd9dd9d752 core: Throw an error when assigning a bignum to a fixnum tuple slot if the bignum doesn't fit. Fixes #594. 2012-08-03 14:59:59 -07:00
Doug Coleman 6994b0eed8 math.integers: Bignum hashcode* -- call bignum>fixnum to avoid a dispatch. 2012-07-23 09:38:12 -07:00
Doug Coleman fb4e3ad9bc compiler: Fix bitand on ratios, floats. Fix shift on ratios, floats. Add integer>fixnum. Fixes #500. 2012-07-23 09:31:12 -07:00
John Benediktsson 4e72d80256 Using "same?" in more places. 2012-07-21 10:22:44 -07:00
John Benediktsson d1f3b326e5 math: using if-zero in more places. 2012-06-18 14:32:39 -07:00
John Benediktsson bec49ff840 math.parser: simplify error types. 2012-06-08 07:32:01 -07:00
John Benediktsson 437b1f8785 math.parser: add some tests for errors. 2012-06-06 15:14:52 -07:00
John Benediktsson 3967b19aa5 math.parser: better error messages suggested by @erg. 2012-06-06 15:12:33 -07:00
John Benediktsson 9dbeef4933 math.parser: only allow 10 and 16 base for float>base. 2012-06-06 14:50:07 -07:00
Joe Groff c4bd4dc1cc math.parser: hex> etc. shouldn't take radix prefix
Fixes #453
2011-12-16 17:20:05 -08:00
Doug Coleman 3ba787b277 core/basis: trim down using lists 2011-11-30 23:15:42 -08:00
Joe Groff 98fc1e28bd math.integers: make bignum/f round to even on tie
Fixes #372
2011-11-26 17:44:29 -08:00
Joe Groff 0f5b551790 math.integers: pass tests even if number-base set 2011-11-26 17:37:17 -08:00
Joe Groff 269fe9ea1a math.integers: test round-to-even-on-tie behavior 2011-11-26 16:03:43 -08:00
Joe Groff 90f34d092c math: neg? needs to be defined for all reals 2011-11-26 15:37:58 -08:00
Joe Groff a97a9ede15 math.parser: don't accept hex float without expt
Part of #372
2011-11-26 15:15:46 -08:00
Joe Groff e58afa8ab5 oops, radix prefixes shouldn't chain 2011-11-24 12:39:52 -08:00
Joe Groff fa979425f3 math.parser: test harder 2011-11-24 12:34:50 -08:00
Joe Groff 14efcc69ab math.parser: reject "0x" etc. without any digits 2011-11-24 12:27:40 -08:00
Joe Groff 07abeee9d9 syntax: remove BIN: HEX: OCT: 2011-11-23 20:07:33 -08:00
Joe Groff 4b6559849f math.parser: oops 2011-11-23 19:51:15 -08:00
Joe Groff 4e8a1d0bb4 math: add neg? word
Do the right thing with integers or floats
2011-11-23 19:51:05 -08:00
Joe Groff 943596575a use radix literals 2011-11-23 19:03:40 -08:00
Joe Groff e738c7206c math.parser: natively support 0b 0o 0x syntax
Closes #371
2011-11-23 18:30:22 -08:00
Joe Groff 69f35b36aa math.parser: undo some inlining to shrink size
For #318.
2011-11-11 15:49:53 -08:00
Doug Coleman 4ebe5218c7 Update Windows for word renames, fix lint errors 2011-10-24 21:50:02 -07:00
John Benediktsson 5a943b32c4 Remove stack effects from HELP: declarations. 2011-10-20 19:36:11 -07:00
John Benediktsson 6f1c44b46d Cleanup some lint warnings. 2011-10-15 19:19:44 -07:00
John Benediktsson 312704ae68 math.parser: cleanup uses of 16/8/2 >base/base>. 2011-10-14 10:09:12 -07:00
John Benediktsson afc07c0e05 io.binary: make le> and be> faster (20% and 75%, respectively).
Removed primitive byte-array>bignum and digit_stream_to_bignum from vm/.
2011-10-11 21:13:30 -07:00
Doug Coleman 82a28a082b Remove extraneous using from math/ 2011-09-25 19:32:35 -07:00
John Benediktsson f6ee4c5a55 math.order: Removing stack effect (not quite right). 2011-09-23 17:46:49 -07:00
John Benediktsson 3c1356bf69 Adding stack effects. 2011-09-23 17:46:40 -07:00
John Benediktsson c99e6d79cd math: fix docs for 'when-zero'. 2011-09-02 21:13:29 -07:00
Keita Haga 3aaf58a3dd math: fix typo in docs 2011-01-09 02:29:33 +09:00
Slava Pestov bb4529bff2 math.integers: fix underflow and overflow behavior 2010-12-18 16:00:17 -08:00