merge trunk head (37902)
[reactos.git] / reactos / include / ddk / wdm.h
index 72e901e..41ca709 100644 (file)
@@ -181,29 +181,8 @@ InterlockedBitTestAndReset(IN LONG volatile *Base,
 #endif\r
 }\r
 \r
-static __inline__ BOOLEAN\r
-BitScanReverse(OUT ULONG *Index,\r
-               IN ULONG Mask)\r
-{\r
-       BOOLEAN BitPosition = 0;\r
-#if defined(_M_IX86)\r
-       __asm__ __volatile__("bsrl %2,%0\n\t"\r
-                            "setnz %1\n\t"\r
-                            :"=&r" (*Index), "=q" (BitPosition)\r
-                            :"rm" (Mask)\r
-                            :"memory");\r
-       return BitPosition;\r
-#else\r
-       /* Slow implementation for now */\r
-       for( *Index = 31; *Index; (*Index)-- ) {\r
-               if( (1<<*Index) & Mask ) {\r
-                       return TRUE;\r
-               }\r
-       }\r
-\r
-       return FALSE;\r
-#endif\r
-}\r
+#define BitScanForward _BitScanForward\r
+#define BitScanReverse _BitScanReverse\r
 \r
 #endif\r
 \r