-/* $Id: bitmap.c,v 1.5 2003/07/11 13:50:23 royce Exp $
+/* $Id: bitmap.c,v 1.7 2004/02/02 13:34:01 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
}
+/*
+ * @unimplemented
+ */
+ULONG STDCALL
+RtlFindClearRuns (PRTL_BITMAP BitMapHeader,
+ PRTL_BITMAP_RUN RunArray,
+ ULONG SizeOfRunArray,
+ BOOLEAN LocateLongestRuns)
+{
+ return (ULONG)-1;
+}
+
+
ULONG
STDCALL
RtlFindFirstRunClear (
}
+/*
+ * @unimplemented
+ */
+ULONG STDCALL
+RtlFindLastBackwardRunClear (IN PRTL_BITMAP BitMapHeader,
+ IN ULONG FromIndex,
+ IN PULONG StartingRunIndex)
+{
+ return (ULONG)-1;
+}
+
+
/*
* @implemented
*/
}
+/*
+ * @unimplemented
+ */
+ULONG STDCALL
+RtlFindNextForwardRunClear (IN PRTL_BITMAP BitMapHeader,
+ IN ULONG FromIndex,
+ IN PULONG StartingRunIndex)
+{
+ return (ULONG)-1;
+}
+
+
/*
* @implemented
*/
}
}
+
+/*
+ * @implemented
+ */
+CCHAR STDCALL
+RtlFindLeastSignificantBit (IN ULONGLONG Set)
+{
+ int i;
+
+ if (Set == 0ULL)
+ return -1;
+
+ for (i = 0; i < 64; i++)
+ {
+ if (Set & (1 << i))
+ return (CCHAR)i;
+ }
+
+ return -1;
+}
+
+
+/*
+ * @implemented
+ */
+CCHAR STDCALL
+RtlFindMostSignificantBit (IN ULONGLONG Set)
+{
+ int i;
+
+ if (Set == 0ULL)
+ return -1;
+
+ for (i = 63; i >= 0; i--)
+ {
+ if (Set & (1 << i))
+ return (CCHAR)i;
+ }
+
+ return -1;
+}
+
/* EOF */