From 5e78628e6e0e80298ac68a59a2c9a4aef8fe120f Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Wed, 23 Nov 2022 01:09:54 -0800 Subject: [PATCH] Make *slightly* faster --- bmi-calc/main.nasm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bmi-calc/main.nasm b/bmi-calc/main.nasm index cec1288..4719910 100644 --- a/bmi-calc/main.nasm +++ b/bmi-calc/main.nasm @@ -313,12 +313,14 @@ read_float_convert: mov rax,0 movq xmm0,rax + movss xmm7,[_10f] + xor rcx,rcx read_float_convert_whole_loop: cmp rcx,r14 je read_float_convert_dec_prepare - mulss xmm0,[_10f] + mulss xmm0,xmm7 xor eax,eax mov al,[rsp+rcx]