John Benediktsson
f2deb82829
core: removing unnecessary method stack effects.
2020-09-09 15:00:53 -07:00
Alexander Iljin
671aa228f3
math-docs: fix `times` documentation
...
The word `each` used to loop over integers in the past, but it does not
anymore.
2020-07-19 14:24:11 +00:00
John Benediktsson
2cbcacad88
core/basis/extra: update some tags.txt.
2020-02-26 10:57:08 -08:00
Doug Coleman
4e9d383fe5
docs: Fix help-lint-all mistakes.
2018-07-07 01:13:19 -05:00
Doug Coleman
9f213f96f6
core: Add the shuffler words but without primitives.
...
The nipd branch slowed bootstrap by a minute, this patch does not.
sorry about changing the fjsc line endings...
2018-06-19 22:52:58 -05:00
John Benediktsson
42b37dcc8a
fix some tests broken by previous commit.
2018-02-15 13:16:39 -08:00
John Benediktsson
ca03896d74
more test IN: cleanup.
2018-02-15 09:20:01 -08:00
Björn Lindqvist
1ed40f74f9
math.parser: fill argument must not be an empty byte-array
2017-06-28 11:18:40 +02:00
John Benediktsson
13e7ed3986
math.parser: allow 0B, 0O, and 0X number prefixes.
2017-06-15 15:53:01 -07:00
Doug Coleman
e189954ecc
core: Rename iota to <iota> so we can have TUPLE: iota ... ; instead of TUPLE: iota-tuple ... ;
2017-06-02 11:57:05 -05:00
Doug Coleman
7c7bb93c55
factor: Rename GENERIC# to GENERIC#:.
...
Fixes #1670 .
2017-06-01 13:58:58 -05:00
John Benediktsson
0f52366466
math: fix stack effect for unless-zero and when-zero.
2017-05-03 18:13:37 -07:00
Jon Harper
3760c965af
core.math, bignum/f, shift subnormals before rounding. Fixes #1782
2017-01-23 10:12:20 -08:00
Alexander Iljin
908ff65bef
math.order[-docs]: rename parameters in between? to match those in clamp
2017-01-20 08:21:54 -08:00
Alexander Iljin
16403bb0c9
math.parser: add missing blank line between words
2017-01-02 09:33:10 -08:00
Björn Lindqvist
56079afcfb
Revert "bootstrap: trying to undo changes from"
...
This reverts commit 7b3fb61ebd
.
2016-11-13 00:22:21 +01:00
Björn Lindqvist
7b3fb61ebd
bootstrap: trying to undo changes from
...
a915d3bdb4
(#1513 )
A lot of changes that built upon those changes had to be undone too. New
boot images is required.
2016-11-12 01:54:57 +01:00
Björn Lindqvist
88b2ed482c
math.parser: (format-float) can only be flushable
2016-10-09 00:47:37 +02:00
Björn Lindqvist
bbd71ae975
math.parser: (format-float) doesn't need to zero-terminate returned byte-array
2016-10-09 00:47:37 +02:00
Alexander Iljin
1cec145e46
math: fix stack effect declaration for the neg? generic
2016-07-30 09:25:30 -07:00
Alexander Iljin
4e3dab7237
math-docs: fix a copy-paste error
2016-07-30 09:25:30 -07:00
John Benediktsson
bd630d1464
math.integers: use must-fail instead of ignore-errors.
2016-07-10 20:28:28 -07:00
Doug Coleman
c12b73e929
math: fix docs for binary printing.
2016-03-31 07:46:14 -07:00
Doug Coleman
30d158ccce
prettyprint: Print .b .o .h with prefixes so it's not super confusing. Fixes #1351 .
2016-03-30 22:59:29 -07:00
Doug Coleman
c133c16377
core: Trim using lists from -tests and clean up a few irregularities.
2016-03-30 18:43:41 -07:00
John Benediktsson
4ce62e0827
math.parser: add tests for change to not throw zero division.
2016-03-30 14:31:37 -07:00
Jon Harper
0b98eb121e
math.parser: number>string, don't throw zero division on '1/0'
2016-03-30 14:29:37 -07:00
Doug Coleman
20aadd5688
core: rename some double paren words.
2016-03-25 03:13:27 -07:00
John Benediktsson
6b07e6caf2
math: rename fast-gcd to simple-gcd.
2016-03-19 12:20:09 -07:00
John Benediktsson
59b41e4f90
math.parser: adding bytes>hex-string and hex-string>bytes.
2016-03-16 10:13:56 -07:00
Jon Harper
7eaa24b3e0
math.parser: simplify fix-float (from 16c93c7874
)
2016-03-08 07:55:25 -08:00
Jon Harper
19fadb6c96
prettyprinter, locale independant float printing
2016-03-08 07:55:25 -08:00
John Benediktsson
141f3c9e65
math: use "i/f" for stack effect.
2015-09-30 19:01:38 -07:00
John Benediktsson
e477f6996f
Fix comments to be ! not #!.
2015-09-08 16:15:10 -07:00
John Benediktsson
ceb75057da
change ERROR: words from throw-foo back to foo.
2015-08-13 16:13:05 -07:00
Doug Coleman
02008979d9
factor: Change ERROR: foo ; to define ``throw-foo`` instead of having ``foo`` throw implicitly. The old ``foo`` still throws implicitly because this is a big change to get right in one patch, but it should be removed soon.
2015-08-12 15:26:18 -05:00
Doug Coleman
00338f62f3
factor: put inline on same line as ; for experimentation
2015-08-10 12:55:27 -05:00
John Benediktsson
a8b3642c8c
math.parser: make float-parse:point a fixnum.
2015-07-30 18:16:31 -07:00
John Benediktsson
b3323c15bd
math.parser: some inline, some fixnum+fast, some disable tests.
2015-07-30 17:59:21 -07:00
Jon Harper
8d827b2772
math.parser: support >bin and >oct for floats
...
This is for symmetry with "0o1p0", "0b1p0", bin> and hex> which
all already work
2015-07-30 11:04:51 -07:00
Jon Harper
4d8cb81cab
math.parser: add tests/docs for floats 0b 0x bin> float> since they work
2015-07-30 11:04:51 -07:00
Jon Harper
09af182db7
math.parser, don't take infinite time to parse huge exponents
2015-07-30 11:04:51 -07:00
Jon Harper
dce2ca1366
math.parser: don't lose precision in make-float-bin-exponent
2015-07-30 11:04:51 -07:00
John Benediktsson
c6fad4aa61
math.ratios: moving to core.
2015-07-30 10:31:00 -07:00
Jon Harper
53efceb0ad
math.integers, comment and simplify bignum/f
...
change the "while" that could only execute once to "when"
change the f/loop word name to "mantissa-and-guard" since it's what it
computes
change the check against 2^53 to be explicit
2015-07-26 12:33:56 -07:00
Jon Harper
5424ad5586
math.integers, bignum/f, improve performance.
...
This changes avoids looping many times if the denominator is a power of
2. After this change, the implementation matches the linked sbcl
algorithm. This was probably a mistake done when porting the algorithm.
Basically, as an optimization, all trailing zeros are removed from the
base2 representation of the denominator to have smaller bignums to
divide. But the previous factor implementation didn't take this into
account when making the initial guess of the shift of the numerator to
obtain a result in the range [2^54-1,2^53]. The loop would then correct
the initial guess by a factor of 2 at each iteration, so it would run as
many iteration as the denominator base2 power reduction, instead of only
a few times. For pathological cases, the speed up is huge (10^4):
1 1000 2^ bignum/f
2015-07-26 12:33:55 -07:00
Jon Harper
cc6d90a096
math.integers, fix bignum/f for results in ]0x1.0p-1022,0x0.4p-1022]
2015-07-26 12:33:55 -07:00
John Benediktsson
296974a057
math.parser: remove digits>integer.
2015-07-19 19:18:47 -07:00
John Benediktsson
16c93c7874
math.parser: simplify fix-float.
2015-07-19 17:20:37 -07:00
John Benediktsson
0dbc5e7d67
math.parser: simplify { integer ratio } >base.
2015-07-19 16:57:45 -07:00