Managed C++ code doesn't have the _BitScanReverse* intrinsics, we must use the fallback code for count_digits etc.