Commit Graph

323 Commits (71952f702a4c07ce1615934d6ad7fc61563e0460)

Author SHA1 Message Date
Slava Pestov 63bf76cc1e alien.complex: fix tests 2009-09-24 12:59:56 -05:00
Slava Pestov bbbb207dab Some fixes and cleanups in math.vectors
- Tighten up type inference for operations on complex float arrays
- Fix v. to have correct behavior with complex numbers
- Rename v<< and v>> to vlshift and vrshift to avoid clashing with v>> accessor
2009-09-24 06:58:33 -05:00
Slava Pestov 7ea8832556 Tweaks to reduce deployed image size 2009-09-24 06:24:43 -05:00
Slava Pestov dfc9fd071e Add longlong-2, ulonglong-2, longlong-4, ulonglong-4 SIMD types, fix int-4 multiplication on SSE2 2009-09-23 20:23:25 -05:00
Slava Pestov 0f0bf667b5 Merge branch 'master' of git://factorcode.org/git/factor into integer-simd 2009-09-21 17:58:24 -05:00
Joe Groff 6ce8eba961 prettyprint CALLBACK: defs 2009-09-21 14:14:12 -05:00
Joe Groff 0ff319c409 docs for C type words 2009-09-21 13:39:55 -05:00
Joe Groff 55988828bf update alien docs to talk about C types as words 2009-09-21 13:20:01 -05:00
Joe Groff 00fa7f73fb add CALLBACK: syntax that defines a typedef and an alien-callback constructor word for function pointer types. update some code in iokit.hid and windows.dinput to use CALLBACK: instead of TYPEDEF:/word pairs 2009-09-21 11:59:41 -05:00
Joe Groff b09006bba9 include LIBRARY: in FUNCTION: synopsis 2009-09-20 23:59:43 -05:00
Slava Pestov 9d90bdd439 Fix conflict 2009-09-20 23:18:07 -05:00
Slava Pestov ea44ea3522 math.vectors.simd: add saturated arithmetic operations 2009-09-20 23:16:02 -05:00
Joe Groff 08d9d0ad28 fix synopsis for C-TYPE:, TYPEDEF:, and FUNCTION: so they properly show IN: clause 2009-09-20 23:12:31 -05:00
Slava Pestov e77341b90c math.vectors.simd: redesign to be more flexible, integer SIMD work in progress 2009-09-20 02:08:32 -05:00
Joe Groff 076ab42dc3 move some allocation words that don't really have much to do with c types out of alien.c-types into a new alien.data vocab 2009-09-17 22:36:05 -05:00
Joe Groff 8f336b4ec0 alien.fortran can't piggyback the alien.parser arg parser anymore 2009-09-16 21:24:10 -05:00
Joe Groff 263ce45932 fix resolve-pointer-type 2009-09-16 20:54:57 -05:00
Joe Groff 58756c27c5 have typedefs take on the old type's pointer type even when the new type is a word and the old a string 2009-09-16 17:36:50 -05:00
Joe Groff 40620d470f allow word c-types and definitions to coexist 2009-09-16 17:18:19 -05:00
Joe Groff e70c063e61 fix alien-function-word predicate 2009-09-16 14:17:13 -05:00
Joe Groff fc5500a0dc oops... word c-types can be structs too 2009-09-16 13:11:53 -05:00
Joe Groff b403ba5c17 fix FUNCTION: prettyprint when function has no arguments 2009-09-16 10:24:03 -05:00
Joe Groff 6dc6886bd9 typedefs share their original type's pointer definition 2009-09-15 22:58:07 -05:00
Joe Groff 2bbd29a561 prettyprinting for FUNCTION: definitions 2009-09-15 22:39:25 -05:00
Joe Groff b629391477 fix typedef prettyprinting 2009-09-15 22:10:41 -05:00
Joe Groff 26026ff6de fix bug in pointer type parsing 2009-09-15 22:10:16 -05:00
Joe Groff 3b4330fcf6 get things to a point where they bootstrap again 2009-09-15 21:43:18 -05:00
Joe Groff ab8abeaee4 Merge branch 'master' into c-type-words 2009-09-15 19:14:41 -05:00
Joe Groff 4d16c569f0 struct classes now make their own C type without help from alien.structs. remove alien.structs dependencies from everywhere outside of alien and compiler, and have the FFI handle both alien.structs and classes.struct c-types 2009-09-15 17:38:49 -05:00
Slava Pestov 9382c67437 alien.syntax: improve C-ENUM: docs 2009-09-15 16:24:58 -05:00
Joe Groff 35b76b83af convert compiler cpu backends to use c-type words 2009-09-15 16:08:42 -05:00
Joe Groff ac41416953 create words for c-types 2009-09-15 15:18:54 -05:00
Slava Pestov a2b864e4f5 ALIEN: now reads a hexadecimal integer instead of a decimal one, since in general hex is more useful for addresses 2009-09-12 21:17:53 -05:00
Slava Pestov 91e7e1eeea Fix the build 2009-09-10 00:47:01 -05:00
Slava Pestov 7f2e2b1777 Specialized array overhaul
- Replace hand-written specialized-arrays.* subvocabularies with new system; instead of USE:ing specialized-arrays.T, do SPECIALIZED-ARRAY: T
- Ditto for specialized-vectors; use SPECIALIZED-VECTOR:
- io.mmap.functor: removed entirely, use <mapped-array> instead
- struct-arrays and struct-vectors have been removed because specialized arrays and vectors subsume them entirely
2009-09-09 22:33:34 -05:00
Slava Pestov bbca00e2ae Fix conflicts 2009-09-07 23:51:25 -05:00
Slava Pestov a054ec3d64 specialized-arrays.direct is no more; instead, every specialized-array.<foo> vocabulary has a <direct-T-array> constructor 2009-09-04 22:01:55 -05:00
Slava Pestov 4d5a4222b6 More SIMD work
- Rename SIMD types and register representations: <type>-<count> rather than <count><type>-array
- Make a functor to define 256-bit vector types, use it to define float-8 type
- Make SIMD instructions pure-insns so that they participate in value numbering
2009-09-03 20:58:56 -05:00
Joe Groff 522f426ba7 fix help lint failures 2009-09-01 13:04:00 -05:00
Joe Groff 0f1270720d fix bootstrap 2009-08-30 20:09:43 -05:00
Joe Groff 0df9884ee5 change c-type-* to c-* everywhere 2009-08-30 19:05:29 -05:00
Joe Groff 361cc04b02 rather than deprecate <c-array>, replace it with <c-type-array> . to stay consistent, rename <c-type-direct-array> to <c-direct-array> and require-c-type-arrays to require-c-arrays 2009-08-30 18:41:38 -05:00
Joe Groff be406fa964 fix alien.complex unboxer 2009-08-29 23:18:31 -05:00
Joe Groff 4d8ed23db5 add non-initializing (malloc-array) and (malloc-object) for kicks 2009-08-29 22:42:48 -05:00
Joe Groff db7eb4e27a change alien.complex to use struct classes 2009-08-29 20:20:25 -05:00
Joe Groff a71f242578 change malloc-object back to using calloc 2009-08-29 15:28:31 -05:00
Joe Groff 0e8fe01d11 change malloc-object and <c-object> not to be in terms of malloc-array and <c-array> 2009-08-29 12:45:59 -05:00
Joe Groff 64baa58a3d typo in alien.c-types docs 2009-08-29 12:23:09 -05:00
Joe Groff 8a9d0e13bb deprecate <c-array>, and make malloc-array box its returned buffer in a direct array 2009-08-29 11:15:23 -05:00
Joe Groff b8978446d9 Merge branch 'master' of git://factorcode.org/git/factor 2009-08-27 21:51:15 -05:00