[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:Med Ismail Bennani <ismail@bennani.ma> Co-authored-by:
Joseph Huber <jhuber6@vols.utk.edu> Co-authored-by:
Guray Ozen <guray.ozen@gmail.com> Co-authored-by:
Nishant Patel <nishant.b.patel@intel.com> Co-authored-by:
Jessica Clarke <jrtc27@jrtc27.com> Co-authored-by:
Petr Hosek <phosek@google.com> Co-authored-by:
Joseph Huber <35342157+jhuber6@users.noreply.github.com> Co-authored-by: Craig...
parent
8b5af313
Please register or sign in to comment