diff options
author | Ladislav Zezula <zezula@volny.cz> | 2020-11-23 12:56:00 +0100 |
---|---|---|
committer | Ladislav Zezula <zezula@volny.cz> | 2020-11-23 12:56:00 +0100 |
commit | b6102b2600f792f159320439686a872a72d20c70 (patch) | |
tree | a9cfacadc0c28b3cfde908d2a4511b6605a648a0 /src/sparse/sparse.cpp | |
parent | 809005c7f025bcc55bfa4ede78cb4cc45d3c0e6c (diff) |
Removed trailing whitespace
Diffstat (limited to 'src/sparse/sparse.cpp')
-rw-r--r-- | src/sparse/sparse.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sparse/sparse.cpp b/src/sparse/sparse.cpp index 4fe0981..6d1b621 100644 --- a/src/sparse/sparse.cpp +++ b/src/sparse/sparse.cpp @@ -14,10 +14,10 @@ /* 19.11.03 1.01 Dan Big endian handling */ /* 08.12.03 2.01 Dan High-memory handling (> 0x80000000) */ /*****************************************************************************/ - + #include <assert.h> #include <string.h> - + #include "sparse.h" //----------------------------------------------------------------------------- @@ -88,7 +88,7 @@ void CompressSparse(void * pvOutBuffer, int * pcbOutBuffer, void * pvInBuffer, i // Put marker that means "0x80 of nonzeros" *pbOutBuffer++ = 0xFF; memcpy(pbOutBuffer, pbInBuffer, 0x80); - + // Adjust counter of nonzeros and both pointers NumberOfNonZeros -= 0x80; pbOutBuffer += 0x80; @@ -108,7 +108,7 @@ void CompressSparse(void * pvOutBuffer, int * pcbOutBuffer, void * pvInBuffer, i // Put marker that means "1 nonzero byte" *pbOutBuffer++ = 0x80; memcpy(pbOutBuffer, pbInBuffer, 1); - + // Adjust counter of nonzeros and both pointers NumberOfNonZeros--; pbOutBuffer++; @@ -171,7 +171,7 @@ void CompressSparse(void * pvOutBuffer, int * pcbOutBuffer, void * pvInBuffer, i // Put marker that means "Several zeros" *pbOutBuffer++ = (unsigned char)(NumberOfZeros - 3); - + // Adjust pointer pbInBuffer += NumberOfZeros; } @@ -196,7 +196,7 @@ void CompressSparse(void * pvOutBuffer, int * pcbOutBuffer, void * pvInBuffer, i // Terminate with a marker that means "0x80 of nonzeros" *pbOutBuffer++ = 0xFF; memcpy(pbOutBuffer, pbInBuffer, NumberOfNonZeros); - + // Adjust pointer pbOutBuffer += NumberOfNonZeros; break; |