mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
Reverse the logic used to detect prefetch
Explicitly search for x86 architecture instead of excluding the others. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
67f611f3eb
commit
b89733b46c
1 changed files with 3 additions and 3 deletions
|
@ -25,7 +25,7 @@
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#if !(defined(__hpux) || defined(__ppc__) || defined(__ppc64__) || defined(__arm__))
|
#if defined(__i386__) || defined(_M_IX86) || defined(_X86_)
|
||||||
# include <xmmintrin.h>
|
# include <xmmintrin.h>
|
||||||
#endif
|
#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
|
/// to be loaded from RAM, that can be very slow. When we will
|
||||||
/// subsequently call retrieve() the TT data will be already
|
/// subsequently call retrieve() the TT data will be already
|
||||||
/// quickly accessible in L1/L2 CPU cache.
|
/// quickly accessible in L1/L2 CPU cache.
|
||||||
#if defined(__hpux) || defined(__ppc__) || defined(__ppc64__) || defined(__arm__)
|
#if !(defined(__i386__) || defined(_M_IX86) || defined(_X86_))
|
||||||
void TranspositionTable::prefetch(const Key) const {} // Not supported on HP UX
|
void TranspositionTable::prefetch(const Key) const {}
|
||||||
#else
|
#else
|
||||||
|
|
||||||
void TranspositionTable::prefetch(const Key posKey) const {
|
void TranspositionTable::prefetch(const Key posKey) const {
|
||||||
|
|
Loading…
Add table
Reference in a new issue