| 60 | } |
| 61 | |
| 62 | static 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 | |
| 70 | static float ulperrf(float got, float want, float dwant) |
| 71 | { |