summaryrefslogtreecommitdiff
path: root/tune/freq.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-12-29 22:02:37 +0100
committerKevin Ryde <user42@zip.com.au>2001-12-29 22:02:37 +0100
commit51c528250441377875095aa44713e6727a675b78 (patch)
tree6301ff99f7a8e4be986d95380a8a0c4aa537aa14 /tune/freq.c
parent29132c80c6acb1592fb7a26fd462d365f1cd7bac (diff)
downloadgmp-51c528250441377875095aa44713e6727a675b78.tar.gz
Expunge this, was right already:
(speed_cycletime_need_cycles): Correction to failure condition.
Diffstat (limited to 'tune/freq.c')
-rw-r--r--tune/freq.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tune/freq.c b/tune/freq.c
index 22ac52066..e36ca9997 100644
--- a/tune/freq.c
+++ b/tune/freq.c
@@ -636,15 +636,18 @@ speed_cycletime_fail (const char *str)
abort ();
}
+/* speed_time_init leaves speed_cycletime set to either 0.0 or 1.0 when the
+ CPU frequency is unknown. 0.0 is when the time base is in seconds, so
+ that's no good if cycles are wanted. 1.0 is when the time base is in
+ cycles, which conversely is no good if seconds are wanted. */
void
speed_cycletime_need_cycles (void)
{
speed_time_init ();
- if (speed_cycletime == 1.0)
+ if (speed_cycletime == 0.0)
speed_cycletime_fail
("Need to know CPU frequency to give times in cycles");
}
-
void
speed_cycletime_need_seconds (void)
{