<div dir="ltr">Hi!<div><br></div><div>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 ?</div><div><br></div><div>[1]: <a href="https://download.java.net/java/early_access/jdk21/docs/api/jdk.incubator.vector/jdk/incubator/vector/VectorOperators.html">https://download.java.net/java/early_access/jdk21/docs/api/jdk.incubator.vector/jdk/incubator/vector/VectorOperators.html</a></div><div>[2]: <a href="https://arxiv.org/abs/2010.03090" target="_blank">https://arxiv.org/abs/2010.03090</a></div><div>[3]: <a href="https://github.com/openjdk/panama-vector/blob/0e7288ffbf635b9fdb17e8017e9a4f673ca0501d/src/hotspot/cpu/x86/stubGenerator_x86_64.cpp#L5749" target="_blank">https://github.com/openjdk/panama-vector/blob/0e7288ffbf635b9fdb17e8017e9a4f673ca0501d/src/hotspot/cpu/x86/stubGenerator_x86_64.cpp#L5749</a></div><div><br></div><div>Regards,</div><div>Kartik</div></div>