Commit Graph

22 Commits (6a434915d019f2121e80cd47c9e00258b4a8bf28)

Author SHA1 Message Date
John Benediktsson 0fb0eaa1cf random: simplify using bitwise operations. 2014-02-25 15:59:51 -08: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
Joe Groff 2bd6de9a02 slots: pre-create the "at", "nth", and "global" slots to make deterministic the currently nondeterministic ambiguity between accessors:change-* and assocs:change-at, sequences:change-nth, and namespaces:change-global 2011-09-19 10:03:43 -07:00
Slava Pestov 75560699ea Move <ref>, deref and little-endian? from alien.c-types to alien.data, remove <c-object> 2010-12-25 16:55:36 -08:00
Slava Pestov a8098e3182 specialized-arrays: rename byte-array>T-array to T-array-cast, and make it work with anything that responds to >c-ptr / byte-length 2010-05-18 23:09:34 -04:00
Slava Pestov 627295f094 Language change: tuple slot setter words with stack effect ( value object -- ) are now named FOO<< instead of (>>FOO) 2010-05-06 17:21:02 -04:00
Doug Coleman 4a7845e52c Add [1,b) to math.ranges. Use [1,b] in random.sfmt 2010-01-31 14:48:01 -06:00
Joe Groff ac5d3d5652 remove SIMDS: 2009-11-26 11:15:46 -08:00
Joe Groff b411f1701a make vshuffle-bytes intrinsic for any shuffle mask type 2009-10-19 12:25:55 -05:00
Slava Pestov 2b868bd1c3 random.sfmt: make it endian-agnostic 2009-10-19 05:22:43 -05:00
Doug Coleman 83bc4907d4 load random.sfmt by default, and use it as default random-generator if sse2 is present 2009-10-07 21:05:51 -05:00
Doug Coleman 3d2237c2b8 inline a word in sfmt 2009-10-07 15:27:40 -05:00
Doug Coleman fbdfbe2fa4 correctly correct the SFMT period 2009-10-07 15:06:59 -05:00
Doug Coleman 211eff745a correct the output of random.sfmt 2009-10-07 13:42:37 -05:00
Doug Coleman 19b2466bda add unit test for seeding 2009-10-02 01:55:18 -05:00
Doug Coleman 4cb927722d add seed-random method to random.sfmt, fix formatting 2009-10-02 01:54:17 -05:00
Doug Coleman 907e401542 remove m-n-as-a-slot 2009-10-02 01:32:11 -05:00
Doug Coleman 1239984625 optimizing random.sfmt 2009-10-02 01:18:18 -05:00
Doug Coleman b8e5e84df3 sfmt uses some simd now 2009-10-02 00:40:55 -05:00
Doug Coleman 926ed2d5e1 cleaning up sfmt 2009-10-02 00:21:48 -05:00
Doug Coleman f3ef312e83 initial checkin of random.sfmt so i can refactor it 2009-10-02 00:07:29 -05:00