Merge pull request #1013 from egaburov/armfix
Added fix for ispc on ARM
This commit is contained in:
@@ -524,3 +524,4 @@ rcpd_decl()
|
||||
|
||||
transcendetals_decl()
|
||||
trigonometry_decl()
|
||||
saturation_arithmetic()
|
||||
|
||||
@@ -494,3 +494,4 @@ rcpd_decl()
|
||||
|
||||
transcendetals_decl()
|
||||
trigonometry_decl()
|
||||
saturation_arithmetic()
|
||||
|
||||
@@ -590,3 +590,4 @@ rcpd_decl()
|
||||
|
||||
transcendetals_decl()
|
||||
trigonometry_decl()
|
||||
saturation_arithmetic()
|
||||
|
||||
@@ -54,6 +54,19 @@ __inline__ uint64_t rdtsc() {
|
||||
return (1000000ull * tv.tv_sec + tv.tv_usec) * 1000ull;
|
||||
}
|
||||
|
||||
#include <sys/time.h>
|
||||
static inline double rtc(void)
|
||||
{
|
||||
struct timeval Tvalue;
|
||||
double etime;
|
||||
struct timezone dummy;
|
||||
|
||||
gettimeofday(&Tvalue,&dummy);
|
||||
etime = (double) Tvalue.tv_sec +
|
||||
1.e-6*((double) Tvalue.tv_usec);
|
||||
return etime;
|
||||
}
|
||||
|
||||
#else // __arm__
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
Reference in New Issue
Block a user