public static ulong bits_resetlowest(ulong x) { if (Bmi1.IsBmi1Supported) { return(Bmi1.blsr_u64(x)); } else { return(x & (x - 1)); } }