Commit Graph

6897 Commits (95655c26b46e7a55714612a11f1eaac5e9d9d774)

Author SHA1 Message Date
Joe Groff 7583b2bfee Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:
	basis/compiler/codegen/codegen.factor
2009-10-01 23:52:26 -05:00
Joe Groff 8b7a813a08 change vector logical words to reuse the input sequence types so that they work as simd fallbacks 2009-10-01 23:49:53 -05:00
Joe Groff 01736e9bec define simd equal? methods as v= vall? 2009-10-01 23:46:37 -05:00
Slava Pestov 2a4475f85e Fix alias analysis of a ##compare whose input is another ##compare 2009-10-01 23:20:05 -05:00
Slava Pestov 96d593dd7c Merge branch 'master' into improved-aa 2009-10-01 23:16:54 -05:00
Joe Groff 53b265f682 Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:
	basis/compiler/codegen/codegen.factor
2009-10-01 23:14:16 -05:00
Slava Pestov 59e234b251 specialized-arrays: byte-array>A-array calls >c-ptr 2009-10-01 23:12:53 -05:00
Joe Groff 952498ef69 create special intrinsic wrappers for 256-vector>scalar operations so that vall?, vany?, vnone? work on 256-vectors 2009-10-01 23:07:10 -05:00
Slava Pestov 31f39ce32f compiler.cfg.alias-analysis: optimize ##vm-field-ptr and ##alien-global instructions, and optimize out ##compare between values of different alias classes; this optimizes '[ [ >float ] bi@ [ + ] [ - ] 2bi eq? ]' down to an o-op and removes boxing from '[ [ >float ] bi@ [ + ] [ - ] 2bi = ]' 2009-10-01 23:03:17 -05:00
Joe Groff d5c4ec5357 add tests for v=, vany?, vall?, vnone? 2009-10-01 21:24:14 -05:00
Joe Groff f9695951a0 fold test-vector/branch sequences into a test-vector-branch instruction 2009-10-01 19:53:30 -05:00
Slava Pestov c3d81cefe9 compiler.cfg: don't unbox the same value more than once per basic block 2009-10-01 19:41:23 -05:00
Slava Pestov b9577e2b0e compiler.cfg.instructions: remove ##box-float, ##unbox-float, ##box-vector, ##unbox-vector since they can be expressed in terms of ##alien-double, ##set-alien-double, ##alien-vector, ##set-alien-vector, and ##allot 2009-10-01 18:07:50 -05:00
Doug Coleman 34c4bd6d8f add a using 2009-10-01 17:07:57 -05:00
Joe Groff d14f150b58 %test-vector instruction for vany?, vall?, vnone? 2009-10-01 15:35:38 -05:00
Joe Groff 987ced4070 %compare-vector instruction (only does v= for now) 2009-10-01 14:31:37 -05:00
Doug Coleman 5c972d9679 check that the length of checksum-lines is correct for md 2009-10-01 13:48:28 -05:00
Joe Groff 0c8a4717f2 add software vall?, vany?, vnone? words 2009-10-01 13:21:10 -05:00
Keith Lazuka 1a44b22f14 help.markup: new logic for preventing accidental double blank lines
$subsections emits a blank line after the final link so that subsequent span text is nicely spaced away from the group of links. Prior to this bug fix, if you were to put a $heading immediately after a $subsections element, there would be 2 blank lines between them. This fixes it so that there is only a single blank line between them.

I also added a bunch of unit tests for span, block, $heading and $nl layout interactions.
2009-10-01 13:15:28 -04:00
Doug Coleman be110afe27 Merge branch 'master' of git://factorcode.org/git/factor 2009-10-01 11:59:17 -05:00
Doug Coleman ccc69a5ef4 fix bug in random-bytes* when no random-32* exists 2009-10-01 11:58:52 -05:00
Slava Pestov 69829a534d cpu.ppc: fix again 2009-10-01 07:44:14 -05:00
Slava Pestov 0db97d536f math.vectors.simd.functor: don't open-code simd-nth and simd-with if we cannot generate double precision FP code. Should fix illegal instruction trap on CPUs with only SSE1 2009-10-01 07:36:50 -05:00
Joe Groff 5ac5a74cc6 write v? and vmask in terms of bitwise ops 2009-10-01 00:09:25 -05:00
Joe Groff a93f8f66f9 Revert "add a %blend-vector intrinsic for v?"
This reverts commit 21e4b28b67.
2009-09-30 23:40:37 -05:00
Joe Groff 67cc45235d Merge branch 'master' of git://factorcode.org/git/factor 2009-09-30 23:04:04 -05:00
Joe Groff 7db7b63552 add a %blend-vector intrinsic for v? 2009-09-30 23:03:59 -05:00
Doug Coleman 0e97398da8 fix openbsd bootstrap 2009-09-30 21:07:57 -05:00
Slava Pestov e79049ad0a Merge branch 'master' of git://factorcode.org/git/factor into more-simd 2009-09-30 20:05:16 -05:00
Slava Pestov 2384b630b2 math.vectors.simd: use fallbacks for hlshift, hrshift, vshuffle if parameter is not a literal;al; element access in int-4 on x86-64 now sign-extends the value; don't throw error at compile time if parameter for vshuffle does not have enough elements 2009-09-30 20:04:37 -05:00
Joe Groff e56cd5cc12 accept f and t as elements of literal simd vectors, storing binary all-zeroes or all-ones 2009-09-30 19:04:02 -05:00
Doug Coleman e8db7b62a4 Merge branch 'master' of git://factorcode.org/git/factor 2009-09-30 18:52:18 -05:00
Doug Coleman 129b741437 fix the help lints 2009-09-30 18:52:01 -05:00
Slava Pestov a7dd4ad5cc cpu.ppc: update for alien intrinsic changes 2009-09-30 18:22:59 -05:00
Joe Groff b8c2fc6627 Merge branch 'master' of git://factorcode.org/git/factor 2009-09-30 16:18:15 -05:00
Joe Groff f83698948f eradicate string C types from windows.com.* 2009-09-30 16:17:50 -05:00
Keith Lazuka 31e34acc01 images: consolidated test suite for image decoders 2009-09-30 17:01:09 -04:00
Keith Lazuka 6e12c254ef tools.test: added a verbose-tests? flag to control test experiment pprint verbosity
I needed this for my image decode unit tests because I don't want the test results to prettyprint big bitmap byte-arrays.
2009-09-30 16:58:07 -04:00
Doug Coleman ef237777c3 make random-32* the protocol again, add a random-32 word that doesn't scale the returned bits 2009-09-30 15:56:02 -05:00
Keith Lazuka 7484bb73ae images.gif: unit tests now use a PAM reference image to verify decoding 2009-09-30 16:35:51 -04:00
Phil Dawes bc70311e69 ppc asm to pass vm pointer: alien + compiled code 2009-09-30 21:23:53 +01:00
Doug Coleman 9b5690a8ad Merge branch 'master' of git://factorcode.org/git/factor 2009-09-30 14:13:03 -05:00
Doug Coleman 9ca974fc7d Merge branch 'browser' of git://github.com/klazuka/factor 2009-09-30 14:10:17 -05:00
Keith Lazuka f58e913336 help.markup: fix layout bug for "N more results" link in apropos content 2009-09-30 15:06:29 -04:00
Joe Groff e0f3b72c65 break math.vectors docs into subsections 2009-09-30 13:21:25 -05:00
Keith Lazuka 19107de7d8 images.testing: consolidated TIFF/GIF/PNG/PAM test images and wrote PAM unit tests 2009-09-30 13:33:10 -04:00
Joe Groff 2625f2d210 Merge branch 'master' of git://factorcode.org/git/factor 2009-09-30 11:35:40 -05:00
Joe Groff cb646db54a add a "test-mr." word to compiler.cfg.debugger equivalent to "test-mr mr." 2009-09-30 11:34:19 -05:00
Keith Lazuka f297e88987 images.loader: added image encode protocol 2009-09-30 10:00:18 -04:00
Slava Pestov 17b52314dc Merge branch 'gif' of git://github.com/klazuka/factor 2009-09-30 05:15:21 -05:00
Slava Pestov da623ba29a Merge branch 'link' of git://github.com/klazuka/factor 2009-09-30 05:11:21 -05:00
Slava Pestov b677822b76 compiler.cfg.value-numbering: fix overly-zealous ##compare-imm conversion 2009-09-30 05:09:20 -05:00
Slava Pestov cdc7b7e2c7 Various minor compiler tweaks: Combine address calculation with dereferencing in alien accessors; convert SIMD XOR of a vector with itself into an XOR of the destination with itself; convert SIMD unbox of zero vector into XOR of the destination with itself; fix SIMD indexing on x86-64 2009-09-30 05:00:36 -05:00
Doug Coleman 73d2099faf add tests file for random.dummy 2009-09-30 03:23:01 -05:00
Doug Coleman 61583862fa fix seed-random, random-32* -> random-32 2009-09-30 03:22:11 -05:00
Slava Pestov 9210a9a79c Merge branch 'master' of git://factorcode.org/git/factor 2009-09-30 02:21:22 -05:00
Slava Pestov 1da18d06b1 compiler.cfg.value-numbering: add some more rewrite rules, neg/neg, not/not, and a few for SIMD 2009-09-30 02:18:29 -05:00
Joe Groff 7e679e1683 Merge branch 'master' of git://factorcode.org/git/factor 2009-09-30 00:07:45 -05:00
Joe Groff 55ab9c3002 docs for new math.vectors logical ops 2009-09-30 00:07:37 -05:00
Slava Pestov d70b95e4b8 math.vectors.simd: fix bad comparison logic in unit tests 2009-09-29 23:46:21 -05:00
Slava Pestov 0a29e64287 math.functions: ~ now raises an invalid operation FP trap if one of the inputs is NaN 2009-09-29 23:41:08 -05:00
Slava Pestov 86118ce56a generalizations: make napply work with non-literal quotations 2009-09-29 23:28:43 -05:00
Slava Pestov eeb601dade Merge branch 'master' of git://factorcode.org/git/factor 2009-09-29 22:59:58 -05:00
Slava Pestov 80e84a357d math.vectors.simd: add vbroadcast intrinsic, fix integer overflow issues 2009-09-29 22:58:20 -05:00
Joe Groff 1e1072f540 math.matrices.simd versions of frustum-matrix4 and rotation-matrix4 2009-09-29 22:54:11 -05:00
Slava Pestov 810cd7b4bb compiler.cfg.ssa.destruction: don't coalesce registers with different representations, even if they're in the same register class, since this messes up spilling 2009-09-29 22:28:20 -05:00
Joe Groff 5e16592596 add a "vmask" vector op to selectively zero out elements 2009-09-29 18:10:36 -05:00
Slava Pestov 6f2c57144d Merge branch 'master' of git://factorcode.org/git/factor 2009-09-29 04:49:35 -05:00
Slava Pestov f395d83379 math.vectors.simd: add fast intrinsic for 'nth', replace broadcast primitive with shuffles 2009-09-29 04:48:11 -05:00
Slava Pestov 6382aaabd5 Merge branch 'more-simd' 2009-09-28 23:12:48 -05:00
Slava Pestov e40a95c1e1 math.vectors.simd: add vshuffle intrinsic 2009-09-28 23:12:13 -05:00
Joe Groff 29404db2d9 Merge branch 'master' of git://factorcode.org/git/factor 2009-09-28 20:38:03 -05:00
Joe Groff d7db62a145 make byte-arrays and specialized-arrays reveal their elements through the inspector 2009-09-28 20:34:42 -05:00
Joe Groff 02666b2491 catch a one-in-a-million failure in game-input.dinput backend 2009-09-28 19:53:46 -05:00
Slava Pestov 0b0a2c5ce4 unix.statvfs.netbsd: update for C type parser change 2009-09-28 19:38:00 -05:00
Joe Groff 44f393771b change CALLBACK: to use the ABI of the current LIBRARY: and get rid of STDCALL-CALLBACK: 2009-09-28 19:27:28 -05:00
Slava Pestov a8ea929ad9 Work in progress 2009-09-28 17:31:34 -05:00
Doug Coleman 9b64d206ff Merge branch 'master' of git://factorcode.org/git/factor 2009-09-28 17:16:26 -05:00
Doug Coleman 5b8460ad16 fix ui startup 2009-09-28 17:16:16 -05:00
Slava Pestov e1a9b25562 cpu.ppc: update for %unary/binary-float-function change 2009-09-28 16:40:52 -05:00
Slava Pestov 4202211293 cpu.x86: cleanups 2009-09-28 16:38:35 -05:00
Slava Pestov f59b842d9b Merge branch 'master' of git://factorcode.org/git/factor 2009-09-28 16:33:51 -05:00
Slava Pestov 48d3f10c81 Fix some load errors in various places 2009-09-28 16:33:39 -05:00
Doug Coleman be8033a39f limit the byte-reader streams when loading images 2009-09-28 16:29:56 -05:00
Doug Coleman 5b924ff910 move images.http to extra so it can use images.viewer, fix load-http-image 2009-09-28 16:12:12 -05:00
Doug Coleman f51dd8fe2f Merge branch 'master' into png2 2009-09-28 15:59:48 -05:00
Doug Coleman 4fbdcc72aa fix jpeg loading 2009-09-28 15:59:32 -05:00
Doug Coleman d7626b177a fix png loading 2009-09-28 15:59:20 -05:00
Doug Coleman 8755f0bba0 fix a stack effect 2009-09-28 15:59:02 -05:00
Doug Coleman 69229032c2 define a method on stream-element-type, fix a bug in unlimited-input and add a unit test 2009-09-28 15:51:40 -05:00
Doug Coleman 2dd89b4c5d dont load tiff by default 2009-09-28 15:15:42 -05:00
Doug Coleman 49deeb6ed3 Merge branch 'png' of git://github.com/klazuka/factor into png2 2009-09-28 15:02:03 -05:00
Keith Lazuka 47c2864de3 compression.lzw: additional refactoring 2009-09-28 16:01:25 -04:00
Keith Lazuka f5c4fbb10c compression.lzw: better naming 2009-09-28 16:01:24 -04:00
Keith Lazuka 46a768befb compression.lzw: added documentation 2009-09-28 16:01:23 -04:00
Keith Lazuka 53789bef1b definitions.icons: converted TIFF icons to PNG
Slava, don't forget to copy these PNGs into the "/icons" root on docs.factorcode.org
2009-09-28 15:53:39 -04:00
Doug Coleman 1fb7cf37c4 make a png-image type instead of having a singleton class 2009-09-28 14:50:36 -05:00
Doug Coleman bf2cfd0aa6 Merge branch 'png' of git://github.com/klazuka/factor 2009-09-28 14:29:00 -05:00
Doug Coleman 438e848356 fix reverse png filtering with klazuka's idea 2009-09-28 14:20:44 -05:00
Joe Groff 01f526ff28 use PSHUFD for longlong-2 broadcast when dst != src to avoid a %copy 2009-09-28 12:04:08 -05:00