| 11486 | namespace { |
| 11487 | |
| 11488 | int32_t convert(float f) { |
| 11489 | static_assert(sizeof(float) == sizeof(int32_t), "Important ULP matcher assumption violated"); |
| 11490 | int32_t i; |
| 11491 | std::memcpy(&i, &f, sizeof(f)); |
| 11492 | return i; |
| 11493 | } |
| 11494 | |
| 11495 | int64_t convert(double d) { |
| 11496 | static_assert(sizeof(double) == sizeof(int64_t), "Important ULP matcher assumption violated"); |
no test coverage detected