From 822cb7bac558cd8953af67dc5f19909a96e0c659 Mon Sep 17 00:00:00 2001 From: vsariola <5684185+vsariola@users.noreply.github.com> Date: Sat, 27 Mar 2021 16:35:58 +0200 Subject: [PATCH] optimize(templates): replace fld / fmulp with a direct fmul --- templates/amd64-386/sources.asm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/amd64-386/sources.asm b/templates/amd64-386/sources.asm index b43af9a..e0bc1db 100644 --- a/templates/amd64-386/sources.asm +++ b/templates/amd64-386/sources.asm @@ -86,8 +86,7 @@ su_op_noise_mono: fidiv dword [{{.Use (.Int 2147483648)}}] ; 65536*32768 fld dword [{{.Input "noise" "shape"}}] {{.Call "su_waveshaper"}} - fld dword [{{.Input "noise" "gain"}}] - fmulp st1, st0 + fmul dword [{{.Input "noise" "gain"}}] ret {{end}} @@ -233,8 +232,7 @@ su_op_oscillat_shaping: fld dword [{{.Input "oscillator" "shape"}}] {{.Call "su_waveshaper"}} su_op_oscillat_gain: - fld dword [{{.Input "oscillator" "gain"}}] - fmulp st1, st0 + fmul dword [{{.Input "oscillator" "gain"}}] ret {{end}}