[all-commits] [llvm/llvm-project] d56fdc: [flang][msvc] Avoid dependence on long double

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Oct 7 15:12:55 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d56fdc8e95df3431b67d33fe4b03a08406897339
      https://github.com/llvm/llvm-project/commit/d56fdc8e95df3431b67d33fe4b03a08406897339
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2020-10-07 (Wed, 07 Oct 2020)

  Changed paths:
    M flang/include/flang/Common/real.h
    M flang/include/flang/Decimal/binary-floating-point.h
    M flang/include/flang/Evaluate/type.h
    M flang/runtime/descriptor-io.h
    M flang/runtime/edit-input.cpp
    M flang/runtime/edit-input.h
    M flang/runtime/edit-output.cpp
    M flang/runtime/edit-output.h

  Log Message:
  -----------
  [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




More information about the All-commits mailing list