HomeSort by relevance Sort by last modified time
    Searched defs:striped (Results 1 - 3 of 3) sorted by null

  /external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
StripedBenchmark.java 39 * A benchmark comparing the various striped implementations.
54 @Override Striped<Lock> get(int stripes) {
55 return Striped.lock(stripes);
59 @Override Striped<Lock> get(int stripes) {
60 return new Striped.SmallLazyStriped<Lock>(stripes, LOCK_SUPPLIER);
64 @Override Striped<Lock> get(int stripes) {
65 return new Striped.LargeLazyStriped<Lock>(stripes, LOCK_SUPPLIER);
69 abstract Striped<Lock> get(int stripes);
72 private Striped<Lock> striped; field in class:StripedBenchmark
98 Striped<Lock> striped = impl.get(numStripes); local
    [all...]
  /external/guava/guava-tests/test/com/google/common/util/concurrent/
StripedTest.java 44 * Tests for Striped.
49 private static List<Striped<?>> strongImplementations() {
51 Striped.readWriteLock(100),
52 Striped.readWriteLock(256),
53 Striped.lock(100),
54 Striped.lock(256),
55 Striped.semaphore(100, 1),
56 Striped.semaphore(256, 1));
78 private static List<Striped<?>> weakImplementations() {
79 return ImmutableList.<Striped<?>>builder(
    [all...]
  /external/apache-commons-math/src/main/java/org/apache/commons/math/dfp/
Dfp.java 341 final int offset = 4; // Starting offset into Striped
342 final char[] striped = new char[getRadixDigits() * rsize + offset * 2]; local
428 striped[0] = '0';
429 striped[1] = '0';
430 striped[2] = '0';
431 striped[3] = '0';
455 striped[q] = fpdecimal.charAt(p);
469 if (striped[q] == '0') {
493 if (striped[p] != '0') {
508 striped[++p] = '0'
    [all...]

Completed in 392 milliseconds