Skip to content

Commit

Permalink
LZMACompressor: Use intrinsic InterlockedExchangeAdd.
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanrussell authored Nov 10, 2024
1 parent 1c085a0 commit 8c5e03c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Projects/Src/Compression.LZMACompressor.pas
Original file line number Diff line number Diff line change
Expand Up @@ -223,17 +223,6 @@ TLZMACompressProgress = record
SZ_ERROR_PROGRESS = 10;
SZ_ERROR_FAIL = 11;

function InterlockedExchangeAdd(var Addend: Longint; Value: Longint): Longint;
stdcall; external kernel32;

function GetNumberOfProcessors: Cardinal;
var
SysInfo: TSystemInfo;
begin
GetSystemInfo(SysInfo);
Result := SysInfo.dwNumberOfProcessors;
end;

function LZMAInitCompressFunctions(Module: HMODULE): Boolean;
begin
LZMADLLInitialized := False;
Expand Down

0 comments on commit 8c5e03c

Please sign in to comment.