Daniel Ehrenberg
|
4af88ff9ff
|
Making more vocabs use require-when
|
2010-03-18 01:39:30 -04:00 |
Slava Pestov
|
af0ddd5985
|
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 |
Slava Pestov
|
ff172f4132
|
Make specialized arrays and SIMD types final so that typed can unbox them
|
2010-02-18 02:39:40 +13:00 |
Slava Pestov
|
f01487eb83
|
A few documentation fixes
|
2010-02-17 00:05:36 +13:00 |
Slava Pestov
|
f804c9c422
|
Move compile-call and related words only meant to be used for debugging to compiler.test
|
2010-01-23 00:39:56 +13:00 |
Doug Coleman
|
4c71d71907
|
random is generic now -- iota random -> random
|
2010-01-14 12:48:57 -06:00 |
Slava Pestov
|
df4fb4a3ee
|
Removing integers-as-sequences
|
2010-01-15 07:15:33 +13:00 |
Joe Groff
|
6b9c4254ad
|
move simd operation methods onto simd-128 instead of concrete classes to save image space
|
2009-12-05 21:19:17 -08:00 |
Joe Groff
|
2b2be5f121
|
Merge branch 'master' of git://factorcode.org/git/factor
|
2009-12-05 17:18:49 -08:00 |
Joe Groff
|
3e40a36c50
|
fix simd tests
|
2009-12-05 17:17:16 -08:00 |
Joe Groff
|
d412845b41
|
add v*high, v*hs+, vsad, and vavg to simd fuzz tests
|
2009-12-05 15:42:41 -08:00 |
Joe Groff
|
af39e5d52c
|
missing USING:s
|
2009-12-05 15:38:57 -08:00 |
Slava Pestov
|
abe72ae7ae
|
math.vectors.simd: ensure that set-alien-vector is open-coded in the actual set-nth-unsafe method on SIMD specialized arrays, not just inlined instances
|
2009-12-05 18:20:57 -05:00 |
Joe Groff
|
104c29aabc
|
simd intrinsic implementation for v*high, v*hs+, vavg, and vsad
|
2009-12-05 14:52:18 -08:00 |
Joe Groff
|
1845915dc6
|
add v*high, v*hs+, vavg, and vsad operations to math.vectors
|
2009-12-05 11:32:31 -08:00 |
Joe Groff
|
36b0b65320
|
move sequence instance to individual SIMD types rather than simd-128 parent type so that "hashcode*" doesn't attempt to use the sequence implementation of hashcode on abstract simd-128 objects
|
2009-12-04 13:22:59 -08:00 |
Joe Groff
|
66d0cafa94
|
fix buggy simd intrinsics
|
2009-11-26 13:28:40 -08:00 |
Joe Groff
|
0795c60b83
|
"norm" doesn't need to be generic, "norm-sq sqrt" always works
|
2009-11-26 11:15:35 -08:00 |
Joe Groff
|
7da80f65e7
|
trick math.vectors.simd into making nicer quotations
|
2009-11-25 20:24:09 -08:00 |
Joe Groff
|
4027002db7
|
remove SIMD:s
|
2009-11-25 20:21:54 -08:00 |
Joe Groff
|
578a0e3fd5
|
math.vectors.simd.cords vocab that defines vector cords
|
2009-11-25 18:01:58 -08:00 |
Joe Groff
|
46f0aa6421
|
move cords to sequences.cords
|
2009-11-24 22:56:42 -08:00 |
Joe Groff
|
9128f1f160
|
remove mentions of 256-bit vectors from math.vectors.simd
|
2009-11-24 22:26:16 -08:00 |
Joe Groff
|
d344023b1c
|
update math.vectors.conversion
|
2009-11-24 20:53:40 -08:00 |
Joe Groff
|
c98eb84943
|
make math.vectors.simd tests pass again
|
2009-11-24 18:30:12 -08:00 |
Joe Groff
|
d94ffe6d78
|
scalar fallbacks for simd intrinsics
|
2009-11-23 21:24:55 -08:00 |
Joe Groff
|
6794d14652
|
typo
|
2009-11-19 12:17:14 -08:00 |
Joe Groff
|
152b0d2df5
|
break simd intrinsics into a separate vocab so they can be intrinsified before the simd methods compile
|
2009-11-19 11:53:46 -08:00 |
Joe Groff
|
736be27162
|
move methods back into simd functor so the intrinsics can compile
|
2009-11-19 11:29:15 -08:00 |
Joe Groff
|
c07f3212f9
|
fix effect of set-alien-vector
|
2009-11-18 22:18:42 -08:00 |
Joe Groff
|
a3e4ecfc7d
|
enable simd intrinsics and fix first-pass compiler errors
|
2009-11-18 20:32:05 -08:00 |
Joe Groff
|
243e5b43ce
|
fixes for stronger stack checker
|
2009-11-14 22:25:00 -06:00 |
Joe Groff
|
f544982fda
|
Merge branch 'master' of git://factorcode.org/git/factor into simd-cleanup
Conflicts:
basis/math/vectors/simd/functor/functor.factor
|
2009-11-14 21:02:39 -06:00 |
Joe Groff
|
8a8699ac98
|
backend fixups
|
2009-11-14 20:59:03 -06:00 |
Joe Groff
|
e323071c44
|
sever lingering dependencies on simd from compiler
|
2009-11-11 16:08:40 -06:00 |
Slava Pestov
|
e9a7191050
|
Fix struct field alignment on PowerPC
|
2009-11-10 19:34:14 -06:00 |
Slava Pestov
|
425e9d0dde
|
Fix some test failures
|
2009-11-10 16:48:06 -06:00 |
Joe Groff
|
75d04922b9
|
Merge branch 'master' into simd-cleanup
Conflicts:
basis/math/vectors/simd/functor/functor.factor
|
2009-11-05 11:27:08 -06:00 |
Joe Groff
|
4d54f27cd1
|
more intrinsic madness
|
2009-11-05 09:52:57 -06:00 |
Slava Pestov
|
2b1a26228b
|
Align stack pointer on non-Mac OS X x86-32 platforms, and use aligned loads/stores for SIMD values
|
2009-11-03 23:51:44 -06:00 |
Joe Groff
|
b98742be30
|
typos
|
2009-11-03 21:38:55 -06:00 |
Joe Groff
|
73d2a75644
|
remove math.vectors .specialization, .simd.functor, .simd.intrinsics
|
2009-11-02 15:00:39 -06:00 |
Joe Groff
|
9cf3ab3da1
|
redo math.vectors.simd to use generics for specialization
|
2009-11-02 14:59:07 -06:00 |
Joe Groff
|
b858860a67
|
add ##shl-vector-imm and ##shr-vector-imm insn variants. use merge/shr instead of compare/merge to do signed unpacks
|
2009-10-30 00:41:19 -05:00 |
Joe Groff
|
3fbe722561
|
Merge branch 'master' of http://factorcode.org/git/factor
Conflicts:
basis/locals/locals.factor
basis/peg/peg.factor
extra/infix/infix.factor
|
2009-10-28 16:17:24 -05:00 |
Joe Groff
|
6e1bffb1c5
|
update existing code to use :> ( ) when possible
|
2009-10-28 16:11:33 -05:00 |
Doug Coleman
|
bd13e018dd
|
memq? -> member-eq?, sorted-memq? -> sorted-member-eq?
|
2009-10-28 15:02:00 -05:00 |
Joe Groff
|
8a6b0a1453
|
generate unsigned vector comparison fallbacks using min/max or xor/signed compare
|
2009-10-20 22:30:57 -05:00 |
Joe Groff
|
cb36111a3c
|
generate better fallback code for vmin/vmax intrinsics
|
2009-10-20 19:22:38 -05:00 |
Joe Groff
|
b411f1701a
|
make vshuffle-bytes intrinsic for any shuffle mask type
|
2009-10-19 12:25:55 -05:00 |
Joe Groff
|
0653bae7ec
|
scuttle bogus math.vectors.simd test
|
2009-10-17 18:47:31 -05:00 |
Joe Groff
|
b9d2c068a4
|
fix sporadic "fall-through in cond" failure in float math.vectors.simd tests
|
2009-10-17 16:54:51 -05:00 |
Joe Groff
|
421b61f0e8
|
fix type propagation information put on non-SIMD specializations of vany?, vall?, vnone?
|
2009-10-17 11:21:08 -05:00 |
Joe Groff
|
7f001ee312
|
make hlshift/hrshift simd tests endian agnostic
|
2009-10-17 00:34:35 -05:00 |
Slava Pestov
|
4ed91ff5ee
|
syntax: fix docs for :
|
2009-10-16 23:45:10 -05:00 |
Joe Groff
|
dd6308ead5
|
improve error reporting of failing simd fallbacks
|
2009-10-16 16:34:26 -05:00 |
Slava Pestov
|
48f4799505
|
math.vectors.simd: fix typos in docs reported by Ed Swartz
|
2009-10-13 05:13:22 -05:00 |
Joe Groff
|
1407804393
|
change the simd-struct tests to cover integer vector slots
|
2009-10-10 12:23:25 -05:00 |
Joe Groff
|
d9002127fa
|
have vshuffle accept simd-128 variable byte shuffles
|
2009-10-10 11:30:11 -05:00 |
Joe Groff
|
3bc097f6ff
|
rename ##shuffle-vector to ##shuffle-vector-imm, and add a new ##shuffle-vector for dynamic shuffles. have vshuffle use ##shuffle-vector to do word and byte shuffles on x86
|
2009-10-09 21:26:27 -05:00 |
Joe Groff
|
471c86a110
|
generate better code for vabs when instruction isn't available instead of using software fallback (-0.0 andn for floats, x > 0 ? x : -x for signed ints, nop for unsigned ints)
|
2009-10-09 14:24:55 -05:00 |
Joe Groff
|
01f5d392be
|
implement vneg as an intrinsic in terms of load -0, subtract
|
2009-10-09 13:16:39 -05:00 |
Joe Groff
|
07aa2620c6
|
add SIMDS: ... ; and SPECIALIZED-ARRAYS: ... ; syntax
|
2009-10-09 10:43:37 -05:00 |
Joe Groff
|
f2c9eb79e2
|
decompose %unpack-vector-head/tail into %compare-vector/%merge-vector-head/tail or %tail>head-vector/%unpack-vector-head insns when there isn't an actual unpack insn; get rid of fake x86 implementations
|
2009-10-07 14:09:46 -05:00 |
Joe Groff
|
47cfb7d3a5
|
fix ##load-constant/##scalar>vector folding when constant is a fixnum
|
2009-10-07 12:46:08 -05:00 |
Joe Groff
|
34def34481
|
don't generate a ##not-vector instruction if the cpu doesn't have one; instead, fall back to a ##fill-vector/##xor-vector combo. get rid of pretend %not-vector in cpu.x86
|
2009-10-07 11:59:36 -05:00 |
Joe Groff
|
8873b7939a
|
fix math.vectors.simd test load failure
|
2009-10-07 11:56:57 -05:00 |
Joe Groff
|
4d4da7ac23
|
break vector conversion intrinsics off to a math.vectors.conversion.backend vocab so the whole conversion vocab doesn't get sucked in by the compiler
|
2009-10-06 21:28:33 -05:00 |
Joe Groff
|
785f8620fd
|
glue conversion intrinsics to instructions
|
2009-10-06 20:13:38 -05:00 |
Joe Groff
|
fbe810fc3b
|
rename SIMD vmerge and kids to (vmerge), make new vmerge more generally useful
|
2009-10-05 17:55:39 -05:00 |
Joe Groff
|
7ed8f00b0f
|
go back to using random instead of uniform-random-float in math.vectors.simd tests because the software and SIMD implementations of norm and v. can sporadically diverge when their different operation orders lead to cancellation of catastrophically small inputs
|
2009-10-03 22:57:04 -05:00 |
Joe Groff
|
626954a071
|
fix v? software fallback
|
2009-10-03 22:37:45 -05:00 |
Joe Groff
|
0c9c3d4859
|
add %merge-vector-head and %merge-vector-tail instructions to back vmerge
|
2009-10-03 21:48:53 -05:00 |
Joe Groff
|
426e560a6b
|
sprinkle some NaNs onto math.vectors.simd fuzz tests to improve flavor
|
2009-10-03 11:47:02 -05:00 |
Joe Groff
|
04bb03bb61
|
add intrinsics for v<=, v<, v=, v>, v>=, vunordered?
|
2009-10-03 11:29:34 -05:00 |
Joe Groff
|
38f413a8a6
|
add intrinsic for vnot/vbitnot
|
2009-10-02 20:04:28 -05:00 |
Doug Coleman
|
67167cf9ea
|
Merge branch 'docs' of git://github.com/klazuka/factor into klazuka
Conflicts:
basis/math/vectors/vectors-docs.factor
|
2009-10-02 15:58:45 -05:00 |
Joe Groff
|
aa3392e50f
|
implement vand, vor, vandn, and vxor as bitwise intrinsics for simd types
|
2009-10-02 14:17:01 -05:00 |
Keith Lazuka
|
405e5d015b
|
docs: change $subsection to $subsections
|
2009-10-02 12:15:48 -04: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 |
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 |
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 |
Joe Groff
|
d5c4ec5357
|
add tests for v=, vany?, vall?, vnone?
|
2009-10-01 21:24:14 -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 |
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
|
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 |
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 |
Slava Pestov
|
d70b95e4b8
|
math.vectors.simd: fix bad comparison logic in unit tests
|
2009-09-29 23:46:21 -05:00 |
Slava Pestov
|
80e84a357d
|
math.vectors.simd: add vbroadcast intrinsic, fix integer overflow issues
|
2009-09-29 22:58:20 -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
|
e40a95c1e1
|
math.vectors.simd: add vshuffle intrinsic
|
2009-09-28 23:12:13 -05:00 |
Slava Pestov
|
a8ea929ad9
|
Work in progress
|
2009-09-28 17:31:34 -05:00 |
Slava Pestov
|
48d3f10c81
|
Fix some load errors in various places
|
2009-09-28 16:33:39 -05:00 |
Slava Pestov
|
9a06e6f424
|
math.vectors.simd: add intrinsic for int-4-boa, uint-4-boa, fix tests for C type parser change, fix software fallback for horizontal shifts
|
2009-09-28 06:34:22 -05:00 |
Slava Pestov
|
b2ea3afd84
|
math.vectors.simd: add hlshift, hrshift (128-bit shift), vbitandn intrinsics
|
2009-09-28 02:17:46 -05:00 |