This commit is contained in:
2018-12-16 14:17:14 +01:00
parent 09a60ccd88
commit ce4144fab8
1979 changed files with 3931237 additions and 203 deletions

View File

@@ -0,0 +1,11 @@
DECLSPEC void xts_mul2 (u32 *in, u32 *out)
{
const u32 c = in[3] >> 31;
out[3] = (in[3] << 1) | (in[2] >> 31);
out[2] = (in[2] << 1) | (in[1] >> 31);
out[1] = (in[1] << 1) | (in[0] >> 31);
out[0] = (in[0] << 1);
out[0] ^= c * 0x87;
}