Use emit for xgetbv on 32 bit.

BUG=106
TEST=none
Review URL: https://webrtc-codereview.appspot.com/863004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@388 16f28f9a-4ce2-e073-06de-1de4eb20be90
This commit is contained in:
fbarchard@google.com 2012-10-01 16:45:48 +00:00
parent db11d893c2
commit 8b826a65e6
3 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 387
Version: 388
License: BSD
License File: LICENSE

View File

@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 387
#define LIBYUV_VERSION 388
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT

View File

@ -61,7 +61,8 @@ void CpuId(int cpu_info[4], int) {
#endif
// X86 CPUs have xgetbv to detect OS saves high parts of ymm registers.
#if !defined(__CLR_VER) && defined(_MSC_VER) && (_MSC_FULL_VER >= 160040219)
#if !defined(__CLR_VER) && defined(_M_X64) && \
defined(_MSC_VER) && (_MSC_FULL_VER >= 160040219)
#define HAS_XGETBV
static uint32 XGetBV(unsigned int xcr) {
return static_cast<uint32>(_xgetbv(xcr));