Commit d0ad39cc authored by Ture Pålsson's avatar Ture Pålsson
Browse files

Make main 'void', so we can compile with clang. Tidied up definition

of second() a bit.
parent 11e8af3f
......@@ -58,7 +58,6 @@ typedef long LPLONG;
static REAL linpack (LPLONG nreps,int arsize);
static void matgen (REAL *a,int lda,int n,REAL *b,REAL *norma);
static REAL second (void);
static void *mempool;
......@@ -251,6 +250,12 @@ dgesl(REAL *a, LPLONG lda, LPLONG n, LPLONG *ipvt, REAL *b, int job)
}
static double
second(void)
{
return (double)clock() / CLOCKS_PER_SEC;
}
static REAL
linpack(LPLONG nreps, int arsize)
{
......@@ -328,9 +333,3 @@ static void matgen(REAL *a,int lda,int n,REAL *b,REAL *norma)
for (i = 0; i < n; i++)
b[i] = b[i] + a[lda*j+i];
}
static REAL
second(void)
{
return (REAL)clock() / CLOCKS_PER_SEC;
}
......@@ -76,8 +76,8 @@ static REAL second (void);
static void *mempool;
void main(void)
int
main(void)
{
char buf[80];
int arsize;
......@@ -122,6 +122,7 @@ void main(void)
free(mempool);
printf("\n");
}
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment