diff options
author | sigsegv7 <ian@vegaa.systems> | 2023-09-18 01:18:23 -0400 |
---|---|---|
committer | sigsegv7 <ian@vegaa.systems> | 2023-09-18 01:18:23 -0400 |
commit | 0f0daf1a917d527748e57ac320a52fd2f00b3335 (patch) | |
tree | b20ffa51d007502e0ced7a8e0634b45fd75f09c5 | |
parent | 795f9d472dcb3df38f72be29d0bc14540c7a8024 (diff) |
Shift step left by 1 if SSE is supported
This is a faster way of increasing the step as they are
in powers of two.
Signed-off-by: sigsegv7 <ian@vegaa.systems>
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -142,7 +142,7 @@ encrypt(const struct cpu_info *info, char *buf, size_t buf_size) #if defined(__x86_64__) if (info->has_sse2 || info->has_sse3) { - step += 8; /* Start at 128 bits */ + step <<= 1; /* Start at 16 bytes (128 bits) */ } #endif /* defined(__x86_64__) */ |