blob: a7c63b9a63f55a94ddc1f10d8701415eb429e67b [file] [log] [blame]
#include <intrin.h>
unsigned char _BitScanReverse64(unsigned __LONG32 *Index, unsigned __int64 Mask)
{
unsigned __int64 n;
__asm__ __volatile__("bsrq %0,%1" : "+r" (Mask),"=rm" (n) : : "memory");
*Index = (unsigned __LONG32) n;
return (Mask != 0);
}