Commit Graph

119 Commits (2c67a5cd78e5dcffd7146e6fd0eb95f810a497e1)

Author SHA1 Message Date
Doug Coleman e0824a43a0 specialized-arrays: Don't generate malloc-foo-array words. Use 4 \ double malloc-array instead. 2012-09-26 16:25:20 -07:00
Doug Coleman 3218730092 specialized-array: The day of doing everything twice. 2012-08-25 22:53:22 -07:00
Doug Coleman 8d4ded66dd specialized-arrays: Don't leak in unit test. 2012-08-25 18:38:44 -07:00
Joe Groff e516accf18 specialized-arrays: update tests 2011-11-28 18:55:20 -08:00
Joe Groff eee483654a use radix literals 2011-11-23 19:03:40 -08:00
Doug Coleman be9f8a99f0 Rename lookup to lookup-word. 2011-11-06 16:00:00 -08:00
Joe Groff e07f2d0c8d specialized-arrays: fill in missing manifest bits 2011-10-17 21:23:10 -07:00
Joe Groff e7009459bf specialized-arrays: direct-slice for byte-arrays
Implement nth-c-ptr and direct-like for byte-arrays so that direct-slice over a byte-array makes a uchar-array{ } over a part of the byte-array
2011-10-17 21:23:06 -07:00
John Benediktsson 95399b7dcf specialized-arrays: remove unused -cast. 2011-09-26 19:03:07 -07:00
John Benediktsson 644a671e44 specialized-arrays: fix tests for >c-array change. 2011-09-26 16:55:58 -07:00
John Benediktsson 0e3d598e69 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
Slava Pestov 25fb472f73 Fix unit test failures caused by alien.data change 2010-12-25 22:34:12 -08:00
Slava Pestov 55fd15c45a 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 5de15c960e specialized-arrays: fix stack effect of malloc-T-array in docs 2010-11-19 19:53:43 -08:00
Doug Coleman 40bdadcac4 Remove many uses of <int> and *int etc 2010-10-25 12:49:12 -05:00
Slava Pestov f16e660805 mirrors: rename enumerated-sequence to inspected-sequence 2010-06-11 17:14:15 -04:00
Joe Groff 7e0ade0972 classes.struct: fix some bugs in binary-zero?, add unit tests 2010-06-10 16:49:59 -07:00
Joe Groff d0d85e9fb0 specialized-arrays, specialized-vectors: add direct-slice, direct-head, direct-tail, etc. words for creating specialized-arrays over subsets of specialized sequences 2010-06-08 15:00:11 -07:00
Slava Pestov b8ec5c6176 Stack allocation improvements
- New with-out-parameters combinator
- Inhibit tail call optimization in frames with local allocation, to ensure that passing a stack allocated value to the last word in the quotation works
- local allocations are now aligned properly
- spill slots are now aligned properly aligned in frames which have parameter and local allocation areas
2010-05-22 02:37:00 -04:00
Slava Pestov 630aef00cb specialized-arrays: fix typo 2010-05-19 03:23:26 -04:00
Slava Pestov 40f58f27d6 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 ae24eb8f97 alien.c-types: cleanup 2010-05-04 19:33:55 -04:00
Slava Pestov bb0579ecf9 Updating tests for recent compiler changes 2010-05-03 17:34:30 -04:00
Daniel Ehrenberg d9878f81d7 Changing require-when usages to the new syntax for require-when 2010-04-18 14:29:24 -05:00
Slava Pestov f733693ec7 classes.struct, specialized-arrays: fix unit tests to work when forget-tests? is on 2010-04-12 18:29:47 -07:00
Daniel Ehrenberg f2f80dadc7 Updating code to use require-when rather than vocab [ require ] when 2010-03-18 01:13:37 -04:00
Joe Groff 0c71fcccc7 lexer: add "each-token" and "map-tokens", which are equivalent to "parse-token _ each/map" but incremental. update a smattering of parsing words (such as USING:, SYMBOLS:, etc.) to use each-token/map-tokens 2010-02-28 22:19:43 -08:00
Slava Pestov 2dde82ffff Slices over specialized arrays can now be passed to C functions, written to binary output streams, and given to malloc-byte-array 2010-02-25 04:50:31 +13:00
Slava Pestov c1e7a3ffc2 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
Joe Groff 47b4b10d03 scrub memory>struct calls made redundant 2010-02-22 12:22:29 -08:00
Joe Groff 1fdbd49dca specialized-arrays: fix underlying-type so it always returns void* for pointer types 2010-02-21 23:13:31 -08:00
Joe Groff 77ea9f1160 more implementation of pointer c-types. make it so that { char* binary } acts like a real pointer to char instead of stringifying, and add byte* typedef for { char* binary } 2010-02-21 20:58:21 -08:00
Joe Groff 64e6f08b59 use a "pointer" wrapper tuple to indicate pointer types instead of the current slipshod approach 2010-02-21 16:27:36 -08:00
Joe Groff 866f6ada18 ditch string c-types 2010-02-21 10:58:21 -08:00
Slava Pestov 95ead468f5 specialized-arrays: generate slightly more efficient byte-array>T-array words 2010-02-20 12:05:12 +13:00
Slava Pestov 7a995794e2 Make specialized arrays and SIMD types final so that typed can unbox them 2010-02-18 02:39:40 +13:00
Doug Coleman 07f6da4c85 Fix using 2010-01-22 13:24:50 -06:00
Slava Pestov 98f3eae5fe Fix performance regression in vector ops on specialized arrays, tweak definition of <slice> and 2map-reduce to generate fewer conditionals 2010-01-19 17:48:10 +13:00
Slava Pestov 045b657c29 specialized-arrays: don't define useless empty T-sequence mixin 2010-01-16 20:19:35 +13:00
Joe Groff c7f4284710 add v*high, v*hs+, vavg, and vsad operations to math.vectors 2009-12-05 11:32:31 -08:00
Joe Groff 5a099992f4 fix specialized-array vs methods to work when c-type is also a : word 2009-12-04 13:22:01 -08:00
Joe Groff 0f7f93d0fd add methods to vs+/vs-/vs* on specialized-arrays so that they saturate as well 2009-12-04 12:43:50 -08:00
Joe Groff ebcaaa0d64 Merge branch 'master' into simd-cleanup 2009-11-26 16:14:46 -08:00
Slava Pestov 08b6ebc7fa Factor source files should not be executable 2009-11-21 17:50:43 -06:00
Slava Pestov 2ad5796b6a Update a few places that used string C type names to use words; fixes some deploy tests 2009-11-20 03:21:48 -06:00
Slava Pestov 6d0598a385 heap-size now has a partial-eval instead of being foldable, and the partial-eval adds a dependency on the C type word. Fixes problem where redefining a struct didn't update specialized array 2009-11-15 11:26:37 -06:00
Joe Groff db1ae26801 sever lingering dependencies on simd from compiler 2009-11-11 16:08:40 -06:00
Doug Coleman a57e990af7 parsed -> suffix!, add append! 2009-10-28 13:38:27 -05:00
Slava Pestov 34d3d4962a change-each -> map!, deep-change-each -> deep-map! 2009-10-27 22:32:56 -05:00
Slava Pestov d9796a577c mirrors: don't depend on specialized-arrays, it pulls in too much 2009-10-23 04:24:20 -05:00