From 4b9528ec3bc98617dd3fe12e35a7acc1808b36e9 Mon Sep 17 00:00:00 2001 From: 8051enthusiast <8051enthusiast@protonmail.com> Date: Fri, 26 May 2023 03:42:32 +0200 Subject: [PATCH] Fix documentation for carryless multiplication --- library/stdarch/crates/core_arch/src/x86/pclmulqdq.rs | 2 +- library/stdarch/crates/core_arch/src/x86/vpclmulqdq.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/library/stdarch/crates/core_arch/src/x86/pclmulqdq.rs b/library/stdarch/crates/core_arch/src/x86/pclmulqdq.rs index 6a5cd73f9392..e7e17d9e3c2e 100644 --- a/library/stdarch/crates/core_arch/src/x86/pclmulqdq.rs +++ b/library/stdarch/crates/core_arch/src/x86/pclmulqdq.rs @@ -17,7 +17,7 @@ extern "C" { } /// Performs a carry-less multiplication of two 64-bit polynomials over the -/// finite field GF(2^k). +/// finite field GF(2). /// /// The immediate byte is used for determining which halves of `a` and `b` /// should be used. Immediate bits other than 0 and 4 are ignored. diff --git a/library/stdarch/crates/core_arch/src/x86/vpclmulqdq.rs b/library/stdarch/crates/core_arch/src/x86/vpclmulqdq.rs index 7a9769fb201a..269eda1d93fc 100644 --- a/library/stdarch/crates/core_arch/src/x86/vpclmulqdq.rs +++ b/library/stdarch/crates/core_arch/src/x86/vpclmulqdq.rs @@ -24,7 +24,7 @@ extern "C" { // so we need to special-case on that... /// Performs a carry-less multiplication of two 64-bit polynomials over the -/// finite field GF(2^k) - in each of the 4 128-bit lanes. +/// finite field GF(2) - in each of the 4 128-bit lanes. /// /// The immediate byte is used for determining which halves of each lane `a` and `b` /// should be used. Immediate bits other than 0 and 4 are ignored. @@ -42,7 +42,7 @@ pub unsafe fn _mm512_clmulepi64_epi128(a: __m512i, b: __m512i) } /// Performs a carry-less multiplication of two 64-bit polynomials over the -/// finite field GF(2^k) - in each of the 2 128-bit lanes. +/// finite field GF(2) - in each of the 2 128-bit lanes. /// /// The immediate byte is used for determining which halves of each lane `a` and `b` /// should be used. Immediate bits other than 0 and 4 are ignored.