From 8d66b14e597e6877b6a30e3cb8e20c3430849fe1 Mon Sep 17 00:00:00 2001 From: Joe Groff Date: Sun, 23 May 2010 23:18:02 -0700 Subject: [PATCH] math.vectors.simd.intrinsics: use instead of X-array-cast to construct view over fallback byte-arrays to avoid redundant array size checking --- .../vectors/simd/intrinsics/intrinsics.factor | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/basis/math/vectors/simd/intrinsics/intrinsics.factor b/basis/math/vectors/simd/intrinsics/intrinsics.factor index 04e43c7f7e..13afdef58a 100644 --- a/basis/math/vectors/simd/intrinsics/intrinsics.factor +++ b/basis/math/vectors/simd/intrinsics/intrinsics.factor @@ -59,16 +59,16 @@ SYNTAX: SIMD-INTRINSIC:: : [byte>rep-array] ( rep -- class ) { - { char-16-rep [ [ char-array-cast ] ] } - { uchar-16-rep [ [ uchar-array-cast ] ] } - { short-8-rep [ [ short-array-cast ] ] } - { ushort-8-rep [ [ ushort-array-cast ] ] } - { int-4-rep [ [ int-array-cast ] ] } - { uint-4-rep [ [ uint-array-cast ] ] } - { longlong-2-rep [ [ longlong-array-cast ] ] } - { ulonglong-2-rep [ [ ulonglong-array-cast ] ] } - { float-4-rep [ [ float-array-cast ] ] } - { double-2-rep [ [ double-array-cast ] ] } + { char-16-rep [ [ 16 ] ] } + { uchar-16-rep [ [ 16 ] ] } + { short-8-rep [ [ 8 ] ] } + { ushort-8-rep [ [ 8 ] ] } + { int-4-rep [ [ 4 ] ] } + { uint-4-rep [ [ 4 ] ] } + { longlong-2-rep [ [ 2 ] ] } + { ulonglong-2-rep [ [ 2 ] ] } + { float-4-rep [ [ 4 ] ] } + { double-2-rep [ [ 2 ] ] } } case ; foldable : [>rep-array] ( rep -- class )