QDP++
sse_prefetch.h
Go to the documentation of this file.
1#ifndef SSE_PREFETCH_H
2#define SSE_PREFETCH_H
3
4#include "qdp_diagnostics.h"
5
6#include "qdp_config.h"
7
8/* Read Prefetch a 64 byte (8 doubles) line */
9#define PREFETCHNTA(a) _mm_prefetch((a), _MM_HINT_NTA)
10
11#define PREFETCH(a) _mm_prefetch((a), _MM_HINT_T0)
12
13/* Write prefetch a 64 byte (8 doubles line) */
14#if defined(QDP_USE_3DNOW)
15QDPXX_MESSAGE("Using 3DNOW Write Prefetch")
16#include <mm3dnow.h>
17#define PREFETCHW(a) _m_prefetchw((a))
18
19#else
20
21#define PREFETCHW(a) _mm_prefetch((a), _MM_HINT_T0)
22
23#endif
24
25#endif
#define QDPXX_MESSAGE(s)