Last active
December 20, 2017 16:28
-
-
Save richardstartin/26a402bb47e56bea18b0f32c2f52b100 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.concurrent.ThreadLocalRandom; | |
public class BLSI { | |
public static void main(String[] args) { | |
long blackhole = -1L; | |
while (blackhole != 0L) { | |
blackhole = blsi(ThreadLocalRandom.current().nextLong()); | |
} | |
System.out.println(blackhole); | |
} | |
public static long blsi(long value) { | |
return value & -value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment