HomePhabricator

[flang][msvc] Avoid dependence on long double

Authored by klausler on Oct 2 2020, 12:39 PM.

Description

[flang][msvc] Avoid dependence on long double

MSVC does not support a distinct 80-bit extended precision
"long double" type. Rework the I/O runtime to avoid using
native C/C++ type names. Centralize the mappings between
the KIND= type parameters of REAL and their binary precisions
in the common real.h header file, and use KIND type parameter
values rather than binary precisions for clarity where
appropriate.

This patch, if successful, should obviate the need for
Differential review D88511.

(This patch anticipates a successful review of D88688, which
fixes the function that maps each kind of real to its maximum
number of significant decimal digits.)

Differential revision: https://reviews.llvm.org/D88752

Details

Committed
klauslerOct 7 2020, 3:12 PM
Differential Revision
D88752: [flang][msvc] Avoid dependence on long double
Parents
rG8da0df3d6dcc: [libc++] Remove unused includes of Availability.h
Branches
Unknown
Tags
Unknown