From a8970ee5091721ec71182317a326562d7f29f998 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Thu, 18 Jul 2013 23:08:13 +0900 Subject: [PATCH] Tools: add additional divide timing --- Tools/CPUInfo/CPUInfo.pde | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/CPUInfo/CPUInfo.pde b/Tools/CPUInfo/CPUInfo.pde index fef8760f25..04237fd85a 100644 --- a/Tools/CPUInfo/CPUInfo.pde +++ b/Tools/CPUInfo/CPUInfo.pde @@ -97,7 +97,8 @@ static void show_timings(void) TIMEIT("fadd", v_out += v_f, 100); TIMEIT("fsub", v_out -= v_f, 100); TIMEIT("fmul", v_out *= v_f, 100); - TIMEIT("fdiv", v_out /= v_f, 100); + TIMEIT("fdiv /=", v_out /= v_f, 100); + TIMEIT("fdiv 2/x", v_out = 2.0f/v_f, 100); TIMEIT("dadd", v_out_d += v_d, 100); TIMEIT("dsub", v_out_d -= v_d, 100);