aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/base64/ssse3/enc_ssse3.c
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /contrib/libs/base64/ssse3/enc_ssse3.c
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/base64/ssse3/enc_ssse3.c')
-rw-r--r--contrib/libs/base64/ssse3/enc_ssse3.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/contrib/libs/base64/ssse3/enc_ssse3.c b/contrib/libs/base64/ssse3/enc_ssse3.c
index 0518595e61..e8903cf6c4 100644
--- a/contrib/libs/base64/ssse3/enc_ssse3.c
+++ b/contrib/libs/base64/ssse3/enc_ssse3.c
@@ -1,22 +1,22 @@
-// If we have SSSE3 support, pick off 12 bytes at a time for as long as we can.
-// But because we read 16 bytes at a time, ensure we have enough room to do a
-// full 16-byte read without segfaulting:
-while (srclen >= 16)
-{
- // Load string:
- __m128i str = _mm_loadu_si128((__m128i *)c);
-
- // Reshuffle:
- str = enc_reshuffle(str);
-
- // Translate reshuffled bytes to the Base64 alphabet:
- str = enc_translate(str);
-
- // Store:
- _mm_storeu_si128((__m128i *)o, str);
-
- c += 12; // 3 * 4 bytes of input
- o += 16; // 4 * 4 bytes of output
- outl += 16;
- srclen -= 12;
-}
+// If we have SSSE3 support, pick off 12 bytes at a time for as long as we can.
+// But because we read 16 bytes at a time, ensure we have enough room to do a
+// full 16-byte read without segfaulting:
+while (srclen >= 16)
+{
+ // Load string:
+ __m128i str = _mm_loadu_si128((__m128i *)c);
+
+ // Reshuffle:
+ str = enc_reshuffle(str);
+
+ // Translate reshuffled bytes to the Base64 alphabet:
+ str = enc_translate(str);
+
+ // Store:
+ _mm_storeu_si128((__m128i *)o, str);
+
+ c += 12; // 3 * 4 bytes of input
+ o += 16; // 4 * 4 bytes of output
+ outl += 16;
+ srclen -= 12;
+}