Re: floating-point abuse in 2.1.113

Andi Kleen (ak@muc.de)
06 Aug 1998 17:50:47 +0200


Mikael Pettersson <mikpe@csd.uu.se> writes:

> 4. The C language doesn't guarantee this behaviour. While empirical
> evidence suggests that gcc will evaluate FP constant expressions
> at compile-time, this is really dodgey and beyond specs.
> By Murphy's law, this _will_ break at some point.

But Linux kernel not allowing FP is also beyond specs (the C standard
requires floating point - it is not a optional feature). The spec for
the C language used in the Linux kernel is the language understood by
gcc, and it is quite clear that gcc knows how to do it.

-Andi

-
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