Repository navigation
Conversation
|
If the difference in overflow handling, then we should have |
|
The problem is that, from what I've seen, NEON only has saturating, while x86 _only has wrapping. This means if we only have one method for saturating and one for wrapping, it's going to be slower on one of the two platforms. So I would like to have a method where the Maybe |
|
Sounds like we can't really provide consistent semantics here then. We can only implement the _relaxed variant that would be fast, so we're not really gaining portability here. The operation seems rather niche and difficult to explain. The way q15 types are exposed is also an API decision; should we expose a I'm leaning against merging this in the current form. You can add these ops to your crate via an extension trait, which Vello already does; I think that's the better path forward if all you need is multiplication. |
|
😕 I personally don't see it as being very problematic, as long as we maybe improve the documentation a bit, to clarify that the i16 is interpreted as a fixed-point number. But I'll trust your judgement here, I'll work around it from my side! |
|
Maybe I'm over-reacting after #433 Feel free to ask other maintainers/contributors for a second opinion |
Need this for my SVG filters crate I'm working on, for Gaussian blur. While a bit niche, it has dedicated instructions on all architectures, so worth having I think? Otherwise, I need to emulate it with feature gates on my side, and it's still worse.
Unfortunately, there is one edge case that is handled differently on x86... Hence why we need a fast variant and a
_preciseone. 🙃