shithub: dav1d

Download patch

ref: 227b7eae7aa6cca64d4be4659678afc578ee9f93
parent: 9dcdf20ce91b6f86913c4c2c97bea443f826f80f
author: Martin Storsjö <martin@martin.st>
date: Fri Oct 19 07:51:59 EDT 2018

attributes: Don't try to use _BitScanReverse64 on MSVC/ARM

Despite what MSDN says, this intrinsic doesn't exist for ARM,
only for ARM64.

--- a/include/common/attributes.h
+++ b/include/common/attributes.h
@@ -87,7 +87,7 @@
     return (31 - leading_zero);
 }
 
-#ifndef _M_IX86
+#ifdef _WIN64
 static inline int clzll(const unsigned long long mask) {
     unsigned long leading_zero = 0;
     _BitScanReverse64(&leading_zero, mask);