This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: expand and truncate and 387




> I believe extensions to be a no-op.

IEEE does not agree.  The reason is that a format conversion is an
"operation" which among other things means that the "exception" flags
can change as a result.  Suppose you have a value in single precision
that is marked with the "inexact" flag.  After extending to double it
is no longer inexact, because IEEE 754 para 5.3 says "Conversion to a
wider precision is exact."  So to make IEEE happy your no-op would
have to clear the inexact flag.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]