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
069d09807e
math.bitwise: removing bit-clear? since it is just "bit? not".
2013-11-24 12:05:52 -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
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
2735d3a5d7
math.bitwise: Add bit-range
2012-09-19 15:44:19 -07:00
Joe Groff
943596575a
use radix literals
2011-11-23 19:03:40 -08: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
Doug Coleman
026499e64f
Use flags{ instead of flags all over the place
2010-04-01 14:44:03 -05:00
Joe Groff
4027002db7
remove SIMD:s
2009-11-25 20:21:54 -08:00
Doug Coleman
b56880bfd7
fix a bug in bit-count that assumed 32bit fixnums, make bit-count work on byte-arrays, SIMD types, specialized-arrays, and aliens
2009-10-05 18:55:26 -05:00
Doug Coleman
7c92ab1ea5
move if-zero etc to math, remove 1-/1+ from math
2009-08-14 14:27:23 -05:00
Slava Pestov
05f3f9dcb9
Fixing unit tests for stack effect inference changes
2009-04-20 21:15:19 -05:00
Doug Coleman
990513db60
use CONSTANT: in basis
2009-02-22 19:13:08 -06:00
Doug Coleman
932631c901
use combinators.smart for bit-count
2009-01-08 18:57:07 -06:00
Doug Coleman
a4860c3173
add toggle-bit word to math.bitwise
2008-11-29 00:37:36 -06:00
Doug Coleman
7aeeb2c9ce
bitwise docs, fix some bugs in bitwise words
2008-11-11 13:03:08 -06:00
Slava Pestov
c19f2257f4
Fix permission bits
2008-10-02 08:34:49 -05:00
Slava Pestov
aea0fed14c
Fixing basis -> extra dependencies
2008-09-05 19:29:14 -05:00