Skip to content

Commit f49dee1

Browse files
8051EnthusiastAmanieu
authored andcommitted
Fix documentation for carryless multiplication
1 parent 6f34905 commit f49dee1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/core_arch/src/x86/pclmulqdq.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ extern "C" {
1717
}
1818

1919
/// Performs a carry-less multiplication of two 64-bit polynomials over the
20-
/// finite field GF(2^k).
20+
/// finite field GF(2).
2121
///
2222
/// The immediate byte is used for determining which halves of `a` and `b`
2323
/// should be used. Immediate bits other than 0 and 4 are ignored.

crates/core_arch/src/x86/vpclmulqdq.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ extern "C" {
2424
// so we need to special-case on that...
2525

2626
/// Performs a carry-less multiplication of two 64-bit polynomials over the
27-
/// finite field GF(2^k) - in each of the 4 128-bit lanes.
27+
/// finite field GF(2) - in each of the 4 128-bit lanes.
2828
///
2929
/// The immediate byte is used for determining which halves of each lane `a` and `b`
3030
/// should be used. Immediate bits other than 0 and 4 are ignored.
@@ -42,7 +42,7 @@ pub unsafe fn _mm512_clmulepi64_epi128<const IMM8: i32>(a: __m512i, b: __m512i)
4242
}
4343

4444
/// Performs a carry-less multiplication of two 64-bit polynomials over the
45-
/// finite field GF(2^k) - in each of the 2 128-bit lanes.
45+
/// finite field GF(2) - in each of the 2 128-bit lanes.
4646
///
4747
/// The immediate byte is used for determining which halves of each lane `a` and `b`
4848
/// should be used. Immediate bits other than 0 and 4 are ignored.

0 commit comments

Comments
 (0)