MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / TEST

Function TEST

Source/UnitTest/test_softfloat.cpp:32–36  ·  view source on GitHub ↗

@brief Test normal numbers. */

Source from the content-addressed store, hash-verified

30
31/** @brief Test normal numbers. */
32TEST(softfloat, FP16NormalNumbers)
33{
34 float result = sf16_to_float((15 << 10) + 1);
35 EXPECT_NEAR(result, 1.00098f, 0.00005f);
36}
37
38/** @brief Test denormal numbers. */
39TEST(softfloat, FP16DenormalNumbers)

Callers

nothing calls this directly

Calls 2

sf16_to_floatFunction · 0.85
isnanFunction · 0.85

Tested by

no test coverage detected