From e4ad6a38eedc3067acbba5e0d67e41b6b7da8dfa Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 9 May 2010 13:03:58 +0100 Subject: [PATCH] Revert to old prefetch detection logic It was broken on Windows 64bit with MSVC and possibly on other platforms, so revert to old proven one. Signed-off-by: Marco Costalba --- src/tt.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tt.cpp b/src/tt.cpp index e8a316c9..c10f2e44 100644 --- a/src/tt.cpp +++ b/src/tt.cpp @@ -25,7 +25,7 @@ #include #include #include -#if defined(__i386__) || defined(_M_IX86) || defined(_X86_) +#if !(defined(__hpux) || defined(__ppc__) || defined(__ppc64__) || defined(__arm__)) # include #endif @@ -166,8 +166,8 @@ TTEntry* TranspositionTable::retrieve(const Key posKey) const { /// to be loaded from RAM, that can be very slow. When we will /// subsequently call retrieve() the TT data will be already /// quickly accessible in L1/L2 CPU cache. -#if !(defined(__i386__) || defined(_M_IX86) || defined(_X86_)) -void TranspositionTable::prefetch(const Key) const {} +#if defined(__hpux) || defined(__ppc__) || defined(__ppc64__) || defined(__arm__) +void TranspositionTable::prefetch(const Key) const {} // Not supported on HP UX #else void TranspositionTable::prefetch(const Key posKey) const { -- 2.39.2