Unverified Commit b40c5346 authored by Zahira Ammarguellat's avatar Zahira Ammarguellat Committed by GitHub
Browse files

[clang] Add support for -fcx-limited-range, #pragma CX_LIMITED_RANGE and...


[clang] Add support for -fcx-limited-range, #pragma CX_LIMITED_RANGE and -fcx-fortran-rules.  (#70244)

This patch adds the #pragma CX_LIMITED_RANGE defined in the C
specification.
It also adds the options -f[no]cx-limited-range and
-f[no]cx-fortran-rules.
-fcx-limited-range enables algebraic formulas for complex multiplication
and division. This option is enabled with -ffast-math.
-fcx-fortran-rules enables algebraic formulas for complex multiplication
and enables Smith’s algorithm for complex division (SMITH, R. L.
Algorithm 116: Complex division. Commun. ACM 5, 8 (1962)).

---------

Signed-off-by: default avatarMed Ismail Bennani <ismail@bennani.ma>
Co-authored-by: default avatarJoseph Huber <jhuber6@vols.utk.edu>
Co-authored-by: default avatarGuray Ozen <guray.ozen@gmail.com>
Co-authored-by: default avatarNishant Patel <nishant.b.patel@intel.com>
Co-authored-by: default avatarJessica Clarke <jrtc27@jrtc27.com>
Co-authored-by: default avatarPetr Hosek <phosek@google.com>
Co-authored-by: default avatarJoseph Huber <35342157+jhuber6@users.noreply.github.com>
Co-authored-by: Craig...
parent 8b5af313
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