<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
Hi Kartik,
<div><br>
</div>
<div>I imagine its likely that we would eventually add such support, but it's not a top priority right now.</div>
<div><br>
</div>
<div>In my view the current top priorities are:</div>
<div><br>
</div>
<div>1. Alignment with Valhalla’s values (this also includes experiments with fp16).</div>
<div><br>
</div>
<div>2. Improved representation of Shuffle instances, thereby enhancing the performance.<br>
<div><br>
</div>
<div>Having said that contributions to the pamana-vector repository for such support would be welcome.</div>
<div><br>
</div>
<div>Paul.</div>
<div><br>
<blockquote type="cite">
<div>On Jul 6, 2023, at 12:41 PM, Kartik Ohri <kartikohri13@gmail.com> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<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>
</div>
</blockquote>
</div>
<br>
</div>
</body>
</html>