Re: help understanding behaviour of unsuffixed float constants

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 22, 2014 at 07:36:24PM +0000, Regan, Brian (EPC COE) wrote:
> Don't misunderstand - I like the behaviour. I don't want the unnecessary implicit conversions).
> 
> My concern stems only from the compliance to the standard. Some of our
> internal software standards require ISO99 compliance, as do standards
> imposed by our customers (e.g.  Boeing via their D6).

I don't understand why you think it is not a strict standard compliance.
The C99 standard doesn't say what helper function should be called to
perform the comparison, or what hardware instruction should be used,
and programs overriding those helper functions (if used) is not conforming,
because they are using names reserved for the implementation.

And, as a conforming program can't observe the difference between
casting the float variable to double and performing comparison in
double vs. not extending the float variable and performing comparison
in float, there is no deviation from the standard.

	Jakub




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux