From: Paul E. McKenney Date: Sat, 13 Jun 2009 23:53:05 +0000 (-0400) Subject: Fix test_looplen, use double-precition arithmetic X-Git-Tag: v0.1~146 X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=commitdiff_plain;h=85d2a666dfa980fec205a4bce7f6b53cdbed83c0;hp=85d2a666dfa980fec205a4bce7f6b53cdbed83c0 Fix test_looplen, use double-precition arithmetic Here you go!!! [root@perfsqh userspace-rcu]# ./test_looplen CALIBRATION : 0 cycles per loop Hmmm... Probably not what you had in mind. Breaking out the floating-point arithmetic: [root@perfsqh userspace-rcu]# ./test_looplen CALIBRATION : 0.386172 cycles per loop time_tot = 4049312, LOOPS = 1048576, TESTS = 10 More helpful? ;-) Thanx, Paul Signed-off-by: Paul E. McKenney Signed-off-by: Mathieu Desnoyers ---