From: Juan Quintela <quintela@mandrakesoft.com>
To: linux mips mailing list <linux-mips@linux-mips.org>,
Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH]: math-emu ambigous else
Date: 18 Dec 2002 02:43:19 +0100 [thread overview]
Message-ID: <m265tsqeyw.fsf@demo.mitica> (raw)
Hi
compiler complained that this else was ambiguous.
Later, Juan.
PD. Once there, change the code to:
return ieee754sp_zero(ieee754_csr.rm ==IEEE754_RD);
shouldn't be better and indeed clearer?
Index: arch/mips/math-emu/sp_sub.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/math-emu/sp_sub.c,v
retrieving revision 1.4.2.1
diff -u -r1.4.2.1 sp_sub.c
--- arch/mips/math-emu/sp_sub.c 5 Aug 2002 23:53:34 -0000 1.4.2.1
+++ arch/mips/math-emu/sp_sub.c 18 Dec 2002 00:49:18 -0000
@@ -167,12 +167,12 @@
xe = xe;
xs = ys;
}
- if (xm == 0)
+ 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 */
-
+ }
/* 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:[~2002-12-18 1:39 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=m265tsqeyw.fsf@demo.mitica \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.