Unverified Commit b225934a authored by Peter Klausler's avatar Peter Klausler Committed by GitHub
Browse files

[flang] Avoid needless overflow when folding NORM2 (#67499)

The code that folds the relatively new NORM2 intrinsic function can
produce overflow in cases where it's not warranted. Rearrange to NORM2 =
M * SQRT((A(:)/M)**2) where M is MAXVAL(ABS(A)).
parent 39f4ec58
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment