Avoid truncating cblas.h when compiling gencblas target
[platform/upstream/openblas.git] / l1param.h
1 #if defined(CORE2) || defined(PENRYN)
2 #define ALIGNED_ACCESS
3 #endif
4
5 #ifdef NEHALEM
6 #define PREFETCH        prefetcht0
7 #define PREFETCHW       prefetcht0
8 #define PREFETCHSIZE (128 *  12)
9 #define ALIGNED_ACCESS
10 #endif
11
12 #ifdef SANDYBRIDGE
13 #define PREFETCH        prefetcht0
14 #define PREFETCHW       prefetcht0
15 #define PREFETCHSIZE (128 *  12)
16 #define ALIGNED_ACCESS
17 #endif
18
19 #ifdef ATHLON
20 #define PREFETCH        prefetch
21 #define PREFETCHW       prefetchw
22 #define PREFETCHSIZE (128 *  10)
23 #define ALIGNED_ACCESS
24 #define movsd   movlps
25 #endif
26
27 #ifdef PENTIUM3
28 #define PREFETCH        prefetcht0
29 #define PREFETCHSIZE (128 *  10)
30 #define ALIGNED_ACCESS
31 #define movsd   movlps
32 #endif
33
34 #ifdef PENTIUM4
35 #define PREFETCH        prefetcht0
36 #define PREFETCHSIZE (128 *  10)
37 #define FETCH128
38 #define ALIGNED_ACCESS
39 #define xorps   pxor
40 #define xorpd   pxor
41 #endif
42
43 #ifdef ATOM
44 #define ALIGNED_ACCESS
45 #define PREFETCH        prefetcht0
46 #define PREFETCHSIZE ( 64 * 12 + 32)
47 #endif
48
49 #ifdef OPTERON
50 #define PREFETCH        prefetch
51 #define PREFETCHW       prefetchw
52 #define PREFETCHSIZE (128 *   3)
53 #define movsd   movlps
54 #endif
55
56 #ifdef BARCELONA
57 #define PREFETCH        prefetch
58 #define PREFETCHW       prefetchw
59 #define PREFETCHSIZE (128 *   5)
60 #define ALIGNED_ACCESS
61 #endif
62
63 #ifdef SHANGHAI
64 #define PREFETCH        prefetch
65 #define PREFETCHW       prefetchw
66 #define PREFETCHSIZE (128 *   5)
67 #define ALIGNED_ACCESS
68 #endif
69
70 #ifdef BOBCAT
71 #define PREFETCH        prefetch
72 #define PREFETCHW       prefetchw
73 #define PREFETCHSIZE (128 *   5)
74 #define ALIGNED_ACCESS
75 #endif
76
77 #ifdef BULLDOZER
78 #define PREFETCH        prefetch
79 #define PREFETCHW       prefetchw
80 #define PREFETCHSIZE (128 *   5)
81 #define ALIGNED_ACCESS
82 #endif
83
84 #ifdef NANO
85 #define PREFETCH        prefetcht0
86 #define PREFETCHW       prefetcht0
87 #define PREFETCHSIZE (128 *   4)
88 #define ALIGNED_ACCESS
89 #endif
90
91 #define PREOFFSET 128
92
93
94 #ifdef HAVE_SSE2
95 #define PSHUFD1(A, B)           pshufd  A, B, B
96 #define PSHUFD2(A, B, C)        pshufd  A, B, C
97 #else
98 #define PSHUFD1(A, B)           shufps  A, B, B
99 #define PSHUFD2(A, B, C)        movaps  B, C; shufps    A, C, C
100 #endif
101
102 #define MOVDDUP1(OFFSET, BASE, REGS)    movddup OFFSET(BASE), REGS
103
104 #define MOVAPS(OFFSET, BASE, REGS)      movlps  REGS, OFFSET(BASE); movhps REGS, OFFSET + SIZE(BASE)
105