-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add Float16 comparisons #29916
Add Float16 comparisons #29916
Conversation
Seems like you could use a loop for this kind of repetitive definition. For example: for op in (:==, :<, :>)
@eval begin
$op(x::Union{Float16,Float32}, y::Union{Int128,UInt128}) = $op(Float64(x), Float64(y))
$op(x::Union{Int128,UInt128}, y::Union{Float16,Float32}) = $op(Float64(x), Float64(y))
end
end |
Hi @stevengj, I removed the @eval because of the following comment by @andyferris : Or would it be better if I add the |
If |
The build is failing because of some 32bit issue, not because of the code in this PR. |
The AppVeyor failure is an inference failure on 32-bit Windows. It's not completely clear to me that it is unrelated — are we seeing the same failure on other PRs? |
See #29923, happens on most PRs |
Hi, Is this PR ready to be merged ? Or is there something else I could change? |
Be sure to squash when merging. |
CI ran out of logspace. This still ok to squash and merge? |
Rerunning CI to be sure. |
@stevengj already approved, so if CI passes, someone please merge. |
@fredrikekre, I don't think a bugfix like this requires a NEWS item…? |
Ok, thought it was |
All the discussions corresponding to this PR is in #29870
Fixes issue #29743