root / synthbench / euroben-ports / base / C / mod2am / prtspeed.c @ 0:839f52ef7657
History | View | Annotate | Download (416 Bytes)
1 |
#include <stdio.h> |
---|---|
2 |
|
3 |
#define max(a,b)( ((a) > (b)) ? (a) : (b) )
|
4 |
|
5 |
void prtspeed( int m, int l, int n, double time, int ok, int nops ) |
6 |
{ |
7 |
double speed;
|
8 |
// -----------------------------------------------------------------
|
9 |
speed = 1.0e-6*nops/max( time, 1.0e-9 ); |
10 |
printf( "%4d |%4d | %4d|%11.4g |%11.4g | ", m, l, n, time, speed );
|
11 |
if ( ok == 0 ) |
12 |
printf( " T |\n" );
|
13 |
else
|
14 |
printf( " F |\n" );
|
15 |
} |