From fb497647057866fecf751661a104fa6c5bda3ece Mon Sep 17 00:00:00 2001 From: "fbarchard@google.com" Date: Wed, 26 Sep 2012 00:10:54 +0000 Subject: [PATCH] Use emit for xgetbv in vs2005 BUG=98 TEST=build with vs2005 Review URL: https://webrtc-codereview.appspot.com/845005 git-svn-id: http://libyuv.googlecode.com/svn/trunk@375 16f28f9a-4ce2-e073-06de-1de4eb20be90 --- README.chromium | 2 +- include/libyuv/version.h | 2 +- source/cpu_id.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.chromium b/README.chromium index 143508ad0..b44ce7961 100644 --- a/README.chromium +++ b/README.chromium @@ -1,6 +1,6 @@ Name: libyuv URL: http://code.google.com/p/libyuv/ -Version: 374 +Version: 375 License: BSD License File: LICENSE diff --git a/include/libyuv/version.h b/include/libyuv/version.h index 68317b35a..9e4c5c3bf 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 374 +#define LIBYUV_VERSION 375 #endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT diff --git a/source/cpu_id.cc b/source/cpu_id.cc index 9e7ac55c4..31a100085 100644 --- a/source/cpu_id.cc +++ b/source/cpu_id.cc @@ -70,7 +70,7 @@ __declspec(naked) __declspec(align(16)) static uint32 XGetBV(unsigned int xcr) { __asm { mov ecx, [esp + 4] // xcr - xgetbv // updates eax and edx. edx unused/ + _asm _emit 0x0f _asm _emit 0x01 _asm _emit 0xd0 // xgetbv for vs2005. ret } }