/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Threading.Overlapped/src/System/Threading/ |
H A D | DeferredDisposableLifetime.cs | 59 int newCount = checked(oldCount + 1); in AddRef() 61 if (Interlocked.CompareExchange(ref _count, newCount, oldCount) == oldCount) in AddRef() 74 int newCount = oldCount - 1; in Release() 75 if (Interlocked.CompareExchange(ref _count, newCount, oldCount) == oldCount) in Release() 77 if (newCount == 0) in Release() 87 int newCount = oldCount + 1; in Release() 88 if (Interlocked.CompareExchange(ref _count, newCount, oldCount) == oldCount) in Release() 90 if (newCount == -1) in Release() 106 int newCount = -1 - oldCount; in Dispose() 107 if (Interlocked.CompareExchange(ref _count, newCount, oldCount) == oldCount) in Dispose() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/Common/src/CoreLib/System/Threading/ |
H A D | DeferredDisposableLifetime.cs | 59 int newCount = checked(oldCount + 1); in AddRef() 61 if (Interlocked.CompareExchange(ref _count, newCount, oldCount) == oldCount) in AddRef() 74 int newCount = oldCount - 1; in Release() 75 if (Interlocked.CompareExchange(ref _count, newCount, oldCount) == oldCount) in Release() 77 if (newCount == 0) in Release() 87 int newCount = oldCount + 1; in Release() 88 if (Interlocked.CompareExchange(ref _count, newCount, oldCount) == oldCount) in Release() 90 if (newCount == -1) in Release() 106 int newCount = -1 - oldCount; in Dispose() 107 if (Interlocked.CompareExchange(ref _count, newCount, oldCount) == oldCount) in Dispose() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/corert/src/System.Private.CoreLib/shared/System/Threading/ |
H A D | DeferredDisposableLifetime.cs | 70 int newCount = checked(oldCount + 1); in AddRef() 72 if (Interlocked.CompareExchange(ref _count, newCount, oldCount) == oldCount) in AddRef() 85 int newCount = oldCount - 1; in Release() 86 if (Interlocked.CompareExchange(ref _count, newCount, oldCount) == oldCount) in Release() 88 if (newCount == 0) in Release() 98 int newCount = oldCount + 1; in Release() 99 if (Interlocked.CompareExchange(ref _count, newCount, oldCount) == oldCount) in Release() 101 if (newCount == -1) in Release() 117 int newCount = -1 - oldCount; in Dispose() 118 if (Interlocked.CompareExchange(ref _count, newCount, oldCount) == oldCount) in Dispose() [all …]
|
/dports/x11/plasma5-plasma-workspace/plasma-workspace-5.23.5/applets/kicker/plugin/ |
H A D | funnelmodel.cpp | 50 int newCount = model->rowCount(); in setSourceModel() local 58 if (newCount > oldCount) { in setSourceModel() 59 beginInsertRows(QModelIndex(), oldCount, newCount - 1); in setSourceModel() 62 } else if (newCount < oldCount) { in setSourceModel() 63 if (newCount == 0) { in setSourceModel() 68 beginRemoveRows(QModelIndex(), newCount, oldCount - 1); in setSourceModel() 76 if (newCount > 0) { in setSourceModel() 77 emit dataChanged(index(0, 0), index(qMin(oldCount, newCount) - 1, 0)); in setSourceModel() 80 if (oldCount != newCount) { in setSourceModel()
|
/dports/devel/okteta/okteta-0.26.6/kasten/controllers/view/structures/datatypes/ |
H A D | topleveldatainformation.hpp | 87 void _childCountAboutToChange(DataInformation* sender, uint oldCount, uint newCount); 88 void _childCountChanged(DataInformation* sender, uint oldCount, uint newCount); 169 if (newCount < oldCount) { // newCount is smaller so oldCount is at least 1 -> no underflow in _childCountAboutToChange() 170 emit childrenAboutToBeRemoved(sender, newCount, oldCount - 1); in _childCountAboutToChange() 171 } else if (newCount > oldCount) { // newCount is larger so it is at least 1 -> no underflow in _childCountAboutToChange() 172 emit childrenAboutToBeInserted(sender, oldCount, newCount - 1); in _childCountAboutToChange() 176 … TopLevelDataInformation::_childCountChanged(DataInformation* sender, uint oldCount, uint newCount) in _childCountChanged() argument 178 if (newCount < oldCount) { // newCount is smaller so oldCount is at least 1 -> no underflow in _childCountChanged() 179 emit childrenRemoved(sender, newCount, oldCount - 1); in _childCountChanged() 180 } else if (newCount > oldCount) { // newCount is larger so it is at least 1 -> no underflow in _childCountChanged() [all …]
|
/dports/graphics/opencollada/OpenCOLLADA-1.6.68/COLLADAFramework/include/ |
H A D | COLLADAFWPointerArray.h | 56 size_t newCount = ArrayPrimitiveType<T*>::mCount + valuesArray.getCount(); in appendValues() local 57 ArrayPrimitiveType<T*>::reallocMemory(newCount); in appendValues() 58 for ( size_t i = ArrayPrimitiveType<T*>::mCount, j = 0; i < newCount; ++i, ++j) in appendValues() 62 ArrayPrimitiveType<T*>::mCount = newCount; in appendValues() 82 size_t newCount = pre.getCount(); in cloneContents() local 83 ArrayPrimitiveType<T*>::reallocMemory(newCount); in cloneContents() 84 for ( size_t i = 0; i < newCount; ++i) in cloneContents() 88 ArrayPrimitiveType<T*>::mCount = newCount; in cloneContents()
|
/dports/misc/actiona/actiona-3.10.1/actions/actionpacksystem/systeminfo/simulator/ |
H A D | qsysteminfoconnection_simulator.cpp | 160 int newCount = data.wLanInfo.count(); in setNetworkInfoData() local 162 if (newCount < actualCount) { in setNetworkInfoData() 165 } else if (newCount > actualCount) { in setNetworkInfoData() 178 newCount = data.ethernetInfo.count(); in setNetworkInfoData() 179 if (newCount < actualCount) { in setNetworkInfoData() 182 } else if (newCount > actualCount) { in setNetworkInfoData() 195 if (newCount < actualCount) { in setNetworkInfoData() 198 } else if (newCount > actualCount) { in setNetworkInfoData() 210 newCount = data.cellularInfo.count(); in setNetworkInfoData() 211 if (newCount < actualCount) { in setNetworkInfoData() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/aspnetwebstack/test/System.Web.Mvc.Test/Async/Test/ |
H A D | OperationCounterTest.cs | 60 int newCount = ops.Count; in DecrementWithIntegerArgument() 64 Assert.Equal(-3, newCount); in DecrementWithIntegerArgument() 75 int newCount = ops.Count; in DecrementWithNoArguments() 79 Assert.Equal(-1, newCount); in DecrementWithNoArguments() 90 int newCount = ops.Count; in IncrementWithIntegerArgument() 94 Assert.Equal(3, newCount); in IncrementWithIntegerArgument() 105 int newCount = ops.Count; in IncrementWithNoArguments() 109 Assert.Equal(1, newCount); in IncrementWithNoArguments()
|
/dports/x11-toolkits/qt5-virtualkeyboard/kde-qtvirtualkeyboard-5.15.2p4/src/virtualkeyboard/ |
H A D | qvirtualkeyboardselectionlistmodel.cpp | 293 int newCount = d->dataSource ? d->dataSource->selectionListItemCount(d->type) : 0; in selectionListChanged() local 294 if (newCount) { in selectionListChanged() 295 int changedCount = qMin(oldCount, newCount); in selectionListChanged() 298 if (oldCount > newCount) { in selectionListChanged() 299 beginRemoveRows(QModelIndex(), newCount, oldCount - 1); in selectionListChanged() 300 d->rowCount = newCount; in selectionListChanged() 302 } else if (oldCount < newCount) { in selectionListChanged() 303 beginInsertRows(QModelIndex(), oldCount, newCount - 1); in selectionListChanged() 304 d->rowCount = newCount; in selectionListChanged() 313 …>wclAutoCommitWord = ((oldCount > 1 || (oldCount == 1 && d->wclAutoCommitWord)) && newCount == 1 && in selectionListChanged()
|
/dports/lang/kawa/kawa-3.1.1/gnu/kawa/util/ |
H A D | ExitCalled.java | 28 Integer newCount = Integer.valueOf(oldCount == null ? 1 in push() local 30 isHandlingExitCalled.set(newCount); in push() 35 int newCount = oldCount == null ? 0 // error in pop() local 37 isHandlingExitCalled.set(Integer.valueOf(newCount)); in pop() 39 if (newCount <= 0 && ex != null) { in pop() 42 return newCount; in pop()
|
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.ServiceModel/System/ServiceModel/Dispatcher/ |
H A D | QueryUtil.cs | 262 if (newCount >= this.buffer.Length) in Add() 264 this.Grow(newCount); in Add() 268 this.count = newCount; in Add() 277 this.Grow(newCount); in Add() 281 this.count = newCount; in Add() 432 this.Grow(newCount); in Reserve() 434 this.count = newCount; in Reserve() 445 int newCount; in ReserveAt() 453 this.Grow(newCount); in ReserveAt() 463 this.Grow(newCount); in ReserveAt() [all …]
|
/dports/net/ooni-probe-cli/probe-cli-3.10.1/vendor/github.com/ooni/psiphon/oopsi/github.com/marusama/semaphore/ |
H A D | semaphore.go | 101 newCount := count + uint64(n) 103 if newCount <= limit { 104 if atomic.CompareAndSwapUint64(&s.state, state, limit<<32+newCount) { 146 newCount := count + uint64(n) 148 if newCount <= limit { 149 if atomic.CompareAndSwapUint64(&s.state, state, limit<<32+newCount) { 178 newCount := count - uint64(n) 180 if atomic.CompareAndSwapUint64(&s.state, state, state&0xFFFFFFFF00000000+newCount) {
|
/dports/net/ooni-mini/probe-engine-0.23.0/vendor/github.com/ooni/psiphon/oopsi/github.com/marusama/semaphore/ |
H A D | semaphore.go | 101 newCount := count + uint64(n) 103 if newCount <= limit { 104 if atomic.CompareAndSwapUint64(&s.state, state, limit<<32+newCount) { 146 newCount := count + uint64(n) 148 if newCount <= limit { 149 if atomic.CompareAndSwapUint64(&s.state, state, limit<<32+newCount) { 178 newCount := count - uint64(n) 180 if atomic.CompareAndSwapUint64(&s.state, state, state&0xFFFFFFFF00000000+newCount) {
|
/dports/audio/carla/Carla-2.4.1/source/backend/plugin/ |
H A D | CarlaPluginInternal.cpp | 53 carla_zeroStructs(ports, newCount); in createNew() 55 count = newCount; in createNew() 106 ports = new PluginCVPort[newCount]; in createNew() 107 carla_zeroStructs(ports, newCount); in createNew() 109 count = newCount; in createNew() 219 data = new ParameterData[newCount]; in createNew() 220 carla_zeroStructs(data, newCount); in createNew() 240 count = newCount; in createNew() 423 names = new ProgramName[newCount]; in createNew() 426 count = newCount; in createNew() [all …]
|
/dports/graphics/pear-Image_3D/Image_3D-0.4.2/Image/3D/Paintable/Object/ |
H A D | Map.php | 82 $newCount = count($this->_points[$newRow]); 85 if ($newCount < $lastCount) { 90 $tmp = $newCount; 91 $newCount = $lastCount; 95 $top = (($newCount == 1) ? 1 : 1 / ($newCount - 1)); 99 for ($i = 1; $i < $newCount; $i++) {
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/protobuf/objectivec/ |
H A D | GPBArray.m | 461 _count = newCount; 479 _count = newCount; 512 _count = newCount; 709 _count = newCount; 727 _count = newCount; 760 _count = newCount; 957 _count = newCount; 975 _count = newCount; 1008 _count = newCount; 1205 _count = newCount; [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/protobuf/objectivec/ |
H A D | GPBArray.m | 461 _count = newCount; 479 _count = newCount; 512 _count = newCount; 709 _count = newCount; 727 _count = newCount; 760 _count = newCount; 957 _count = newCount; 975 _count = newCount; 1008 _count = newCount; 1205 _count = newCount; [all …]
|
/dports/biology/seqan-apps/seqan-seqan-v2.4.0/include/seqan/parallel/ |
H A D | parallel_splitting.h | 229 _resize(Splitter<TValue, TSpec> &splitter, TSize1 intervalLen, TSize2 newCount) 231 if (newCount != 0) 233 splitter.blockLength = intervalLen / newCount; 234 splitter.rest = intervalLen % newCount; 241 splitter.subintervalCount = newCount; 246 resize(Splitter<TValue, TSpec> &splitter, TSize newCount) 248 _resize(splitter, splitter.blockLength * splitter.subintervalCount + splitter.rest, newCount); 249 return newCount;
|
/dports/biology/seqan/seqan-library-2.4.0/include/seqan/parallel/ |
H A D | parallel_splitting.h | 229 _resize(Splitter<TValue, TSpec> &splitter, TSize1 intervalLen, TSize2 newCount) 231 if (newCount != 0) 233 splitter.blockLength = intervalLen / newCount; 234 splitter.rest = intervalLen % newCount; 241 splitter.subintervalCount = newCount; 246 resize(Splitter<TValue, TSpec> &splitter, TSize newCount) 248 _resize(splitter, splitter.blockLength * splitter.subintervalCount + splitter.rest, newCount); 249 return newCount;
|
/dports/biology/pbseqan/seqan-21d95d737d8decb5cc3693b9065d81e831e7f57d/include/seqan/parallel/ |
H A D | parallel_splitting.h | 229 _resize(Splitter<TValue, TSpec> &splitter, TSize1 intervalLen, TSize2 newCount) 231 if (newCount != 0) 233 splitter.blockLength = intervalLen / newCount; 234 splitter.rest = intervalLen % newCount; 241 splitter.subintervalCount = newCount; 246 resize(Splitter<TValue, TSpec> &splitter, TSize newCount) 248 _resize(splitter, splitter.blockLength * splitter.subintervalCount + splitter.rest, newCount); 249 return newCount;
|
/dports/databases/hsqldb/hsqldb-2.3.4/hsqldb/src/org/hsqldb/lib/ |
H A D | CountUpDownLatch.java | 104 final int newCount = Math.max(0, requestedCount); in tryReleaseShared() local 105 final boolean result = (newCount == 0); in tryReleaseShared() 108 if (compareAndSetState(getState(), newCount)) { in tryReleaseShared() 219 public void setCount(int newCount) { in setCount() argument 220 sync.releaseShared(newCount); in setCount()
|
/dports/devel/spark/spark-2.1.1/sql/core/src/test/scala/org/apache/spark/sql/ |
H A D | MetadataCacheSuite.scala | 85 val newCount = sql("select count(*) from view_refresh").first().getLong(0) constant 86 assert(newCount > 0 && newCount < 100) 107 val newCount = sql("select count(*) from view_refresh").first().getLong(0) constant 108 assert(newCount > 0 && newCount < 100)
|
/dports/www/firefox-esr/firefox-91.8.0/gfx/skia/skia/include/private/ |
H A D | SkTArray.h | 160 int newCount = fCount - 1; in removeShuffle() local 161 fCount = newCount; in removeShuffle() 163 if (n != newCount) { in removeShuffle() 164 this->move(n, newCount); in removeShuffle() 293 void resize_back(int newCount) { in resize_back() argument 294 SkASSERT(newCount >= 0); in resize_back() 296 if (newCount > fCount) { in resize_back() 298 } else if (newCount < fCount) { in resize_back() 530 int64_t newCount = fCount + delta; in checkRealloc() local 543 int64_t newAllocCount = newCount + ((newCount + 1) >> 1); in checkRealloc() [all …]
|
/dports/lang/spidermonkey78/firefox-78.9.0/gfx/skia/skia/include/private/ |
H A D | SkTArray.h | 160 int newCount = fCount - 1; in removeShuffle() local 161 fCount = newCount; in removeShuffle() 163 if (n != newCount) { in removeShuffle() 164 this->move(n, newCount); in removeShuffle() 293 void resize_back(int newCount) { in resize_back() argument 294 SkASSERT(newCount >= 0); in resize_back() 296 if (newCount > fCount) { in resize_back() 298 } else if (newCount < fCount) { in resize_back() 530 int64_t newCount = fCount + delta; in checkRealloc() local 543 int64_t newAllocCount = newCount + ((newCount + 1) >> 1); in checkRealloc() [all …]
|
/dports/www/firefox/firefox-99.0/gfx/skia/skia/include/private/ |
H A D | SkTArray.h | 160 int newCount = fCount - 1; in removeShuffle() local 161 fCount = newCount; in removeShuffle() 163 if (n != newCount) { in removeShuffle() 164 this->move(n, newCount); in removeShuffle() 293 void resize_back(int newCount) { in resize_back() argument 294 SkASSERT(newCount >= 0); in resize_back() 296 if (newCount > fCount) { in resize_back() 298 } else if (newCount < fCount) { in resize_back() 530 int64_t newCount = fCount + delta; in checkRealloc() local 543 int64_t newAllocCount = newCount + ((newCount + 1) >> 1); in checkRealloc() [all …]
|