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?
db4
Joe Groff 2011-11-13 16:09:30 -08:00
parent dd8bb5b673
commit 54dcd8a4ea
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ TUPLE: simd-test-failure
word '[ _ execute ] ; word '[ _ execute ] ;
: remove-float-words ( alist -- alist' ) : 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' ) : remove-integer-words ( alist -- alist' )
{ vlshift vrshift v*high v*hs+ } unique assoc-diff ; { vlshift vrshift v*high v*hs+ } unique assoc-diff ;