MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / equal_float

Function equal_float

examples/neon_sgemm.cpp:45–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45static bool equal_float(const float a, const float b)
46{
47 constexpr float tolerance = 1e-6;
48 return std::fabs(a - b) <= tolerance;
49}
50
51class NESGEMMExample : public Example
52{

Callers 1

do_setupMethod · 0.85

Calls 1

fabsFunction · 0.85

Tested by

no test coverage detected