Skip to content

Commit

Permalink
replace tail calls with jumps
Browse files Browse the repository at this point in the history
  • Loading branch information
oconnor663 committed Mar 11, 2022
1 parent 328542d commit 2e5eb83
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/kernel.rs
Expand Up @@ -1815,8 +1815,7 @@ global_asm!(
"vmovdqa32 zmm12, zmmword ptr [rdx + 64 * 0]", // counter low
"vmovdqa32 zmm13, zmmword ptr [rdx + 64 * 1]", // counter high
// Run the kernel and then exit.
"call blake3_avx512_kernel_16",
"ret",
"jmp blake3_avx512_kernel_16",
//
// --------------------------------------------------------------------------------------------
// blake3_avx512_blocks_8
Expand Down Expand Up @@ -1927,8 +1926,7 @@ global_asm!(
"vmovdqa32 ymm12, ymmword ptr [rdx]", // counter low
"vmovdqa32 ymm13, ymmword ptr [rdx + 32]", // counter high
// Run the kernel and then exit.
"call blake3_avx512_kernel_8",
"ret",
"jmp blake3_avx512_kernel_8",
//
// --------------------------------------------------------------------------------------------
// blake3_avx512_chunks_16
Expand Down

0 comments on commit 2e5eb83

Please sign in to comment.