Unreviewed, forgot to refactor variable name for windows build in
authorkeith_miller@apple.com <keith_miller@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Mar 2019 02:53:27 +0000 (02:53 +0000)
committerkeith_miller@apple.com <keith_miller@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Mar 2019 02:53:27 +0000 (02:53 +0000)
r243418.

* wtf/MathExtras.h:
(WTF::clz):
(WTF::ctz):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243429 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WTF/ChangeLog
Source/WTF/wtf/MathExtras.h

index dcd8d05..6d12ff6 100644 (file)
@@ -1,3 +1,12 @@
+2019-03-24  Keith Miller  <keith_miller@apple.com>
+
+        Unreviewed, forgot to refactor variable name for windows build in
+        r243418.
+
+        * wtf/MathExtras.h:
+        (WTF::clz):
+        (WTF::ctz):
+
 2019-03-24  Andy Estes  <aestes@apple.com>
 
         [watchOS] Remove unused Proximity Networking code
index a3edd2a..49a3642 100644 (file)
@@ -633,7 +633,7 @@ inline unsigned clz(T value)
     // So we use bit-scan-reverse operation to calculate clz.
     // _BitScanReverse64 is defined in X86_64 and ARM in MSVC supported environments.
     unsigned long ret = 0;
-    if (_BitScanReverse64(&ret, number))
+    if (_BitScanReverse64(&ret, uValue))
         return bitSize - ret;
     return bitSize;
 #else
@@ -662,7 +662,7 @@ inline unsigned ctz(T value)
     return bitSize;
 #elif COMPILER(MSVC) && !CPU(X86)
     unsigned long ret = 0;
-    if (_BitScanForward64(&ret, number))
+    if (_BitScanForward64(&ret, uValue))
         return ret;
     return bitSize;
 #else