Removed reliance on sinf/cosf CRT functions.

This commit is contained in:
Branimir Karadžić
2018-01-14 19:13:34 -08:00
parent 44fa4652b1
commit 14521c7406
4 changed files with 91 additions and 9 deletions

View File

@@ -52,10 +52,25 @@ TEST_CASE("libm", "")
REQUIRE(bx::equal( 0.89f, bx::fract( 13.89f), 0.000001f) );
REQUIRE(bx::equal(-0.89f, bx::fract(-13.89f), 0.000001f) );
for (float xx = 0.0f; xx < 100.0f; xx += 0.1f)
for (float xx = -100.0f; xx < 100.0f; xx += 0.1f)
{
REQUIRE(bx::equal(bx::pow(1.389f, xx), ::pow(1.389f, xx), 0.00001f) );
}
for (float xx = -100.0f; xx < 100.0f; xx += 0.1f)
{
REQUIRE(bx::equal(bx::sin(xx), ::sin(xx), 0.00001f) );
}
for (float xx = -100.0f; xx < 100.0f; xx += 0.1f)
{
REQUIRE(bx::equal(bx::cos(xx), ::cos(xx), 0.00001f) );
}
for (float xx = -100.0f; xx < 100.0f; xx += 0.1f)
{
REQUIRE(bx::equal(bx::tan(xx), ::tan(xx), 0.00001f) );
}
}
TEST_CASE("ToBits", "")