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

Shims: use _hypotf on Windows rather than __builtin_hypot #23780

Merged
merged 1 commit into from
Apr 4, 2019

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Apr 3, 2019

Unfortunately, hypotf is an inline in MSVCRT which forwards to
_hypotf. This repairs the Windows build.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

Unfortunately, `hypotf` is an inline in MSVCRT which forwards to
`_hypotf`.  This repairs the Windows build.
@compnerd
Copy link
Member Author

compnerd commented Apr 3, 2019

CC: @stephentyrone

@stephentyrone
Copy link
Contributor

This seems like it should eventually be fixed in the LLVM lowering of __builtin_hypotf rather than the standard library (I'm fine with taking it here as a quick fix, though). Can you file a bug against LLVM?

@compnerd
Copy link
Member Author

compnerd commented Apr 3, 2019

Yeap, filed https://bugs.llvm.org/show_bug.cgi?id=41366 for that

@compnerd
Copy link
Member Author

compnerd commented Apr 3, 2019

@swift-ci please smoke test and merge

1 similar comment
@compnerd
Copy link
Member Author

compnerd commented Apr 4, 2019

@swift-ci please smoke test and merge

@compnerd
Copy link
Member Author

compnerd commented Apr 4, 2019

@swift-ci please smoke test Linux platform

@compnerd compnerd merged commit 2d7fedd into swiftlang:master Apr 4, 2019
@compnerd compnerd deleted the math-is-terrible branch April 4, 2019 15:53
stephentyrone added a commit to stephentyrone/swift that referenced this pull request Apr 4, 2019
…ible"

This reverts commit 2d7fedd, reversing
changes made to 0205150.
stephentyrone added a commit that referenced this pull request Apr 4, 2019
* Revert "Merge pull request #23791 from compnerd/you-know-nothing-clang"

This reverts commit 5150981, reversing
changes made to 8fc305c.

* Revert "Merge pull request #23780 from compnerd/math-is-terrible"

This reverts commit 2d7fedd, reversing
changes made to 0205150.

* Revert "Merge pull request #23140 from stephentyrone/mafs"

This reverts commit 777750d, reversing
changes made to 0c8920e.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants