kusano 2b45e8
#if defined(CORE2) || defined(PENRYN)
kusano 2b45e8
#define ALIGNED_ACCESS
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef NEHALEM
kusano 2b45e8
#define PREFETCH	prefetcht0
kusano 2b45e8
#define PREFETCHW	prefetcht0
kusano 2b45e8
#define PREFETCHSIZE (128 *  12)
kusano 2b45e8
#define ALIGNED_ACCESS
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef ATHLON
kusano 2b45e8
#define PREFETCH	prefetch
kusano 2b45e8
#define PREFETCHW	prefetchw
kusano 2b45e8
#define PREFETCHSIZE (128 *  10)
kusano 2b45e8
#define ALIGNED_ACCESS
kusano 2b45e8
#define movsd	movlps
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef PENTIUM3
kusano 2b45e8
#define PREFETCH	prefetcht0
kusano 2b45e8
#define PREFETCHSIZE (128 *  10)
kusano 2b45e8
#define ALIGNED_ACCESS
kusano 2b45e8
#define movsd	movlps
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef PENTIUM4
kusano 2b45e8
#define PREFETCH	prefetcht0
kusano 2b45e8
#define PREFETCHSIZE (128 *  10)
kusano 2b45e8
#define FETCH128
kusano 2b45e8
#define ALIGNED_ACCESS
kusano 2b45e8
#define xorps	pxor
kusano 2b45e8
#define xorpd	pxor
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef ATOM
kusano 2b45e8
#define ALIGNED_ACCESS
kusano 2b45e8
#define PREFETCH	prefetcht0
kusano 2b45e8
#define PREFETCHSIZE ( 64 * 12 + 32)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef OPTERON
kusano 2b45e8
#define PREFETCH	prefetch
kusano 2b45e8
#define PREFETCHW	prefetchw
kusano 2b45e8
#define PREFETCHSIZE (128 *   3)
kusano 2b45e8
#define movsd	movlps
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef BARCELONA
kusano 2b45e8
#define PREFETCH	prefetch
kusano 2b45e8
#define PREFETCHW	prefetchw
kusano 2b45e8
#define PREFETCHSIZE (128 *   5)
kusano 2b45e8
#define ALIGNED_ACCESS
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef SHANGHAI
kusano 2b45e8
#define PREFETCH	prefetch
kusano 2b45e8
#define PREFETCHW	prefetchw
kusano 2b45e8
#define PREFETCHSIZE (128 *   5)
kusano 2b45e8
#define ALIGNED_ACCESS
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef NANO
kusano 2b45e8
#define PREFETCH        prefetcht0
kusano 2b45e8
#define PREFETCHW       prefetcht0
kusano 2b45e8
#define PREFETCHSIZE (128 *   4)
kusano 2b45e8
#define ALIGNED_ACCESS
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#define PREOFFSET 128
kusano 2b45e8
kusano 2b45e8
kusano 2b45e8
#ifdef HAVE_SSE2
kusano 2b45e8
#define PSHUFD1(A, B)		pshufd	A, B, B
kusano 2b45e8
#define PSHUFD2(A, B, C)	pshufd	A, B, C
kusano 2b45e8
#else
kusano 2b45e8
#define PSHUFD1(A, B)		shufps	A, B, B
kusano 2b45e8
#define PSHUFD2(A, B, C)	movaps	B, C; shufps	A, C, C
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#define MOVDDUP1(OFFSET, BASE, REGS)	movddup	OFFSET(BASE), REGS
kusano 2b45e8
kusano 2b45e8
#define MOVAPS(OFFSET, BASE, REGS)	movlps	REGS, OFFSET(BASE); movhps REGS, OFFSET + SIZE(BASE)
kusano 2b45e8