aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack O'Connor <[email protected]>2022-03-11 01:49:50 -0500
committerJack O'Connor <[email protected]>2022-03-11 01:49:50 -0500
commit2e5eb837e53722dc121cca50ff4fc27d3413dcea (patch)
tree71618123a29f395e79ec99c48cba41be84c18226
parent328542d837da9381c155db3d333c231bd896c90b (diff)
replace tail calls with jumps
-rw-r--r--src/kernel.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/kernel.rs b/src/kernel.rs
index f4428c4..68c478d 100644
--- a/src/kernel.rs
+++ b/src/kernel.rs
@@ -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
@@ -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