From 52325b07c050218ba6491a96ade76fbb2c0b7e7e Mon Sep 17 00:00:00 2001 From: edef Date: Thu, 16 Apr 2015 12:20:57 -0400 Subject: [PATCH] comment fix: it's 8ns *faster* --- src/arch/x86_64/swap.s | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/arch/x86_64/swap.s b/src/arch/x86_64/swap.s index 2dc9250..19d958f 100644 --- a/src/arch/x86_64/swap.s +++ b/src/arch/x86_64/swap.s @@ -36,8 +36,9 @@ jmp 2f movq %rax, %rsp // jump into the new context (return to the call point) - // doing this instead of a straight `ret` is 8ns slower, - // presumably because the branch predictor tries to be clever about it + // doing this instead of a straight `ret` is 8ns faster, + // presumably because the branch predictor tries + // to be clever about it otherwise popq %rax jmpq *%rax