summaryrefslogtreecommitdiff
path: root/user/fftw/cycle.h.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-13 03:12:34 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-13 03:12:34 -0500
commitab751b737414863f82ff571fa9a872f147a3f002 (patch)
tree476027de9bce6b8c861e2715dbef0dfa2a94ff4a /user/fftw/cycle.h.patch
parentefa5ac2ac2713bd7f058486fcd86bcc1572a2bc4 (diff)
downloadpackages-ab751b737414863f82ff571fa9a872f147a3f002.tar.gz
packages-ab751b737414863f82ff571fa9a872f147a3f002.tar.bz2
packages-ab751b737414863f82ff571fa9a872f147a3f002.tar.xz
packages-ab751b737414863f82ff571fa9a872f147a3f002.zip
user/fftw: pull in
Diffstat (limited to 'user/fftw/cycle.h.patch')
-rw-r--r--user/fftw/cycle.h.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/user/fftw/cycle.h.patch b/user/fftw/cycle.h.patch
new file mode 100644
index 000000000..ff70cdb4d
--- /dev/null
+++ b/user/fftw/cycle.h.patch
@@ -0,0 +1,29 @@
+--- ./kernel/cycle.h.orig
++++ ./kernel/cycle.h
+@@ -437,26 +437,6 @@
+ #define HAVE_TICK_COUNTER
+ #endif
+ /*----------------------------------------------------------------*/
+-/* SGI/Irix */
+-#if defined(HAVE_CLOCK_GETTIME) && defined(CLOCK_SGI_CYCLE) && !defined(HAVE_TICK_COUNTER)
+-typedef struct timespec ticks;
+-
+-static inline ticks getticks(void)
+-{
+- struct timespec t;
+- clock_gettime(CLOCK_SGI_CYCLE, &t);
+- return t;
+-}
+-
+-static inline double elapsed(ticks t1, ticks t0)
+-{
+- return ((double)t1.tv_sec - (double)t0.tv_sec) * 1.0E9 +
+- ((double)t1.tv_nsec - (double)t0.tv_nsec);
+-}
+-#define HAVE_TICK_COUNTER
+-#endif
+-
+-/*----------------------------------------------------------------*/
+ /* Cray UNICOS _rtc() intrinsic function */
+ #if defined(HAVE__RTC) && !defined(HAVE_TICK_COUNTER)
+ #ifdef HAVE_INTRINSICS_H