Vector API Operators: Saturating Arithmetic
Paul Sandoz
paul.sandoz at oracle.com
Mon Jul 10 17:50:05 UTC 2023
Hi Kartik,
I imagine its likely that we would eventually add such support, but it's not a top priority right now.
In my view the current top priorities are:
1. Alignment with Valhalla’s values (this also includes experiments with fp16).
2. Improved representation of Shuffle instances, thereby enhancing the performance.
Having said that contributions to the pamana-vector repository for such support would be welcome.
Paul.
On Jul 6, 2023, at 12:41 PM, Kartik Ohri <kartikohri13 at gmail.com> wrote:
Hi!
Looking over the list of Vector API Operators [1], I did not see a saturating subtraction/addition operator. Saturating subtraction has some useful use cases, for example it is used in [2] to perform UTF-8 validation. The JDK x64 intrinsic for Base64 encoding also uses it. Are there any plans to expose saturating arithmetic intrinsics through the Vector API sooner or later ?
[1]: https://download.java.net/java/early_access/jdk21/docs/api/jdk.incubator.vector/jdk/incubator/vector/VectorOperators.html
[2]: https://arxiv.org/abs/2010.03090
[3]: https://github.com/openjdk/panama-vector/blob/0e7288ffbf635b9fdb17e8017e9a4f673ca0501d/src/hotspot/cpu/x86/stubGenerator_x86_64.cpp#L5749
Regards,
Kartik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/panama-dev/attachments/20230710/8d9febc6/attachment.htm>
More information about the panama-dev
mailing list