Convenience: parse a literal and reinterpret the result as a float for comparison against host strtof. The bit-cast itself does not anchor any libgcc soft-FP helper; the host `float` comparison does (cheap on host).
| 18 | // comparison against host strtof. The bit-cast itself does not anchor any |
| 19 | // libgcc soft-FP helper; the host `float` comparison does (cheap on host). |
| 20 | static float parse_as_float(const char* s) { |
| 21 | u32 bits = ieee754_parse_decimal(s, fl::strlen(s)); |
| 22 | return fl::bit_cast<float>(bits); |
| 23 | } |
| 24 | |
| 25 | FL_TEST_CASE("ieee754_parse_decimal -- well-known constants") { |
| 26 | FL_SUBCASE("zero") { |
no test coverage detected