From: Dan Kegel <dkegel@ixiacom.com>
To: Conn Clark <clark@esteem.com>
Cc: May Ling List <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: What problems are there with floating point emulation in the kernel?
Date: Wed, 22 May 2002 15:52:26 -0700 [thread overview]
Message-ID: <3CEC212A.9070104@ixiacom.com> (raw)
In-Reply-To: 3CEC1E95.4CCCA5CA@esteem.com
Conn Clark wrote:
> Its not the use of floating point in the kernel thats the problem.
>
> I would like to "emulate" the fpu in the kernel so I can
> compile glibc and everything else with fpu instructions to save
> ram. I have been told however that there are "issues" with this
> approach, and the only way to go is to emulate the fpu in the
> kernel and compile everything with soft float. What I want to
> know is what these issues are? (accuracy,segment_fault,etc..)
Oh. Right. Well, google reports at least one issue with the code;
see http://groups.google.com/groups?selm=fa.h1feiov.9jqg8k%40ifi.uio.no
> Mikael Pettersson (mikpe@csd.uu.se)
> Subject: Re: Kernel bugs found using inspect tool
> Newsgroups: fa.linux.kernel
> Date: 2000/02/25
>
> Ricky Beam writes:
> > On Tue, 22 Feb 2000, Rupp, Ed J wrote:
> > >the AT&T toolchest called 'inspect'. I found 10 near-certain
> > >bugs which may or may not be causing any observable problems
> > >and 13 probable bugs which I couldn't immediately tell if they ...
> > >===== Questionable ====
> > >arch/ppc/math-emu/op-4.h: comparison takes precedence over assignment near
> > >line 215
> > > (x3 += ((x2 += ((x1 += ((x0 += i) < x0)) < x1) < x2)))
>
> This whole expression is broken.
> The evaluation order for the "<" operator is unspecified, which means that
> subexpressions like "((x0 += i) < x0)" do not have well-defined values.
> They also violate the ANSI-C rules about permissible accesses and updates
> of variables between sequence points.
- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2002-05-22 22:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-22 19:27 What problems are there with floating point emulation in the kernel? Dan Kegel
2002-05-22 22:41 ` Conn Clark
2002-05-22 22:52 ` Dan Kegel [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-05-22 22:57 Rosen Jeremy
2002-04-24 16:56 Conn Clark
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=3CEC212A.9070104@ixiacom.com \
--to=dkegel@ixiacom.com \
--cc=clark@esteem.com \
--cc=linuxppc-embedded@lists.linuxppc.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.