IntUtil.java

jmud-0.11/src/integer/IntUtil.java · 183 B

From the archive jmud-0_11.tgz

Download the archive   « Back to the archive contents

package integer;

public class IntUtil {

    static public int get3of4(int n) {
	return (n >> 1) + get1of4(n);
    }

    static public int get1of4(int n) {
	return n >> 2;
    }

}

Site Stats

Snippets: 1791
Codebases: 571