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]
Other format: [Raw text]

Re: i370 float.h values?


Richard Henderson wrote:

>#define __DBL_MAX_EXP__ 64
>#define __DBL_MAX__ 0x0.ffffffffffffffp256     // 1.15792089237316193817e+77
>#define __FLT_MAX_EXP__ 64
>#define __FLT_MAX__ 0x0.ffffffp256F            // 1.15792082335569848633e+77

These look wrong to me; they were correct the first time.

We have a 7-bit characteristic, with an exponent bias of -64.
No characteristic value is reserved for any special meaning.
This means the exponent ranges from -64 to +63.

So we should have a maximum exponent of 63, and maxmium values
in the order of 2**252.  (The PoP states the maximum value is
about 7.2e+75.)


Mit freundlichen Gruessen / Best Regards

Ulrich Weigand

--
  Dr. Ulrich Weigand
  Linux for S/390 Design & Development
  IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032 Boeblingen
  Phone: +49-7031/16-3727   ---   Email: Ulrich.Weigand@de.ibm.com


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