Fix test_looplen, use double-precition arithmetic
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sat, 13 Jun 2009 23:53:05 +0000 (19:53 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Sat, 13 Jun 2009 23:53:05 +0000 (19:53 -0400)
commit85d2a666dfa980fec205a4bce7f6b53cdbed83c0
tree0263b220fad6409fc410acef392ee7fc2045bf12
parentb430c6d447b85bc1412b0d2b4bdffb3e7573468a
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 <paulmck@linux.vnet.ibm.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
test_looplen.c
This page took 0.033614 seconds and 4 git commands to generate.