Java Long Number Mod modifiedCalcElementOffset(long index, long mask)

Here you can find the source of modifiedCalcElementOffset(long index, long mask)

Description

This method assumes index is actually (index << 1) because lower bit is used for resize hence the >> 1

License

Apache License

Declaration

static int modifiedCalcElementOffset(long index, long mask) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    /**/*from www  .jav  a2  s  . com*/
     * This method assumes index is actually (index << 1) because lower bit is used for resize hence the >> 1
     */
    static int modifiedCalcElementOffset(long index, long mask) {
        return (int) (index & mask) >> 1;
    }
}

Related

  1. mod(long a, long b)
  2. mod(long pNum, long pDivisor)
  3. mod(long v, long m)
  4. mod(long x, long y)
  5. modDivide(long a, long b, long m)
  6. modifyValue(long value, char op, long modifier, long max, long min)
  7. mods(long v, long m)
  8. modularReciprocal(long a, long mod)
  9. modulo(final long x, final long y)