Commit 16fae56
authored
Restore behavior (by declaring safe) of these two-arg functions (#440)
Without these dispatches, `can_turbo` will return false for the
two-arg versions of `trunc`, `unsafe_trunc`, `round`, `ceil`, and
`floor`, which follow the form `f(::Type{T}, ::Union{Base.IEEEFloat,
Base.BitInteger64}) where T<:{Union{Base.IEEEFloat, Base.BitInteger64}`
These are well-supported in `VectorizationBase`; moreover,
the 1-arg versions register as safe despite the recent changes.
I have included `convert` and `reinterpret` in this list, as they
happen to follow the same form, and are also well-supported.1 parent 5f8ab91 commit 16fae56
2 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
925 | 929 | | |
926 | 930 | | |
927 | 931 | | |
| |||
0 commit comments