From abaad74fc9f7c1b1b9bf5e3bf86babfc79c2da4c Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Wed, 1 Aug 2012 16:11:20 +0000 Subject: [PATCH] trivial optimization - part of pacthes from Yeong-uk Jo --- bochs/bios/rombios.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/bochs/bios/rombios.c b/bochs/bios/rombios.c index ec1b76aa0..8a6d9b764 100644 --- a/bochs/bios/rombios.c +++ b/bochs/bios/rombios.c @@ -233,8 +233,7 @@ typedef unsigned long Bit32u; push di mov cx, 10[bp] ; count - test cx, cx - je memsetb_end + jcxz memsetb_end les di, 6[bp] ; segment & offset mov al, 4[bp] ; value cld @@ -271,8 +270,7 @@ typedef unsigned long Bit32u; push si mov cx, 12[bp] ; count - test cx, cx - je memcpyb_end + jcxz memcpyb_end les di, 4[bp] ; dsegment & doffset lds si, 8[bp] ; ssegment & soffset cld @@ -310,8 +308,7 @@ typedef unsigned long Bit32u; push si mov cx, 12[bp] ; count - test cx, cx - je memcpyd_end + jcxz memcpyb_end les di, 4[bp] ; dsegment & doffset lds si, 8[bp] ; ssegment & soffset cld