internal/cmplx64: make Sqrt test pass on arm64

This commit is contained in:
Dan Kortschak
2020-01-12 15:09:01 +10:30
parent d09a8892ec
commit 7c0bd5a093

View File

@@ -168,7 +168,7 @@ func cTolerance(a, b complex64, e float32) bool {
} }
return d < e return d < e
} }
func cVeryclose(a, b complex64) bool { return cTolerance(a, b, 1e-7) } func cVeryclose(a, b complex64) bool { return cTolerance(a, b, 1e-6) }
func cAlike(a, b complex64) bool { func cAlike(a, b complex64) bool {
switch { switch {
case IsNaN(a) && IsNaN(b): case IsNaN(a) && IsNaN(b):