On Sun, 23 Mar 2025 00:21:18 GMT, Volodymyr Paprotski <vpaprot...@openjdk.org> wrote:
>> src/hotspot/cpu/x86/stubGenerator_x86_64_dilithium.cpp line 119: >> >>> 117: static address dilithiumAvx512PermsAddr() { >>> 118: return (address) dilithiumAvx512Perms; >>> 119: } >> >> Hear me out.. ... >> enums!! >> >> enum nttPermOffset { >> montMulPermsIdx = 0, >> nttL4PermsIdx = 64, >> nttL5PermsIdx = 192, >> nttL6PermsIdx = 320, >> nttL7PermsIdx = 448, >> nttInvL0PermsIdx = 704, >> nttInvL1PermsIdx = 832, >> nttInvL2PermsIdx = 960, >> nttInvL3PermsIdx = 1088, >> nttInvL4PermsIdx = 1216, >> }; >> static address dilithiumAvx512PermsAddr(nttPermOffset offset) { >> return (address) dilithiumAvx512Perms + offset; >> } > > belay that comment.. now that I looked at > `generate_dilithiumAlmostInverseNtt_avx512`, I see why thats not the 'entire > picture'.. I leave it as it is now. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/23860#discussion_r2021149925