From 54dcd8a4eaf481d767a97fa3c2cf3a45a34aad7d Mon Sep 17 00:00:00 2001 From: Joe Groff Date: Sun, 13 Nov 2011 16:09:30 -0800 Subject: [PATCH] math.vectors.simd: don't try distance on int types "v- norm" doesn't work right for uint-4s because of underflow, but who's going to call "distance" on a uint vector? --- basis/math/vectors/simd/simd-tests.factor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basis/math/vectors/simd/simd-tests.factor b/basis/math/vectors/simd/simd-tests.factor index 33961cd12b..8f9f2b5daf 100644 --- a/basis/math/vectors/simd/simd-tests.factor +++ b/basis/math/vectors/simd/simd-tests.factor @@ -235,7 +235,7 @@ TUPLE: simd-test-failure word '[ _ execute ] ; : remove-float-words ( alist -- alist' ) - { vsqrt n/v v/n v/ normalize } unique assoc-diff ; + { distance vsqrt n/v v/n v/ normalize } unique assoc-diff ; : remove-integer-words ( alist -- alist' ) { vlshift vrshift v*high v*hs+ } unique assoc-diff ;