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
Xcode 10 beta, Swift 4.2
md5: adc7cdc3c52b5393377de6fa09b0bc78
Issue Description:
Hi!
When using function like lgamma() or tgamma() the compiler complains about
"ambiguous use of tgamma()/lgamma()"
Details can be found here:
https://forums.swift.org/t/float80-math-function/14968/4?u=strike
Regards!
The text was updated successfully, but these errors were encountered:
It looks like the c stdlib interfaces for all of the math functions are now being exported as well as the Swift overlay names, e.g. for sin( ) we have all of the following:
sin(Double) -> Double sin(x: Double) -> Double sin(x: Float) -> Float sin(x: Float80) -> Float80 sinf(Float) -> Float sinl(Float80) -> Float80
In the case of lgamma, the return type of the C libm functions is actually different:
lgamma(Double) -> Double lgamma(x: Double) -> (Double, Int) lgamma(x: Float) -> (Float, Int) lgamma(x: Float80) -> (Float80, Int) lgammaf(Float) -> Float lgammal(Float80) -> Float80
which I think causes the bug we're seeing here.
Sorry, something went wrong.
No branches or pull requests
Environment
Xcode 10 beta, Swift 4.2
Additional Detail from JIRA
md5: adc7cdc3c52b5393377de6fa09b0bc78
Issue Description:
Hi!
When using function like lgamma() or tgamma() the compiler complains about
"ambiguous use of tgamma()/lgamma()"
Details can be found here:
https://forums.swift.org/t/float80-math-function/14968/4?u=strike
Regards!
The text was updated successfully, but these errors were encountered: