mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-07 01:06:46 +08:00
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/669142 Reviewed-by: Frank Barchard <fbarchard@google.com>
This commit is contained in:
parent
7f4caafd9a
commit
00c501fe43
@ -1,6 +1,6 @@
|
|||||||
Name: libyuv
|
Name: libyuv
|
||||||
URL: http://code.google.com/p/libyuv/
|
URL: http://code.google.com/p/libyuv/
|
||||||
Version: 1669
|
Version: 1670
|
||||||
License: BSD
|
License: BSD
|
||||||
License File: LICENSE
|
License File: LICENSE
|
||||||
|
|
||||||
|
|||||||
@ -11,6 +11,6 @@
|
|||||||
#ifndef INCLUDE_LIBYUV_VERSION_H_
|
#ifndef INCLUDE_LIBYUV_VERSION_H_
|
||||||
#define INCLUDE_LIBYUV_VERSION_H_
|
#define INCLUDE_LIBYUV_VERSION_H_
|
||||||
|
|
||||||
#define LIBYUV_VERSION 1669
|
#define LIBYUV_VERSION 1670
|
||||||
|
|
||||||
#endif // INCLUDE_LIBYUV_VERSION_H_
|
#endif // INCLUDE_LIBYUV_VERSION_H_
|
||||||
|
|||||||
@ -124,7 +124,7 @@ void CpuId(int eax, int ecx, int* cpu_info) {
|
|||||||
int GetXCR0() {
|
int GetXCR0() {
|
||||||
int xcr0 = 0;
|
int xcr0 = 0;
|
||||||
#if defined(_MSC_FULL_VER) && (_MSC_FULL_VER >= 160040219)
|
#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__)
|
#elif defined(__i386__) || defined(__x86_64__)
|
||||||
asm(".byte 0x0f, 0x01, 0xd0" : "=a"(xcr0) : "c"(0) : "%edx");
|
asm(".byte 0x0f, 0x01, 0xd0" : "=a"(xcr0) : "c"(0) : "%edx");
|
||||||
#endif // defined(__i386__) || defined(__x86_64__)
|
#endif // defined(__i386__) || defined(__x86_64__)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user