Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert arguments to double in _GENERIC_MATH2_BASE #3253

Merged
merged 4 commits into from
Dec 6, 2022

Commits on Dec 1, 2022

  1. Convert arguments to double in _GENERIC_MATH2_BASE

    This template implements the "sufficient additional overloads" for two-argument `<cmath>` functions (`atan2`, `hypot`, `pow`, `fmod`, `remainder`, `copysign`, `nextafter`, `fdim`, `fmax`, and `fmin`) by calling either an intrinsic or a C library function either of which expects `double` arguments. We previously converted the arguments to `_Common_float_type_t` which is `long double` when at least one argument is `long double`, resulting in narrowing conversion warnings at `/W4`. We now convert the arguments to `double` instead of `_Common_float_type_t`.
    
    Fixes microsoft#3246
    CaseyCarter committed Dec 1, 2022
    Configuration menu
    Copy the full SHA
    395b896 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c226ba2 View commit details
    Browse the repository at this point in the history
  3. More betterer comment

    CaseyCarter committed Dec 1, 2022
    Configuration menu
    Copy the full SHA
    b5831d3 View commit details
    Browse the repository at this point in the history
  4. More commentary

    CaseyCarter committed Dec 1, 2022
    Configuration menu
    Copy the full SHA
    c673ab5 View commit details
    Browse the repository at this point in the history