- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 30 for 0xffffff (0.25 sec)
-
guava-tests/test/com/google/common/escape/ArrayBasedUnicodeEscaperTest.java
// of the surrogate characters lie within the safe range). It is important // not to accidentally treat this as a sequence of safe characters. String unsafeInput = "\uDBFF\uDFFF"; // 0x10FFFF assertEquals("X", surrogateEscaper.escape(unsafeInput)); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Feb 07 23:02:38 GMT 2024 - 5K bytes - Viewed (1) -
guava-tests/test/com/google/common/math/MathBenchmarking.java
* the order of magnitude of the generated values uniformly at random. * * @author Louis Wasserman */ final class MathBenchmarking { static final int ARRAY_SIZE = 0x10000; static final int ARRAY_MASK = 0x0ffff; static final Random RANDOM_SOURCE = new Random(314159265358979L); static final int MAX_EXPONENT = 100; /* * Duplicated from LongMath. * binomial(biggestBinomials[k], k) fits in a long, but not
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 4.1K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java
* kinds of common human text. * * @see MaxCodePoint#decode */ @Param({"0x80", "0x90", "0x100", "0x800", "0x10000", "0x10ffff"}) MaxCodePoint maxCodePoint; @Param({"16384"}) int charCount; @Param({"MURMUR3_32", "MURMUR3_128", "SHA1"}) HashFunctionEnum hashFunctionEnum; private String[] strings;
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 5.3K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java
* Benchmarks for certain methods of {@code UnsignedLongs}. * * @author Eamonn McManus */ public class UnsignedLongsBenchmark { private static final int ARRAY_SIZE = 0x10000; private static final int ARRAY_MASK = 0x0ffff; private static final Random RANDOM_SOURCE = new Random(314159265358979L); private static final long[] longs = new long[ARRAY_SIZE]; private static final long[] divisors = new long[ARRAY_SIZE];
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 4.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java
private static final ImmutableSet<Long> TEST_LONGS; private static int force32(int value) { // GWT doesn't consistently overflow values to make them 32-bit, so we need to force it. return value & 0xffffffff; } static { ImmutableSet.Builder<Integer> testIntsBuilder = ImmutableSet.builder(); ImmutableSet.Builder<Long> testLongsBuilder = ImmutableSet.builder(); for (int i = -3; i <= 3; i++) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Jun 01 09:32:35 GMT 2023 - 9.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashTestUtils.java
int count = 0; // originally was 2 * Math.log(...), making it try more times to avoid flakiness issues int maxCount = (int) (4 * Math.log(2 * keyBits * hashBits) + 1); while (same != 0xffffffff || diff != 0xffffffff) { int key1 = rand.nextInt(); // flip input bit for key2 int key2 = key1 ^ (1 << i); // get hashes int hash1 = function.hashInt(key1).asInt();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 25.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java
// we can get away with i++ because the whole point of this method is to return false if we find // a code point that doesn't fit in a char. for (int i = 0; i < string.length(); i++) { if (string.codePointAt(i) > 0xffff) { return false; } } return true; } @SuppressWarnings("deprecation") public void testSimpleStringUtf8() { assertEquals(
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 08 13:56:22 GMT 2021 - 8.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/Utf8Test.java
+ // Three byte characters THREE_BYTE_ROUNDTRIPPABLE_CHARACTERS; // 1,048,576 [chars 0x10000L to 0x10FFFF] private static final long FOUR_BYTE_ROUNDTRIPPABLE_CHARACTERS = 0x10FFFF - 0x10000L + 1; // 289,571,839 private static final long EXPECTED_FOUR_BYTE_ROUNDTRIPPABLE_COUNT = // All one byte characters
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 12.7K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/HashMultisetAddPresentBenchmark.java
import java.util.Random; /** * Benchmark for HashMultiset.add for an already-present element. * * @author Louis Wasserman */ public class HashMultisetAddPresentBenchmark { private static final int ARRAY_MASK = 0x0ffff; private static final int ARRAY_SIZE = 0x10000; List<Multiset<Integer>> multisets = new ArrayList<>(0x10000); int[] queries = new int[ARRAY_SIZE]; @BeforeExperiment void setUp() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 1.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java
} catch (IllegalArgumentException expected) { // Kotlin native, see above } } public void testDecodeInt() { assertThat(UnsignedInts.decode("0xffffffff")).isEqualTo(0xffffffff); assertThat(UnsignedInts.decode("01234567")).isEqualTo(01234567); // octal assertThat(UnsignedInts.decode("#12345678")).isEqualTo(0x12345678);
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 06 16:10:08 GMT 2024 - 12.7K bytes - Viewed (0)