Author: aandrejevic
Date: Sat Oct 11 16:57:33 2014
New Revision: 64677
URL:
http://svn.reactos.org/svn/reactos?rev=64677&view=rev
Log:
[FAST486]
CountLeadingZeros64 shouldn't loop forever if "Value" is 0.
Modified:
trunk/reactos/lib/fast486/common.inl
Modified: trunk/reactos/lib/fast486/common.inl
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fast486/common.inl?rev…
==============================================================================
--- trunk/reactos/lib/fast486/common.inl [iso-8859-1] (original)
+++ trunk/reactos/lib/fast486/common.inl [iso-8859-1] Sat Oct 11 16:57:33 2014
@@ -38,7 +38,7 @@
ULONG Count = 0;
ULONGLONG Mask = 1ULL << 63;
- while (!(Value & Mask))
+ while (!(Value & Mask) && Mask)
{
Count++;
Mask >>= 1;