Tabnine Logo
Integer.rotateLeft
Code IndexAdd Tabnine to your IDE (free)

How to use
rotateLeft
method
in
java.lang.Integer

Best Java code snippets using java.lang.Integer.rotateLeft (Showing top 20 results out of 1,755)

origin: google/guava

private static int mixH1(int h1, int k1) {
 h1 ^= k1;
 h1 = Integer.rotateLeft(h1, 13);
 h1 = h1 * 5 + 0xe6546b64;
 return h1;
}
origin: google/guava

private static int mixK1(int k1) {
 k1 *= C1;
 k1 = Integer.rotateLeft(k1, 15);
 k1 *= C2;
 return k1;
}
origin: google/guava

static int smear(int hashCode) {
 return C2 * Integer.rotateLeft(hashCode * C1, 15);
}
origin: google/guava

static int smear(int hashCode) {
 return (int) (C2 * Integer.rotateLeft((int) (hashCode * C1), 15));
}
origin: prestodb/presto

private static int mixK1(int k1)
{
  k1 *= C1;
  k1 = Integer.rotateLeft(k1, 15);
  k1 *= C2;
  return k1;
}
origin: prestodb/presto

private static int mixH1(int h1, int k1)
{
  h1 ^= k1;
  h1 = Integer.rotateLeft(h1, 13);
  h1 = h1 * 5 + 0xe6546b64;
  return h1;
}
origin: prestodb/presto

private static int mixH1(int h1, int k1) {
 h1 ^= k1;
 h1 = Integer.rotateLeft(h1, 13);
 h1 = h1 * 5 + 0xe6546b64;
 return h1;
}
origin: clojure/clojure

private static int mixK1(int k1){
  k1 *= C1;
  k1 = Integer.rotateLeft(k1, 15);
  k1 *= C2;
  return k1;
}

origin: clojure/clojure

private static int mixH1(int h1, int k1){
  h1 ^= k1;
  h1 = Integer.rotateLeft(h1, 13);
  h1 = h1 * 5 + 0xe6546b64;
  return h1;
}

origin: prestodb/presto

private static int mixK1(int k1) {
 k1 *= C1;
 k1 = Integer.rotateLeft(k1, 15);
 k1 *= C2;
 return k1;
}
origin: redisson/redisson

/**
 * Smear hash code.
 */
public static int smear(int hashCode) {
  return C2 * Integer.rotateLeft(hashCode * C1, 15);
}
origin: apache/incubator-druid

/**
 * This method was rewritten in Java from an intermediate step of the Murmur hash function in
 * https://github.com/aappleby/smhasher/blob/master/src/MurmurHash3.cpp, which contained the
 * following header:
 *
 * MurmurHash3 was written by Austin Appleby, and is placed in the public domain. The author
 * hereby disclaims copyright to this source code.
 */
static int smear(int hashCode)
{
 return C2 * Integer.rotateLeft(hashCode * C1, 15);
}
origin: prestodb/presto

static int smear(int hashCode) {
 return C2 * Integer.rotateLeft(hashCode * C1, 15);
}
origin: prestodb/presto

static int smear(int hashCode) {
 return (int) (C2 * Integer.rotateLeft((int) (hashCode * C1), 15));
}
origin: google/j2objc

private static int mixH1(int h1, int k1) {
 h1 ^= k1;
 h1 = Integer.rotateLeft(h1, 13);
 h1 = h1 * 5 + 0xe6546b64;
 return h1;
}
origin: google/j2objc

private static int mixK1(int k1) {
 k1 *= C1;
 k1 = Integer.rotateLeft(k1, 15);
 k1 *= C2;
 return k1;
}
origin: spring-projects/spring-framework

@Override
public int hashCode() {
 return name.hashCode()
   ^ Integer.rotateLeft(descriptor.hashCode(), 8)
   ^ Integer.rotateLeft(bootstrapMethod.hashCode(), 16)
   ^ Integer.rotateLeft(Arrays.hashCode(bootstrapMethodArguments), 24);
}
origin: stanfordnlp/CoreNLP

@Override
public int hashCode() {
 /* I'm not sure why this is happening, and i really don't want to
   spend a month tracing it down. -wmorgan. */
 //if (val == null) return num << 16 ^ 1 << 5 ^ tag.hashCode();
 //return num << 16 ^ val.hashCode() << 5 ^ tag.hashCode();
 if (hashCode == 0) {
  int hNum = Integer.rotateLeft(num,16);
  int hVal = Integer.rotateLeft(val.hashCode(),5);
  hashCode =  hNum ^ hVal ^ tag.hashCode();
 }
 return hashCode;
}
origin: redisson/redisson

@Override
public int hashCode() {
 return name.hashCode()
   ^ Integer.rotateLeft(descriptor.hashCode(), 8)
   ^ Integer.rotateLeft(bootstrapMethod.hashCode(), 16)
   ^ Integer.rotateLeft(Arrays.hashCode(bootstrapMethodArguments), 24);
}
origin: clojure/clojure

@Override
public int hashCode() {
 return name.hashCode()
   ^ Integer.rotateLeft(descriptor.hashCode(), 8)
   ^ Integer.rotateLeft(bootstrapMethod.hashCode(), 16)
   ^ Integer.rotateLeft(Arrays.hashCode(bootstrapMethodArguments), 24);
}
java.langIntegerrotateLeft

Javadoc

Rotates the bits of the specified integer to the left by the specified number of bits.

Popular methods of Integer

  • parseInt
    Parses the specified string as a signed integer value using the specified radix. The ASCII character
  • toString
    Converts the specified signed integer into a string representation based on the specified radix. The
  • valueOf
    Parses the specified string as a signed integer value using the specified radix.
  • intValue
    Gets the primitive value of this int.
  • <init>
    Constructs a new Integer from the specified string.
  • toHexString
    Returns a string representation of the integer argument as an unsigned integer in base 16.The unsign
  • equals
    Compares this instance with the specified object and indicates if they are equal. In order to be equ
  • compareTo
    Compares this Integer object to another object. If the object is an Integer, this function behaves l
  • hashCode
  • compare
    Compares two int values.
  • longValue
    Returns the value of this Integer as along.
  • decode
    Parses the specified string and returns a Integer instance if the string can be decoded into an inte
  • longValue,
  • decode,
  • numberOfLeadingZeros,
  • getInteger,
  • doubleValue,
  • toBinaryString,
  • byteValue,
  • bitCount,
  • shortValue,
  • highestOneBit

Popular in Java

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • putExtra (Intent)
  • compareTo (BigDecimal)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now