-rw-r--r-- | noncore/settings/sysinfo/benchmarkinfo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/settings/sysinfo/benchmarkinfo.cpp b/noncore/settings/sysinfo/benchmarkinfo.cpp index d6ecec5..2c68fd5 100644 --- a/noncore/settings/sysinfo/benchmarkinfo.cpp +++ b/noncore/settings/sysinfo/benchmarkinfo.cpp | |||
@@ -30,32 +30,36 @@ | |||
30 | #include <qcombobox.h> | 30 | #include <qcombobox.h> |
31 | #include <qdirectpainter_qws.h> | 31 | #include <qdirectpainter_qws.h> |
32 | #include <qfile.h> | 32 | #include <qfile.h> |
33 | #include <qtextstream.h> | 33 | #include <qtextstream.h> |
34 | #include <qfiledialog.h> | 34 | #include <qfiledialog.h> |
35 | #include <qlabel.h> | 35 | #include <qlabel.h> |
36 | #include <qlayout.h> | 36 | #include <qlayout.h> |
37 | #include <qpainter.h> | 37 | #include <qpainter.h> |
38 | #include <qpushbutton.h> | 38 | #include <qpushbutton.h> |
39 | #include <qtimer.h> | 39 | #include <qtimer.h> |
40 | 40 | ||
41 | /* STD */ | 41 | /* STD */ |
42 | #include <time.h> | 42 | #include <time.h> |
43 | #include <stdio.h> | 43 | #include <stdio.h> |
44 | #include <stdlib.h> | 44 | #include <stdlib.h> |
45 | #include <math.h> | 45 | #include <math.h> |
46 | #if defined (__GNUC__) && (__GNUC__ < 3) | ||
47 | extern double round(double); | ||
48 | #endif | ||
49 | |||
46 | 50 | ||
47 | #include "benchmarkinfo.h" | 51 | #include "benchmarkinfo.h" |
48 | 52 | ||
49 | extern "C" | 53 | extern "C" |
50 | { | 54 | { |
51 | void BenchFFT( void ); | 55 | void BenchFFT( void ); |
52 | double dhry_main( int ); | 56 | double dhry_main( int ); |
53 | } | 57 | } |
54 | 58 | ||
55 | #define DHRYSTONE_RUNS 20000000 | 59 | #define DHRYSTONE_RUNS 20000000 |
56 | #define TEST_DURATION 3 | 60 | #define TEST_DURATION 3 |
57 | 61 | ||
58 | #define BUFF_SIZE 8192 | 62 | #define BUFF_SIZE 8192 |
59 | #define FILE_SIZE 1024 * 1024 // 1Mb | 63 | #define FILE_SIZE 1024 * 1024 // 1Mb |
60 | 64 | ||
61 | //=========================================================================== | 65 | //=========================================================================== |