From 6325869685c2ed4de87ffd368b755150861c3bdb Mon Sep 17 00:00:00 2001 From: "fbarchard@google.com" Date: Mon, 1 Oct 2012 17:19:26 +0000 Subject: [PATCH] xgetbv instrinsic for 64 bit BUG=106 TEST=untested Review URL: https://webrtc-codereview.appspot.com/859005 git-svn-id: http://libyuv.googlecode.com/svn/trunk@389 16f28f9a-4ce2-e073-06de-1de4eb20be90 --- README.chromium | 2 +- include/libyuv/version.h | 2 +- source/cpu_id.cc | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.chromium b/README.chromium index 17737db9e..3df725107 100644 --- a/README.chromium +++ b/README.chromium @@ -1,6 +1,6 @@ Name: libyuv URL: http://code.google.com/p/libyuv/ -Version: 388 +Version: 389 License: BSD License File: LICENSE diff --git a/include/libyuv/version.h b/include/libyuv/version.h index 443d28014..aecdd8677 100644 --- a/include/libyuv/version.h +++ b/include/libyuv/version.h @@ -11,6 +11,6 @@ #ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT #define INCLUDE_LIBYUV_VERSION_H_ -#define LIBYUV_VERSION 388 +#define LIBYUV_VERSION 389 #endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT diff --git a/source/cpu_id.cc b/source/cpu_id.cc index 8aa7ce9ab..f0c1040fe 100644 --- a/source/cpu_id.cc +++ b/source/cpu_id.cc @@ -13,6 +13,10 @@ #ifdef _MSC_VER #include // For __cpuid() #endif +#if !defined(__CLR_VER) && defined(_M_X64) && \ + defined(_MSC_VER) && (_MSC_FULL_VER >= 160040219) +#include // For _xgetbv() +#endif #include // For getenv()