From 38375b49e3079a50b880e8e03a508e8e9c304552 Mon Sep 17 00:00:00 2001 From: Evghenii Gaburov Date: Thu, 16 Apr 2015 11:48:26 +0000 Subject: [PATCH 1/2] added unsaturated ingtegers stubs for arm IR --- builtins/target-neon-16.ll | 1 + builtins/target-neon-32.ll | 1 + builtins/target-neon-8.ll | 1 + 3 files changed, 3 insertions(+) diff --git a/builtins/target-neon-16.ll b/builtins/target-neon-16.ll index d73b0a50..47c1c0e0 100644 --- a/builtins/target-neon-16.ll +++ b/builtins/target-neon-16.ll @@ -524,3 +524,4 @@ rcpd_decl() transcendetals_decl() trigonometry_decl() +saturation_arithmetic() diff --git a/builtins/target-neon-32.ll b/builtins/target-neon-32.ll index a8999269..8c362568 100644 --- a/builtins/target-neon-32.ll +++ b/builtins/target-neon-32.ll @@ -494,3 +494,4 @@ rcpd_decl() transcendetals_decl() trigonometry_decl() +saturation_arithmetic() diff --git a/builtins/target-neon-8.ll b/builtins/target-neon-8.ll index 0c1edf8c..cadfbbca 100644 --- a/builtins/target-neon-8.ll +++ b/builtins/target-neon-8.ll @@ -590,3 +590,4 @@ rcpd_decl() transcendetals_decl() trigonometry_decl() +saturation_arithmetic() From 7e0697305408519a803bffc0235f1d75cb813539 Mon Sep 17 00:00:00 2001 From: Evghenii Gaburov Date: Thu, 16 Apr 2015 11:54:06 +0000 Subject: [PATCH 2/2] added rtc() to arm examples as well --- examples/timing.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/examples/timing.h b/examples/timing.h index ccf1a8be..32448cbb 100644 --- a/examples/timing.h +++ b/examples/timing.h @@ -54,6 +54,19 @@ __inline__ uint64_t rdtsc() { return (1000000ull * tv.tv_sec + tv.tv_usec) * 1000ull; } +#include +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