0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-03-14 05:20:17 +01:00

ircd::b64: Simplify trailing error negation and propagaton.

This commit is contained in:
Jason Volk 2020-08-21 05:57:03 -07:00
parent d4a7acb8ea
commit 3e2aff3a71

View file

@ -373,11 +373,8 @@ ircd::b64::decode(const mutable_buffer &out,
for(j = 0; j < 48 && i * 48 + j < out_len; ++j)
dst[i * 48 + j] = block[j];
i8x64 _err(err);
for(; j < 64; ++j)
_err[j] = 0 | err_[j];
err = _err;
err[j] = 0 | err_[j];
}
for(size_t i(1); i < 8; ++i)