~ubuntu-branches/ubuntu/natty/bc/natty

« back to all changes in this revision

Viewing changes to lib/testmul.c

  • Committer: Bazaar Package Importer
  • Author(s): John G. Hasler
  • Date: 2009-10-06 13:57:38 UTC
  • mto: (3.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20091006135738-81b5mvwsfxfa96bv
Tags: upstream-1.06.95
ImportĀ upstreamĀ versionĀ 1.06.95

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* compute the crossover for recursive and simple multiplication */
2
2
 
3
3
#include <stdio.h>
 
4
#include <stdlib.h>
 
5
#include <string.h>
4
6
#include <time.h>
5
7
#include "number.h"
6
8
#ifndef VARARGS
16
18
 
17
19
/* global variables */
18
20
int test_n = 1000;
19
 
int test_time = 30 * CLOCKS_PER_SEC;  /* 30 seconds */ 
 
21
long test_time = 30 * CLOCKS_PER_SEC;  /* 30 seconds */ 
20
22
 
21
23
/* Other things for number.c. */
22
24
int std_only;
149
151
 
150
152
  if (debug)
151
153
    fprintf (stderr, "Timings are for %d multiplies\n"
152
 
                     "Minimum time is %d seconds\n", test_n,
 
154
                     "Minimum time is %lu seconds\n", test_n,
153
155
             test_time/CLOCKS_PER_SEC);
154
156
 
155
157
  /* Two of the same size */