summaryrefslogtreecommitdiff
path: root/cpuid.h
diff options
context:
space:
mode:
authorXianyi Zhang <xianyi@iscas.ac.cn>2012-03-30 20:01:03 +0800
committerXianyi Zhang <xianyi@iscas.ac.cn>2012-03-30 20:01:03 +0800
commit19a48b82cf3c4aa25659ea89dce494e2d78fed25 (patch)
tree0b2a054bdc43af6af73815a3828668757e7f3b4e /cpuid.h
parent5cbbc496b0eba5eb31505aa5746d1152bb04746e (diff)
downloadopenblas-19a48b82cf3c4aa25659ea89dce494e2d78fed25.tar.gz
openblas-19a48b82cf3c4aa25659ea89dce494e2d78fed25.tar.bz2
openblas-19a48b82cf3c4aa25659ea89dce494e2d78fed25.zip
Init Sandybridge codes based on Nehalem.
Diffstat (limited to 'cpuid.h')
-rw-r--r--cpuid.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpuid.h b/cpuid.h
index 665ede077..c0f21698d 100644
--- a/cpuid.h
+++ b/cpuid.h
@@ -103,6 +103,7 @@
#define CORE_NEHALEM 17
#define CORE_ATOM 18
#define CORE_NANO 19
+#define CORE_SANDYBRIDGE 20
#define HAVE_SSE (1 << 0)
#define HAVE_SSE2 (1 << 1)
@@ -122,6 +123,7 @@
#define HAVE_MISALIGNSSE (1 << 15)
#define HAVE_128BITFPU (1 << 16)
#define HAVE_FASTMOVU (1 << 17)
+#define HAVE_AVX (1 << 18)
#define CACHE_INFO_L1_I 1
#define CACHE_INFO_L1_D 2
@@ -188,4 +190,5 @@ typedef struct {
#define CPUTYPE_NSGEODE 41
#define CPUTYPE_VIAC3 42
#define CPUTYPE_NANO 43
+#define CPUTYPE_SANDYBRIDGE 44
#endif