Subject: Re: Softfloat for MIPS
To: NetBSD Toolchain <tech-toolchain@NetBSD.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: tech-toolchain
Date: 06/09/2006 23:16:23
On Fri, Jun 09, 2006 at 12:12:03 -0700, Markus Mayer wrote:
> >-#ifndef hp300
> >+#ifndef notdef
> > s_scale = ((float)p->kcountsize / o ) * SCALE_1_TO_1;
> > #else /* avoid floating point */
> > int quot = o / p->kcountsize;
>
> Nope, that's not it. I just looked and it's
> #ifndef notdef
> s_scale = ((float)p->kcountsize / o ) * SCALE_1_TO_1;
> #else /* avoid floating point */
> already.
Right, and since notdef is not defined the #ifNdef notdef is taken and
you hit the fp code, not the #else /* avoid floating point */ branch.
Change that to #ifdef.
SY, Uwe
--
uwe@ptc.spbu.ru | Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen