Files
clang-p2996/flang/lib/Evaluate/complex.cpp
Peter Klausler 2b5cd3778c [flang] Use naive algorithm for folding complex division when it doesn't over/underflow
f18 unconditionally uses a scaling algorithm for complex/complex division
that avoids needless overflows and underflows when computing the sum of
the squares of the components of the denominator -- but testing has shown
some 1 ULP differences relative to the naive calculation due to the
extra operations and roundings.  So use the scaling algorithm only when
the naive calculation actually would overflow or underflow.

Differential Revision: https://reviews.llvm.org/D132164
2022-08-18 15:11:34 -07:00

5.0 KiB