From e29fe90ce0520132d62df571f814a8492982d684 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Tue, 16 Jan 2024 13:52:55 +0000 Subject: [PATCH] utils/gcm-ref (present_gf_vmullp64): Add `v' prefix to match front end. The inconsistency annoyed me. --- utils/gcm-ref | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/gcm-ref b/utils/gcm-ref index 8ad15e5a..6a9c4c22 100755 --- a/utils/gcm-ref +++ b/utils/gcm-ref @@ -237,7 +237,7 @@ def rev8(x): x = ((x&m_55) << 1) | ((x >> 1)&m_55) return x -def present_gf_mullp64(tag, wd, x, w, n, what): +def present_gf_vmullp64(tag, wd, x, w, n, what): if tag == TAG_PRODPIECE or tag == TAG_REDCFULL: return elif (wd == 128 or wd == 64) and TAG_PRODSUM <= tag <= TAG_PRODUCT: @@ -439,7 +439,7 @@ def demo_pclmul(u, v): @demo def demo_vmullp64(u, v): w = 8*len(u) - return poly64_common(u, v, presfn = present_gf_mullp64, + return poly64_common(u, v, presfn = present_gf_vmullp64, redcwd = w%64 == 32 and 32 or 64) @demo -- 2.11.0