redefined functions for TIMING and YIELDING for ARMV7 processor

This commit is contained in:
wernsaar
2013-11-03 10:34:04 +01:00
parent e31186efd4
commit 5400a9f4e4
4 changed files with 100 additions and 4 deletions

View File

@@ -104,11 +104,13 @@ static void __inline blas_lock(volatile BLASULONG *address){
}
static inline BLASULONG rpcc(void){
BLASULONG ret=0;
static inline unsigned long long rpcc(void){
unsigned long long ret=0;
double v;
struct timeval tv;
gettimeofday(&tv,NULL);
ret=1000000* tv.tv_sec + tv.tv_usec;
v=(double) tv.tv_sec + (double) tv.tv_usec * 1e-6;
ret = (unsigned long long) ( v * 1000.0d );
return ret;
}