1
0
Fork 0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-05-12 18:56:26 +02:00

brainfart

This commit is contained in:
divinity76 2024-01-29 12:35:21 +01:00 committed by GitHub
parent d48f0f62bc
commit 9b7a68ccbd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -351,15 +351,13 @@ INLINE void compress_subtree_to_parent_node(
// is set on platforms where MAX_SIMD_DEGREE_OR_2 == 2, GCC emits spurious
// warnings here. GCC 8.5 is particularly sensitive, so if you're changing
// this code, test it against that version.
while (num_cvs > 2
#if MAX_SIMD_DEGREE_OR_2 > 2
&& num_cvs <= MAX_SIMD_DEGREE_OR_2
#endif
) {
#if MAX_SIMD_DEGREE_OR_2 > 2
while (num_cvs > 2 && num_cvs <= MAX_SIMD_DEGREE_OR_2) {
num_cvs =
compress_parents_parallel(cv_array, num_cvs, key, flags, out_array);
memcpy(cv_array, out_array, num_cvs * BLAKE3_OUT_LEN);
}
#endif
memcpy(out, cv_array, 2 * BLAKE3_OUT_LEN);
}