Commit 8b826a65 authored by fbarchard@google.com's avatar fbarchard@google.com

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
parent db11d893
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 387
Version: 388
License: BSD
License File: LICENSE
......
......@@ -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
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment