diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-02 15:51:46 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-02 15:51:46 +0000 |
commit | eca1b167120907f6d927de29f449c93bdf381a83 (patch) | |
tree | 0699691346ba01d3963cf5c3ef49138713f37205 /plugins/CryptoPP/base64.cpp | |
parent | 1ed8a4ff1ec95b0df08a5bf48bb372c8481e381b (diff) |
- removed __asm piece
git-svn-id: http://svn.miranda-ng.org/main/trunk@717 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CryptoPP/base64.cpp')
-rw-r--r-- | plugins/CryptoPP/base64.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/CryptoPP/base64.cpp b/plugins/CryptoPP/base64.cpp index 70c3d672c7..1a752bc507 100644 --- a/plugins/CryptoPP/base64.cpp +++ b/plugins/CryptoPP/base64.cpp @@ -25,11 +25,11 @@ char *base64encode(const char *inBuffer, const int count) { outBuffer[destIndex++] = encode64(inBufferPtr[srcIndex++] & 0x3F);
}
- if(remainder == 2) {
+ if (remainder == 2) {
outBuffer[destIndex - 1] = BPAD;
outBuffer[destIndex - 2] = encode64((inBufferPtr[srcIndex - 2] << 2) & 0x3C);
}
- else if(remainder == 1) {
+ else if (remainder == 1) {
outBuffer[destIndex - 2] = outBuffer[destIndex - 1] = BPAD;
outBuffer[destIndex - 3] = encode64((inBufferPtr[srcIndex - 3] << 4) & 0x30);
}
@@ -70,9 +70,9 @@ char *base64decode(const char *inBuffer, int *count) { const int delta = *count - srcIndex;
c0 = decode64(inBuffer[srcIndex++]);
c1 = decode64(inBuffer[srcIndex++]);
- if(delta > 2) {
+ if (delta > 2) {
c2 = decode64(inBuffer[srcIndex++]);
- if(delta > 3)
+ if (delta > 3)
c3 = decode64(inBuffer[srcIndex++]);
}
if ((c0 | c1 | c2 | c3) == BERR) {
@@ -80,9 +80,9 @@ char *base64decode(const char *inBuffer, int *count) { return(NULL);
}
outBuffer[destIndex++] = (c0 << 2) | (c1 >> 4);
- if(delta > 2) {
+ if (delta > 2) {
outBuffer[destIndex++] = (c1 << 4) | (c2 >> 2);
- if(delta > 3 )
+ if (delta > 3 )
outBuffer[destIndex++] = (c2 << 6) | (c3);
}
}
|