Re: floating-point abuse in 2.1.113

Richard B. Johnson (root@chaos.analogic.com)
Thu, 6 Aug 1998 08:49:39 -0400 (EDT)


On Thu, 6 Aug 1998, Andi Kleen wrote:

> On Thu, Aug 06, 1998 at 03:36:48AM +0200, H. Peter Anvin wrote:
> > > Gcc combines floating point constants in constant expressions, even when
> > > cross compiling.
> >
> > Are you sure? Or only if the source and target use the same formats?
>
> Yes. read gcc/fold-const.c in the gcc source. They go into great pains
> to do that.
>
> -Andi
>

Hmmmm. But gcc didn't do it in the kernel when it encountered some
real number constants, cast to an int.

Cheers,
Dick Johnson
***** FILE SYSTEM MODIFIED *****
Penguin : Linux version 2.1.113 on an i586 machine (66.15 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html