Commit 00c501fe authored by Frank Barchard's avatar Frank Barchard

Cast xgetbv from int64 to int to avoid Visual C warning.

TBR=kjellander@chromium.org
Bug: libyuv:735
Test: try bots
Change-Id: I00dc06689cd0a23847865c0c8edeb538b0cc81ac
Reviewed-on: https://chromium-review.googlesource.com/669142Reviewed-by: 's avatarFrank Barchard <fbarchard@google.com>
parent 7f4caafd
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 1669
Version: 1670
License: BSD
License File: LICENSE
......
......@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 1669
#define LIBYUV_VERSION 1670
#endif // INCLUDE_LIBYUV_VERSION_H_
......@@ -124,7 +124,7 @@ void CpuId(int eax, int ecx, int* cpu_info) {
int GetXCR0() {
int xcr0 = 0;
#if defined(_MSC_FULL_VER) && (_MSC_FULL_VER >= 160040219)
xcr0 = _xgetbv(0); // VS2010 SP1 required.
xcr0 = (int) _xgetbv(0); // VS2010 SP1 required. NOLINT
#elif defined(__i386__) || defined(__x86_64__)
asm(".byte 0x0f, 0x01, 0xd0" : "=a"(xcr0) : "c"(0) : "%edx");
#endif // defined(__i386__) || defined(__x86_64__)
......
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