Home
last modified time | relevance | path

Searched refs:getAndAdd (Results 1 – 25 of 33) sorted by relevance

12

/external/kotlinx.atomicfu/atomicfu/src/jsMain/kotlin/kotlinx/atomicfu/
DAtomicFU.kt102 public actual fun getAndAdd(delta: Int): Int { in toString() method
120 public actual inline operator fun plusAssign(delta: Int) { getAndAdd(delta) } in toString()
122 public actual inline operator fun minusAssign(delta: Int) { getAndAdd(-delta) } in toString()
156 public actual fun getAndAdd(delta: Long): Long { in getAndIncrement() method
174 public actual inline operator fun plusAssign(delta: Long) { getAndAdd(delta) } in incrementAndGet()
176 public actual inline operator fun minusAssign(delta: Long) { getAndAdd(-delta) } in minusAssign()
/external/kotlinx.atomicfu/atomicfu/src/jvmMain/kotlin/kotlinx/atomicfu/
DAtomicFU.kt250 public actual fun getAndAdd(delta: Int): Int { in getAndAdd() method
252 val oldValue = FU.getAndAdd(this, delta) in getAndAdd()
291 getAndAdd(delta) in plusAssign()
298 getAndAdd(-delta) in minusAssign()
379 public actual fun getAndAdd(delta: Long): Long { in getAndAdd() method
381 val oldValue = FU.getAndAdd(this, delta) in getAndAdd()
420 getAndAdd(delta) in plusAssign()
427 getAndAdd(-delta) in minusAssign()
/external/kotlinx.atomicfu/atomicfu/src/nativeMain/kotlin/kotlinx/atomicfu/
DAtomicFU.kt104 public actual inline fun getAndAdd(delta: Int): Int = a.addAndGet(delta) - delta in toString() method in kotlinx.atomicfu.AtomicInt
109 public actual inline operator fun plusAssign(delta: Int) { getAndAdd(delta) } in toString()
110 public actual inline operator fun minusAssign(delta: Int) { getAndAdd(-delta) } in toString()
138 public actual inline fun getAndAdd(delta: Long): Long = a.addAndGet(delta) - delta in getAndIncrement() method in kotlinx.atomicfu.AtomicLong
143 public actual inline operator fun plusAssign(delta: Long) { getAndAdd(delta) } in getAndIncrement()
144 public actual inline operator fun minusAssign(delta: Long) { getAndAdd(-delta) } in minusAssign()
/external/kotlinx.atomicfu/atomicfu/src/commonTest/kotlin/internal_test2/
DС.kt16 check(a.intArr[3].getAndAdd(5) == 0) in testInternal()
19 check(d.da.xxx.getAndAdd(90) == 5) in testInternal()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DCensusStatsModule.java222 outboundWireSizeUpdater.getAndAdd(this, bytes); in outboundWireSize()
232 inboundWireSizeUpdater.getAndAdd(this, bytes); in inboundWireSize()
242 outboundUncompressedSizeUpdater.getAndAdd(this, bytes); in outboundUncompressedSize()
252 inboundUncompressedSizeUpdater.getAndAdd(this, bytes); in inboundUncompressedSize()
510 outboundWireSizeUpdater.getAndAdd(this, bytes); in outboundWireSize()
520 inboundWireSizeUpdater.getAndAdd(this, bytes); in inboundWireSize()
530 outboundUncompressedSizeUpdater.getAndAdd(this, bytes); in outboundUncompressedSize()
540 inboundUncompressedSizeUpdater.getAndAdd(this, bytes); in inboundUncompressedSize()
DAtomicLongCounter.java35 counter.getAndAdd(delta); in add()
/external/guava/guava/src/com/google/common/util/concurrent/
DAtomicLongMap.java115 return getAndAdd(key, 1); in getAndIncrement()
123 return getAndAdd(key, -1); in getAndDecrement()
131 public long getAndAdd(K key, long delta) { in getAndAdd() method in AtomicLongMap
DAtomicDouble.java156 public final double getAndAdd(double delta) { in getAndAdd() method in AtomicDouble
/external/kotlinx.atomicfu/atomicfu/src/commonTest/kotlin/kotlinx/atomicfu/test/
DTopLevelTest.kt38 check(a.getAndAdd(2) == 2) in <lambda>()
60 check(b.getAndAdd(100000000000000000) == 8924920024888888848) in <lambda>()
133 check(longArr[4].getAndAdd(100000000000000000) == 8924920024888888848) in testLongArray()
DArithmeticTest.kt26 check(a._x.getAndAdd(2) == 2) in testInt()
49 check(a.z.getAndAdd(100000000000000000) == 8924920024888888848) in testLong()
DLockFreeLongCounterTest.kt50 fun add2() = counter.getAndAdd(2) in get()
/external/guava/android/guava/src/com/google/common/util/concurrent/
DAtomicLongMap.java143 return getAndAdd(key, 1); in getAndIncrement()
151 return getAndAdd(key, -1); in getAndDecrement()
159 public long getAndAdd(K key, long delta) { in getAndAdd() method in AtomicLongMap
DAtomicDouble.java149 public final double getAndAdd(double delta) { in getAndAdd() method in AtomicDouble
/external/guava/guava/src/com/google/common/hash/
DLongAddables.java63 getAndAdd(x); in add()
/external/guava/android/guava/src/com/google/common/hash/
DLongAddables.java63 getAndAdd(x); in add()
/external/guava/android/guava/src/com/google/common/cache/
DLongAddables.java65 getAndAdd(x); in add()
/external/guava/guava/src/com/google/common/cache/
DLongAddables.java65 getAndAdd(x); in add()
/external/guava/android/guava-testlib/src/com/google/common/testing/
DFakeTicker.java73 return nanos.getAndAdd(autoIncrementStepNanos); in read()
/external/caliper/caliper/src/main/java/com/google/caliper/worker/
DAggregateAllocationsRecorder.java40 allocationSize.getAndAdd(size);
/external/kotlinx.atomicfu/atomicfu/src/commonMain/kotlin/kotlinx/atomicfu/
DAtomicFU.common.kt244 public fun getAndAdd(delta: Int): Int in lazySet() method in kotlinx.atomicfu.AtomicInt
355 public fun getAndAdd(delta: Long): Long in lazySet() method in kotlinx.atomicfu.AtomicLong
/external/guava/guava-testlib/src/com/google/common/testing/
DFakeTicker.java97 return nanos.getAndAdd(autoIncrementStepNanos); in read()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DAtomicLongMapBasherTest.java82 map.getAndAdd(key, delta); in testModify_basher()
DAtomicDoubleArrayTest.java130 aa.getAndAdd(index, 1.0); in testIndexing()
241 double z = aa.getAndAdd(i, y); in testGetAndAdd()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DAtomicLongMapBasherTest.java82 map.getAndAdd(key, delta); in testModify_basher()
DAtomicDoubleArrayTest.java130 aa.getAndAdd(index, 1.0); in testIndexing()
240 double z = aa.getAndAdd(i, y); in testGetAndAdd()

12