提交 30e6ffb1 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Use same comparison in both snippets

上级 09f99749
......@@ -138,7 +138,7 @@ def detect_macos_sdot_bug():
float x[5] = {0, 1, 2, 3, 4};
float r = sdot_(&Nx, x, &Sx, x, &Sx);
if (fabs(r - 30.f) > 1e-6)
if ((r - 30.f) > 1e-6 || (r - 30.f) < -1e-6)
{
return -1;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论