MCPcopy Create free account
hub / github.com/questdb/questdb / encodeLowHighInts

Method encodeLowHighInts

core/src/main/java/io/questdb/std/Numbers.java:802–804  ·  view source on GitHub ↗
(int low, int high)

Source from the content-addressed store, hash-verified

800 }
801
802 public static long encodeLowHighInts(int low, int high) {
803 return ((Integer.toUnsignedLong(high)) << 32L) | Integer.toUnsignedLong(low);
804 }
805
806 public static int encodeLowHighShorts(short low, short high) {
807 return ((Short.toUnsignedInt(high)) << 16) | Short.toUnsignedInt(low);

Callers 15

testFdCacheMethod · 0.95
testLongFdMethod · 0.95
testLongFd2Method · 0.95
testDedupWithKeyMethod · 0.95
testConcurrentInsertMethod · 0.95
getCacheAddressMethod · 0.95
parseValueMethod · 0.95

Calls 1

toUnsignedLongMethod · 0.80

Tested by 9

testFdCacheMethod · 0.76
testLongFdMethod · 0.76
testLongFd2Method · 0.76
testDedupWithKeyMethod · 0.76
testConcurrentInsertMethod · 0.76