Java Number Difference difference(int start, int boundary)

Here you can find the source of difference(int start, int boundary)

Description

difference

License

Open Source License

Declaration

public static int difference(int start, int boundary) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int difference(int start, int boundary) {
        return ((boundary + 1) - (start & boundary)) & boundary;
    }/*from   w  ww  . j a v  a  2 s.  c  o  m*/
}

Related

  1. difference(double m1, double M1, double m2, double M2)
  2. difference(float x, float y)
  3. difference(Integer value1, Integer value2)
  4. differenceModulo(int a, int b, int c)