Subject: Re: Softfloat for MIPS
To: NetBSD Toolchain <tech-toolchain@NetBSD.org>
From: Markus Mayer <mmayer@redback.com>
List: tech-toolchain
Date: 06/09/2006 12:12:03
Valeriy E. Ushakov wrote:
> revision 1.2
> date: 1994/05/14 06:31:15; author: cgd; state: Exp; lines: +3 -2
> branches: 1.2.4;
> rcsids. also, avoid floating point when picking scale value. doesn't
> cost much, only done once.
>
> -#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.
That's what the CVS id has to say about my version of the file:
$NetBSD: gmon.c,v 1.22 2004/05/10 22:16:42 thorpej Exp $
Hang on a second... there's more than just one gmon.c in the source
tree. I just found:
./gnu/dist/gcc/gcc/gmon.c
./gnu/dist/toolchain/gcc/gmon.c
./lib/libc/gmon/gmon.c
The two GCC versions are older. They both still have #ifndef hp300.
Could that explain it?
Thanks.
-Markus
--
Markus Mayer
Redback Networks Inc.