aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/base64/neon32/enc_tail.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/neon32/enc_tail.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/neon32/enc_tail.c')
-rw-r--r--contrib/libs/base64/neon32/enc_tail.c56
1 files changed, 28 insertions, 28 deletions
diff --git a/contrib/libs/base64/neon32/enc_tail.c b/contrib/libs/base64/neon32/enc_tail.c
index f19ae5f736..83a5d897e2 100644
--- a/contrib/libs/base64/neon32/enc_tail.c
+++ b/contrib/libs/base64/neon32/enc_tail.c
@@ -1,28 +1,28 @@
- if (srclen-- == 0) {
- break;
- }
- *o++ = neon32_base64_table_enc[*c >> 2];
- st.carry = (*c++ << 4) & 0x30;
- st.bytes++;
- outl += 1;
-
- case 1: if (srclen-- == 0) {
- break;
- }
- *o++ = neon32_base64_table_enc[st.carry | (*c >> 4)];
- st.carry = (*c++ << 2) & 0x3C;
- st.bytes++;
- outl += 1;
-
- case 2: if (srclen-- == 0) {
- break;
- }
- *o++ = neon32_base64_table_enc[st.carry | (*c >> 6)];
- *o++ = neon32_base64_table_enc[*c++ & 0x3F];
- st.bytes = 0;
- outl += 2;
- }
-}
-state->bytes = st.bytes;
-state->carry = st.carry;
-*outlen = outl;
+ if (srclen-- == 0) {
+ break;
+ }
+ *o++ = neon32_base64_table_enc[*c >> 2];
+ st.carry = (*c++ << 4) & 0x30;
+ st.bytes++;
+ outl += 1;
+
+ case 1: if (srclen-- == 0) {
+ break;
+ }
+ *o++ = neon32_base64_table_enc[st.carry | (*c >> 4)];
+ st.carry = (*c++ << 2) & 0x3C;
+ st.bytes++;
+ outl += 1;
+
+ case 2: if (srclen-- == 0) {
+ break;
+ }
+ *o++ = neon32_base64_table_enc[st.carry | (*c >> 6)];
+ *o++ = neon32_base64_table_enc[*c++ & 0x3F];
+ st.bytes = 0;
+ outl += 2;
+ }
+}
+state->bytes = st.bytes;
+state->carry = st.carry;
+*outlen = outl;