Closed johu56 closed 1 month ago
In the method shoud something as following inserted (sorry, I'm not able to make a pull request)
if (bb < 0L) { return (bb==0X8000000000000000L); }
Precisely, good call. To simplify it I am going to modify the function to:
public static boolean hasOnly1Bit(Long bb) { return bb != 0L && extractLsb(bb) == 0L; }
In the method shoud something as following inserted (sorry, I'm not able to make a pull request)