Another slow-hash improvement

This commit is contained in:
Jens Steube
2016-06-14 10:18:42 +02:00
parent d275772b9f
commit 4f0709b3c9
3 changed files with 33 additions and 31 deletions

View File

@@ -110,6 +110,8 @@ typedef uint32_t uint; // we need to get rid of this sooner or later, for consis
#define HCBUFSIZ 0x50000 // general large space buffer size in case the size is unknown at compile-time
#define EXPECTED_ITERATIONS 10000
/**
* functions
*/

View File

@@ -991,9 +991,9 @@ struct __hc_device_param
// workaround cpu spinning
double exec_us_prev1;
double exec_us_prev2;
double exec_us_prev3;
double exec_us_prev1[EXPECTED_ITERATIONS];
double exec_us_prev2[EXPECTED_ITERATIONS];
double exec_us_prev3[EXPECTED_ITERATIONS];
// this is "current" speed