Searched refs:relative_error (Results 1 – 2 of 2) sorted by relevance
24 #define relative_error(exp, out) ((exp == 0.0f) ? fabs(exp - out) : (fabs(1.0f - out/ exp) )) macro34 if (relative_error(U(*m1).m[i][j], U(*m2).m[i][j]) > admitted_error) in compare_matrix()
132 static inline float relative_error(float expected, float got) in relative_error() function140 ok_(__FILE__, line)(relative_error(expected->x, got->x) < ADMITTED_ERROR in expect_vec4_()141 && relative_error(expected->y, got->y) < ADMITTED_ERROR in expect_vec4_()142 && relative_error(expected->z, got->z) < ADMITTED_ERROR in expect_vec4_()143 && relative_error(expected->w, got->w) < ADMITTED_ERROR, in expect_vec4_()