From 4027002db7474eb37633c5e8eccb8eff85876ac0 Mon Sep 17 00:00:00 2001 From: Joe Groff Date: Wed, 25 Nov 2009 20:21:54 -0800 Subject: [PATCH] remove SIMD:s --- basis/io/mmap/mmap-docs.factor | 1 - basis/math/bitwise/bitwise-tests.factor | 1 - basis/math/vectors/simd/simd-docs.factor | 4 ---- extra/benchmark/3d-matrix-vector/3d-matrix-vector.factor | 1 - extra/benchmark/simd-1/simd-1.factor | 1 - extra/benchmark/terrain-generation/terrain-generation.factor | 1 - extra/gpu/demos/bunny/bunny.factor | 1 - extra/grid-meshes/grid-meshes.factor | 1 - extra/math/matrices/simd/simd-tests.factor | 1 - extra/math/matrices/simd/simd.factor | 1 - extra/terrain/terrain.factor | 1 - 11 files changed, 14 deletions(-) diff --git a/basis/io/mmap/mmap-docs.factor b/basis/io/mmap/mmap-docs.factor index 33ba6850a5..3eabfc4e7f 100644 --- a/basis/io/mmap/mmap-docs.factor +++ b/basis/io/mmap/mmap-docs.factor @@ -87,7 +87,6 @@ ARTICLE: "io.mmap.examples" "Memory-mapped file examples" "Normalize a file containing packed quadrupes of floats:" { $code "USING: kernel io.mmap math.vectors math.vectors.simd" "sequences specialized-arrays ;" - "SIMD: float" "SPECIALIZED-ARRAY: float-4" "" "\"mydata.dat\" float-4 [" diff --git a/basis/math/bitwise/bitwise-tests.factor b/basis/math/bitwise/bitwise-tests.factor index d10e4ccc87..a5919d3ec3 100644 --- a/basis/math/bitwise/bitwise-tests.factor +++ b/basis/math/bitwise/bitwise-tests.factor @@ -41,7 +41,6 @@ CONSTANT: b 2 [ 0 ] [ BIN: 0 bit-count ] unit-test [ 1 ] [ BIN: 1 bit-count ] unit-test -SIMD: uint SPECIALIZED-ARRAY: uint SPECIALIZED-ARRAY: uint-4 diff --git a/basis/math/vectors/simd/simd-docs.factor b/basis/math/vectors/simd/simd-docs.factor index 98a7b9273c..540838bdd5 100644 --- a/basis/math/vectors/simd/simd-docs.factor +++ b/basis/math/vectors/simd/simd-docs.factor @@ -74,7 +74,6 @@ $nl { $code """USING: compiler.tree.debugger math.vectors math.vectors.simd ; -SIMD: double SYMBOLS: x y ; [ @@ -86,7 +85,6 @@ SYMBOLS: x y ; { $code """USING: compiler.tree.debugger kernel.private math.vectors math.vectors.simd ; -SIMD: float IN: simd-demo : interpolate ( v a b -- w ) @@ -100,7 +98,6 @@ $nl { $code """USING: compiler.tree.debugger hints math.vectors math.vectors.simd ; -SIMD: float IN: simd-demo : interpolate ( v a b -- w ) @@ -116,7 +113,6 @@ $nl "In the " { $snippet "interpolate" } " word, there is still a call to the " { $link } " primitive, because the return value at the end is being boxed on the heap. In the next example, no memory allocation occurs at all because the SIMD vectors are stored inside a struct class (see " { $link "classes.struct" } "); also note the use of inlining:" { $code """USING: compiler.tree.debugger math.vectors math.vectors.simd ; -SIMD: float IN: simd-demo STRUCT: actor diff --git a/extra/benchmark/3d-matrix-vector/3d-matrix-vector.factor b/extra/benchmark/3d-matrix-vector/3d-matrix-vector.factor index 1b57bb902f..563bf4558c 100644 --- a/extra/benchmark/3d-matrix-vector/3d-matrix-vector.factor +++ b/extra/benchmark/3d-matrix-vector/3d-matrix-vector.factor @@ -1,7 +1,6 @@ USING: kernel locals math math.matrices.simd math.order math.vectors math.vectors.simd prettyprint sequences typed ; QUALIFIED-WITH: alien.c-types c -SIMD: c:float IN: benchmark.3d-matrix-vector : v2min ( xy -- xx ) diff --git a/extra/benchmark/simd-1/simd-1.factor b/extra/benchmark/simd-1/simd-1.factor index ff0cb98a00..e20b82c3c4 100644 --- a/extra/benchmark/simd-1/simd-1.factor +++ b/extra/benchmark/simd-1/simd-1.factor @@ -3,7 +3,6 @@ USING: kernel io math math.functions math.parser math.vectors math.vectors.simd sequences specialized-arrays ; QUALIFIED-WITH: alien.c-types c -SIMD: c:float SPECIALIZED-ARRAY: float-4 IN: benchmark.simd-1 diff --git a/extra/benchmark/terrain-generation/terrain-generation.factor b/extra/benchmark/terrain-generation/terrain-generation.factor index b158dba5dd..41c1152cbd 100644 --- a/extra/benchmark/terrain-generation/terrain-generation.factor +++ b/extra/benchmark/terrain-generation/terrain-generation.factor @@ -1,7 +1,6 @@ ! (c)Joe Groff bsd license USING: io kernel math.vectors.simd terrain.generation threads ; FROM: alien.c-types => float ; -SIMD: float IN: benchmark.terrain-generation : terrain-generation-benchmark ( -- ) diff --git a/extra/gpu/demos/bunny/bunny.factor b/extra/gpu/demos/bunny/bunny.factor index 09853263ce..ea91e226a8 100755 --- a/extra/gpu/demos/bunny/bunny.factor +++ b/extra/gpu/demos/bunny/bunny.factor @@ -11,7 +11,6 @@ specialized-vectors ; FROM: alien.c-types => float ; SPECIALIZED-ARRAY: float SPECIALIZED-VECTOR: uint -SIMD: float IN: gpu.demos.bunny GLSL-SHADER-FILE: bunny-vertex-shader vertex-shader "bunny.v.glsl" diff --git a/extra/grid-meshes/grid-meshes.factor b/extra/grid-meshes/grid-meshes.factor index ebde0b2641..47f649868e 100644 --- a/extra/grid-meshes/grid-meshes.factor +++ b/extra/grid-meshes/grid-meshes.factor @@ -3,7 +3,6 @@ USING: accessors alien.data.map arrays destructors fry grouping kernel math math.ranges math.vectors.simd opengl opengl.gl sequences sequences.product specialized-arrays ; FROM: alien.c-types => float ; -SIMD: float SPECIALIZED-ARRAY: float-4 IN: grid-meshes diff --git a/extra/math/matrices/simd/simd-tests.factor b/extra/math/matrices/simd/simd-tests.factor index 25482c8e1e..b27abcae67 100644 --- a/extra/math/matrices/simd/simd-tests.factor +++ b/extra/math/matrices/simd/simd-tests.factor @@ -3,7 +3,6 @@ USING: classes.struct math.matrices.simd math.vectors.simd math literals math.constants math.functions specialized-arrays tools.test ; QUALIFIED-WITH: alien.c-types c FROM: math.matrices => m~ ; -SIMD: c:float SPECIALIZED-ARRAY: float-4 IN: math.matrices.simd.tests diff --git a/extra/math/matrices/simd/simd.factor b/extra/math/matrices/simd/simd.factor index 97290964eb..4e1fd0e96c 100644 --- a/extra/math/matrices/simd/simd.factor +++ b/extra/math/matrices/simd/simd.factor @@ -4,7 +4,6 @@ math math.combinatorics math.functions math.matrices.simd math.vectors math.vectors.simd sequences sequences.private specialized-arrays typed ; QUALIFIED-WITH: alien.c-types c -SIMD: c:float SPECIALIZED-ARRAY: float-4 IN: math.matrices.simd diff --git a/extra/terrain/terrain.factor b/extra/terrain/terrain.factor index f1da877c3e..55d54d3be1 100644 --- a/extra/terrain/terrain.factor +++ b/extra/terrain/terrain.factor @@ -11,7 +11,6 @@ math.matrices.simd noise ui.gestures combinators.short-circuit destructors grid-meshes math.vectors.simd ; QUALIFIED-WITH: alien.c-types c SPECIALIZED-ARRAY: c:float -SIMD: c:float IN: terrain CONSTANT: FOV $[ 2.0 sqrt 1 + ]