aboutsummaryrefslogtreecommitdiff
path: root/source/cpu_id.cc
diff options
context:
space:
mode:
authorFrank Barchard <fbarchard@google.com>2017-09-15 15:00:39 -0700
committerFrank Barchard <fbarchard@google.com>2017-09-15 22:00:52 +0000
commit00c501fe4351ed09edb9fc4cb57d6dae63020a6f (patch)
tree0e2b58b3b2c7ddbcf32a506c3b40aabb2b6b6f5e /source/cpu_id.cc
parent7f4caafd9acb4c1e97430bd402b2e877e9ef501b (diff)
downloadlibyuv-00c501fe4351ed09edb9fc4cb57d6dae63020a6f.tar.gz
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>
Diffstat (limited to 'source/cpu_id.cc')
-rw-r--r--source/cpu_id.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cpu_id.cc b/source/cpu_id.cc
index ce165544..12e03345 100644
--- a/source/cpu_id.cc
+++ b/source/cpu_id.cc
@@ -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__)