mirror of
https://github.com/BLAKE3-team/BLAKE3
synced 2024-06-05 21:46:03 +02:00
brainfart
This commit is contained in:
parent
d48f0f62bc
commit
9b7a68ccbd
|
@ -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
|
// 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
|
// warnings here. GCC 8.5 is particularly sensitive, so if you're changing
|
||||||
// this code, test it against that version.
|
// this code, test it against that version.
|
||||||
while (num_cvs > 2
|
#if MAX_SIMD_DEGREE_OR_2 > 2
|
||||||
#if MAX_SIMD_DEGREE_OR_2 > 2
|
while (num_cvs > 2 && num_cvs <= MAX_SIMD_DEGREE_OR_2) {
|
||||||
&& num_cvs <= MAX_SIMD_DEGREE_OR_2
|
|
||||||
#endif
|
|
||||||
) {
|
|
||||||
num_cvs =
|
num_cvs =
|
||||||
compress_parents_parallel(cv_array, num_cvs, key, flags, out_array);
|
compress_parents_parallel(cv_array, num_cvs, key, flags, out_array);
|
||||||
memcpy(cv_array, out_array, num_cvs * BLAKE3_OUT_LEN);
|
memcpy(cv_array, out_array, num_cvs * BLAKE3_OUT_LEN);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
memcpy(out, cv_array, 2 * BLAKE3_OUT_LEN);
|
memcpy(out, cv_array, 2 * BLAKE3_OUT_LEN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue