Vector API Operators: Saturating Arithmetic
Kartik Ohri
kartikohri13 at gmail.com
Thu Jul 6 19:41:35 UTC 2023
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/20230707/db7f5ca7/attachment.htm>
More information about the panama-dev
mailing list