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
parent
dd8bb5b673
commit
54dcd8a4ea
|
@ -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 ;
|
||||
|
|
Loading…
Reference in New Issue