John Benediktsson
126f3acf63
math.bitwise: remove duplicate logic in bitfield.
2020-08-05 15:57:27 -07:00
Doug Coleman
e9ab963df9
math.bitwise: Fix example for bitfield*
2020-06-12 19:40:47 -05:00
Doug Coleman
a7b058bed1
math.bitwise: I can't implement ``bitfield*`` as ``reverse bitfield``
...
I don't really know why. Add some tests in the docs and document bitfield*
2020-06-12 19:24:02 -05:00
John Benediktsson
05796cb497
math.bitwise: some docs cleanup.
2020-05-02 07:43:39 -07:00
Doug Coleman
94c6c8e5db
math.bitwise: Add some more docs to find bits form >signed.
2020-05-01 22:49:14 -05:00
Doug Coleman
c21608b0a0
math.bitwise: Add an in-order bitfield word called bitfield*.
2020-05-01 22:48:48 -05:00
Doug Coleman
e6b546c358
math.bitwise: Fix shift "right" to shift "left" for bitfield.
...
This word was really hard to understand so I reworked the docs and added another example.
2020-04-18 19:46:29 -05:00
John Benediktsson
2cbcacad88
core/basis/extra: update some tags.txt.
2020-02-26 10:57:08 -08:00
John Benediktsson
ed92cb066b
math.bitwise: add >signed to docs next to >even, >odd.
2018-01-23 15:37:21 -08: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
30d158ccce
prettyprint: Print .b .o .h with prefixes so it's not super confusing. Fixes #1351 .
2016-03-30 22:59:29 -07:00
John Benediktsson
ceb75057da
change ERROR: words from throw-foo back to foo.
2015-08-13 16:13:05 -07:00
Doug Coleman
b6be8685c3
basis: ERROR: changes.
2015-08-13 03:20:39 -07:00
Doug Coleman
2c257f399c
factor: Rename MACRO: and MACRO: to have quot as the output in stack effects.
2015-07-18 22:16:11 -07:00
Doug Coleman
892c62e1dc
factor: second stab at [ ] [ ] unit-test -> { } [ ] unit-test
2015-07-03 09:39:59 -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
John Benediktsson
0eea157d90
math.bitwise: bitfield should just use map-reduce.
2015-05-31 08:04:34 -07:00
John Benediktsson
f24bbffb2a
math.bitwise: change bitfield to reduce from first argument rather than zero.
2015-05-30 21:55:27 -07:00
John Benediktsson
0f1f27dcee
math.bitwise: fix docs for bitfield.
2015-05-30 21:51:08 -07:00
John Benediktsson
57f9d78892
improve help by linking to types directly.
2014-05-23 20:20:15 -07:00
John Benediktsson
594354e145
math.bitwise: simplify byte-array-bit-count.
2014-04-29 22:11:42 -07:00
John Benediktsson
ebbfa17b47
math.bitwise: fix docs for mask and unmask (they don't return a boolean).
2014-02-09 15:36:49 -08:00
John Benediktsson
069d09807e
math.bitwise: removing bit-clear? since it is just "bit? not".
2013-11-24 12:05:52 -08:00
John Benediktsson
17941b8ad7
math.bitwise: speed up >signed.
2013-11-24 12:01:08 -08:00
John Benediktsson
5486473b52
math.bitwise: adding bit-length.
2013-10-20 18:55:58 -07:00
John Benediktsson
a5f59da7e1
math.bitwise: fix mask? to do what the docs say.
2013-10-13 20:20:05 -07:00
John Benediktsson
b571a42679
Use -unsafe words with pair methods.
2013-03-07 10:47:23 -08:00
Doug Coleman
8e8712efab
math.bitwise: Fix bit-range and test it.
2012-09-19 17:03:13 -07:00
Doug Coleman
19b6ae71d5
math.bitwise: Fix on-bits for negative values, which also fixes bits. Add unit tests.
2012-09-19 16:39:22 -07:00
Doug Coleman
f0464fa097
math.bitwise: Inline bit-range
2012-09-19 16:15:14 -07:00
Doug Coleman
2735d3a5d7
math.bitwise: Add bit-range
2012-09-19 15:44:19 -07:00
John Benediktsson
b39547a866
math.bitwise: some cleanup of zero handling.
2012-08-31 15:58:54 -07:00
Joe Groff
943596575a
use radix literals
2011-11-23 19:03:40 -08:00
Joe Groff
248066c710
code beautification
2011-11-13 16:10:26 -08:00
Joe Groff
da81cb9035
math.bitwise: don't count the same bits over&over
2011-11-13 16:10:22 -08:00
Joe Groff
706c9ee3b9
math.bitwise: hotrod nonintrinsic fixnum-bit-count
2011-11-13 16:10:21 -08:00
John Benediktsson
80e1c8e3f2
Eliminate duplicate syntax for stack effects "(" no longer drops and is identical to the old "((", which is now removed.
2011-10-18 13:19:39 -07:00
John Benediktsson
6f1c44b46d
Cleanup some lint warnings.
2011-10-15 19:19:44 -07:00
John Benediktsson
cc49bbfb27
math.bitwise: bits is clearer this way.
2011-10-14 13:54:08 -07:00
John Benediktsson
4f42c72012
specialized-arrays: performed some cleanup.
...
Specifically,
• Created >c-array to be replacement for >T-array.
• Created cast-array to be generic replacement for all T-array-cast words.
• Created c-array@ to be generic replacement for T-array@ words.
• Replaced usages of <T-array> with T <c-array>
• Replaced usages of <direct-T-array> with T <c-direct-array>
• Replaced usages of >T-array with T >c-array
• Replaced usages of T-array-cast with T cast-array
• Replaced usages of malloc-T-array with T malloc-array.
• Removed malloc-T-array.
• Removed T-array-cast.
• Removed T-array@.
• Removed >T-array.
I also added (but didn't change any code to use):
• T c-array-type, returns T-array
• T c-array?, returns T-array?
• c-array{ T ... }, returns T-array{ ... }
Bootstraps just find on Mac OS X. Also `load-all test-all` works for me.
2011-09-26 11:37:51 -07:00
Doug Coleman
eedc1e185f
Add more unit-tests and docs for math.bitwise. Fix a bug with >signed so that it truncates a number to however many bits you tell it the number is before doing the calculation.
2011-09-21 14:55:50 -05:00
Keita Haga
8d2ceda8f3
assocs, math.bitwise: remove first blank line and useless whitespace in a few usage examples
2011-01-17 00:12:28 +09:00
Joe Groff
7c6c4ef8ae
math.bitwise: factor M\ fixnum (bit-count) to a separate word so it can be made intrinsic
2010-05-15 13:27:26 -07:00
Doug Coleman
026499e64f
Use flags{ instead of flags all over the place
2010-04-01 14:44:03 -05:00
Doug Coleman
b39e3f4700
Link a word in math docs
2010-03-31 15:09:51 -05:00
Slava Pestov
af0ddd5985
Specialized arrays, structs and other objects responding to the >c-ptr / byte-length protocol can now be written to binary streams
2010-02-24 20:18:41 +13:00
Slava Pestov
220dd88a2c
Update documentation for new help lint check
2010-02-19 12:31:52 +13:00
Slava Pestov
4893ebf183
Small cleanups
2010-02-16 04:04:09 +13:00
Joe Groff
67cc1c01be
Merge branch 'master' into simd-cleanup
2009-11-26 16:14:46 -08:00