From 5f50d597f2c9106824ea48f47e318f7b2d13a867 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Fri, 14 Oct 2005 15:24:06 +0000 Subject: [PATCH] Make sure x86-mont.pl returns zero even if compiled with no-sse2. --- crypto/bn/asm/x86-mont.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crypto/bn/asm/x86-mont.pl b/crypto/bn/asm/x86-mont.pl index 98a7f09627..6ba2041df3 100755 --- a/crypto/bn/asm/x86-mont.pl +++ b/crypto/bn/asm/x86-mont.pl @@ -60,7 +60,6 @@ $mask="mm7"; if($sse2) { &picmeup("eax","OPENSSL_ia32cap_P"); &bt (&DWP(0,"eax"),26); - &mov ("eax",0); # zero signals "we did nothing" &jnc (&label("non_sse2")); ################################# load argument block... @@ -232,9 +231,13 @@ if($sse2) { &set_label("exit_sse2"); &mov ("esp",$_sp); # pull saved stack pointer &mov ("eax",1); + &jmp (&label("leave")); &set_label("non_sse2"); } + &xor ("eax","eax"); # zero signals "not implemented [yet]" + +&set_label("leave"); &function_end("bn_mul_mont"); &asm_finish(); -- GitLab