MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / checkulp

Function checkulp

test/math/lgamma.c:62–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62static int checkulp(float d, int r)
63{
64 // TODO: we only care about >=1.5 ulp errors for now, should be 1.0
65 if (r == RN)
66 return fabsf(d) < 1.5;
67 return 1;
68}
69
70static float ulperrf(float got, float want, float dwant)
71{

Callers 1

mainFunction · 0.85

Calls 1

fabsfFunction · 0.85

Tested by

no test coverage detected