Add link to OpenJDK JIRA issue for VectorUtil::xorBitCount

This commit is contained in:
ChrisHegarty 2024-07-09 12:17:21 +01:00
parent ceb4539609
commit 4baaedaa67

View File

@ -215,8 +215,8 @@ public final class VectorUtil {
/** /**
* For xorBitCount we stride over the values as either 64-bits (long) or 32-bits (int) at a time. * For xorBitCount we stride over the values as either 64-bits (long) or 32-bits (int) at a time.
* On ARM Long::bitCount is not vectorized, and therefore produces less than optimal code, when * On ARM Long::bitCount is not vectorized, and therefore produces less than optimal code, when
* compared to Integer::bitCount. While Long::bitCount is optimal on x64. TODO: include the * compared to Integer::bitCount. While Long::bitCount is optimal on x64. See
* OpenJDK JIRA url * https://bugs.openjdk.org/browse/JDK-8336000
*/ */
static final boolean XOR_BIT_COUNT_STRIDE_AS_INT = Constants.OS_ARCH.equals("aarch64"); static final boolean XOR_BIT_COUNT_STRIDE_AS_INT = Constants.OS_ARCH.equals("aarch64");