Lines Matching full:average
282 float64_t rel, delta, average; in test_rel_error_f64() local
286 average = (fabs(a[index]) + fabs(b[index])) / 2.0; in test_rel_error_f64()
288 if (average != 0) { in test_rel_error_f64()
289 rel = delta / average; in test_rel_error_f64()
305 float32_t rel, delta, average; in test_rel_error_f32() local
309 average = (fabsf(a[index]) + fabsf(b[index])) / 2.0f; in test_rel_error_f32()
311 if (average != 0) { in test_rel_error_f32()
312 rel = delta / average; in test_rel_error_f32()
329 float32_t rel, delta, average; in test_rel_error_f16() local
333 average = (fabsf((float)a[index]) + fabsf((float)b[index])) / 2.0f; in test_rel_error_f16()
335 if (average != 0) { in test_rel_error_f16()
336 rel = delta / average; in test_rel_error_f16()