Java Ceil ceilMaskPOT(int n)

Here you can find the source of ceilMaskPOT(int n)

Description

ceil Mask POT

License

Open Source License

Declaration

public static int ceilMaskPOT(int n) 

Method Source Code

//package com.java2s;

public class Main {
    public static int ceilMaskPOT(int n) {
        n |= n >>> 1;/*from ww w .  j av  a  2s  .c  om*/
        n |= n >>> 2;
        n |= n >>> 4;
        n |= n >>> 8;
        n |= n >>> 16;
        return n;
    }
}

Related

  1. ceilingPowerOfTwo(final int a)
  2. ceilingPowerOfTwo(int value)
  3. ceilInt(Double d, double intv)
  4. ceilInt(final double x)
  5. ceilLogBaseTwo(final int i)
  6. ceilMultiple(float source, float multiple)
  7. ceilPositive(float x)
  8. ceilPoT(int arg)
  9. ceilPow2(int v)