(int x)
| 490 | |
| 491 | private static final int ALL_SET = ~0; |
| 492 | private static int ceilToPowerOfTwo(int x) { |
| 493 | return 1 << IntMath.log2(x, RoundingMode.CEILING); |
| 494 | } |
| 495 | |
| 496 | /* |
| 497 | * This method was written by Doug Lea with assistance from members of JCP JSR-166 Expert Group |