mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-28 01:04:23 +01:00
Intel compiler hates floats
This commit is contained in:
parent
cf937f2ad3
commit
dcc12eb28a
@ -168,8 +168,8 @@ TEST(VectorBase, Normalization) {
|
|||||||
float fv[2] = {1, 0};
|
float fv[2] = {1, 0};
|
||||||
FasTC::VectorBase<float, 2> v2f (fv);
|
FasTC::VectorBase<float, 2> v2f (fv);
|
||||||
v2f.Normalize();
|
v2f.Normalize();
|
||||||
EXPECT_EQ(v2f[0], 1);
|
EXPECT_NEAR(v2f[0], 1, kEpsilon);
|
||||||
EXPECT_EQ(v2f[1], 0);
|
EXPECT_NEAR(v2f[1], 0, kEpsilon);
|
||||||
|
|
||||||
// Normalized vector should be sqrt(2) for each axis, although
|
// Normalized vector should be sqrt(2) for each axis, although
|
||||||
// this can't be represented as integers...
|
// this can't be represented as integers...
|
||||||
|
Loading…
Reference in New Issue
Block a user