summaryrefslogtreecommitdiff
path: root/l1param.h
blob: 0b216c7c59bc713eed8a3579917248e2a652bd17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#if defined(CORE2) || defined(PENRYN)
#define ALIGNED_ACCESS
#endif

#ifdef NEHALEM
#define PREFETCH	prefetcht0
#define PREFETCHW	prefetcht0
#define PREFETCHSIZE (128 *  12)
#define ALIGNED_ACCESS
#endif

#ifdef SANDYBRIDGE
#define PREFETCH	prefetcht0
#define PREFETCHW	prefetcht0
#define PREFETCHSIZE (128 *  12)
#define ALIGNED_ACCESS
#endif

#ifdef ATHLON
#define PREFETCH	prefetch
#define PREFETCHW	prefetchw
#define PREFETCHSIZE (128 *  10)
#define ALIGNED_ACCESS
#define movsd	movlps
#endif

#ifdef PENTIUM3
#define PREFETCH	prefetcht0
#define PREFETCHSIZE (128 *  10)
#define ALIGNED_ACCESS
#define movsd	movlps
#endif

#ifdef PENTIUM4
#define PREFETCH	prefetcht0
#define PREFETCHSIZE (128 *  10)
#define FETCH128
#define ALIGNED_ACCESS
#define xorps	pxor
#define xorpd	pxor
#endif

#ifdef ATOM
#define ALIGNED_ACCESS
#define PREFETCH	prefetcht0
#define PREFETCHSIZE ( 64 * 12 + 32)
#endif

#ifdef OPTERON
#define PREFETCH	prefetch
#define PREFETCHW	prefetchw
#define PREFETCHSIZE (128 *   3)
#define movsd	movlps
#endif

#ifdef BARCELONA
#define PREFETCH	prefetch
#define PREFETCHW	prefetchw
#define PREFETCHSIZE (128 *   5)
#define ALIGNED_ACCESS
#endif

#ifdef SHANGHAI
#define PREFETCH	prefetch
#define PREFETCHW	prefetchw
#define PREFETCHSIZE (128 *   5)
#define ALIGNED_ACCESS
#endif

#ifdef BOBCAT
#define PREFETCH	prefetch
#define PREFETCHW	prefetchw
#define PREFETCHSIZE (128 *   5)
#define ALIGNED_ACCESS
#endif

#ifdef BULLDOZER
#define PREFETCH	prefetch
#define PREFETCHW	prefetchw
#define PREFETCHSIZE (128 *   5)
#define ALIGNED_ACCESS
#endif

#ifdef NANO
#define PREFETCH        prefetcht0
#define PREFETCHW       prefetcht0
#define PREFETCHSIZE (128 *   4)
#define ALIGNED_ACCESS
#endif

#define PREOFFSET 128


#ifdef HAVE_SSE2
#define PSHUFD1(A, B)		pshufd	A, B, B
#define PSHUFD2(A, B, C)	pshufd	A, B, C
#else
#define PSHUFD1(A, B)		shufps	A, B, B
#define PSHUFD2(A, B, C)	movaps	B, C; shufps	A, C, C
#endif

#define MOVDDUP1(OFFSET, BASE, REGS)	movddup	OFFSET(BASE), REGS

#define MOVAPS(OFFSET, BASE, REGS)	movlps	REGS, OFFSET(BASE); movhps REGS, OFFSET + SIZE(BASE)