Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Juan Quintela <quintela@mandrakesoft.com>
To: Ralf Baechle <ralf@linux-mips.org>, mipslist <linux-mips@linux-mips.org>
Subject: [PATCH]: Remove unneded conditional
Date: Thu, 27 Mar 2003 03:52:16 +0100	[thread overview]
Message-ID: <m2r88ted27.fsf@mandrakesoft.com> (raw)

 build/arch/mips/math-emu/sp_sub.c |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff -puN build/arch/mips/math-emu/sp_sub.c~consolidate_conditional build/arch/mips/math-emu/sp_sub.c
--- 24/build/arch/mips/math-emu/sp_sub.c~consolidate_conditional	2003-03-19 23:32:43.000000000 +0100
+++ 24-quintela/build/arch/mips/math-emu/sp_sub.c	2003-03-19 23:33:57.000000000 +0100
@@ -167,12 +167,11 @@ ieee754sp ieee754sp_sub(ieee754sp x, iee
 			xe = xe;
 			xs = ys;
 		}
-		if (xm == 0) {
-			if (ieee754_csr.rm == IEEE754_RD)
-				return ieee754sp_zero(1);	/* round negative inf. => sign = -1 */
-			else
-				return ieee754sp_zero(0);	/* other round modes   => sign = 1 */
-		}
+		if (xm == 0)
+			/* if IEEE754_RD round negative inf. => sign = -1
+			      other round modes              => sign = 1 */
+			return ieee754sp_zero(ieee754_csr.rm == IEEE754_RD);
+
 		/* normalize to rounding precision
 		 */
 		while ((xm >> (SP_MBITS + 3)) == 0) {

_

-- 
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy

                 reply	other threads:[~2003-03-27  2:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2r88ted27.fsf@mandrakesoft.com \
    --to=quintela@mandrakesoft.com \
    --cc=linux-mips@linux-mips.org \
    --cc=ralf@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox