Revision: 28423
          http://sourceforge.net/p/bibdesk/svn/28423
Author:   hofman
Date:     2023-11-05 22:13:23 +0000 (Sun, 05 Nov 2023)
Log Message:
-----------
no need to support 32 bit

Modified Paths:
--------------
    trunk/bibdesk_vendorsrc/amaxwell/FileView/FVImageBuffer.m

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVImageBuffer.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVImageBuffer.m   2023-11-05 
17:55:38 UTC (rev 28422)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVImageBuffer.m   2023-11-05 
22:13:23 UTC (rev 28423)
@@ -43,11 +43,7 @@
 #import "FVBitmapContext.h"
 #import "FVAllocator.h"
 
-#if __LP64__
 static FVAtomic64(uint64_t) _allocatedBytes = 0;
-#else
-static FVAtomic(uint32_t) _allocatedBytes = 0;
-#endif
 
 @implementation FVImageBuffer
 
@@ -78,11 +74,7 @@
             buffer->rowBytes = bufferSize;
             _bufferSize = bufferSize;
             buffer->data = CFAllocatorAllocate([self allocator], bufferSize, 
0);
-#if __LP64__
             FVAtomicAdd64(_allocatedBytes, _bufferSize);
-#else
-            FVAtomicAdd(_allocatedBytes, _bufferSize);
-#endif
             if (NULL == buffer->data) {
                 [self release];
                 self = nil;
@@ -124,11 +116,7 @@
 - (void)dealloc
 {
     if (_freeBufferOnDealloc) CFAllocatorDeallocate([self allocator], 
buffer->data);
-#if __LP64__
     FVAtomicSub64(_allocatedBytes, _bufferSize);
-#else
-    FVAtomicSub(_allocatedBytes, _bufferSize);
-#endif
     if (buffer != NULL) NSZoneFree([self zone], buffer);
     [super dealloc];
 }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to