Floating-Point Typedefs Having Specified Widths - N3626

It is proposed to add to the C++ standard optional floating-point typedefs having specified widths. The optional typedefs include float16_t, float32_t, float64_t, float128_t, their corresponding least and fast types, and the corresponding maximumwidth type. These are to conform with the corresponding specifications of binary16, binary32, binary64, and binary128 in IEEE_ floating-point format. The optional floating-point typedefs having specified widths are to be contained in a new standard library header . They will be defined in the std namespace. New C-style macros to facilitate initialization of the optional floating-point typedefs having specified widths from floating-point literal constants are proposed. It is not proposed to make any mandatory changes to , special functions, , or . The main objectives of this proposal are to: • Extend the benefits of specified-width typedefs for integer types to floating-point types. • Improve floating-point safety and reliability by providing standardized typedefs that behave identically on all platforms. • Optionally extend the range of floating-point to lower and to higher precision. • Provide a Standard way of specifying 128-bit precision. 2 Floating-Point Typedefs Having Specified Widths N3626 XML to PDF by RenderX XEP XSL-FO Formatter, visit us at http://www.renderx.com/