Skip to content

Commit 0cc50c9

Browse files
ejmahlercuviper
authored andcommitted
fixed copy/paste error
1 parent 49ff7b7 commit 0cc50c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/algorithms.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn adc(a: BigDigit, b: BigDigit, acc: &mut u8) -> BigDigit {
3434
#[inline]
3535
fn adc(a: BigDigit, b: BigDigit, acc: &mut u8) -> BigDigit {
3636
let mut out = 0;
37-
// Safety: There are absolutely no safety concerns with calling _addcarry_u64, it's just unsafe for API consistency with other intrinsics
37+
// Safety: There are absolutely no safety concerns with calling _addcarry_u32, it's just unsafe for API consistency with other intrinsics
3838
*acc = unsafe { core::arch::x86_64::_addcarry_u32(*acc, a, b, &mut out) };
3939
out
4040
}
@@ -54,15 +54,15 @@ fn adc(a: BigDigit, b: BigDigit, acc: &mut DoubleBigDigit) -> BigDigit {
5454
#[inline]
5555
fn sbb(a: BigDigit, b: BigDigit, acc: &mut u8) -> BigDigit {
5656
let mut out = 0;
57-
// Safety: There are absolutely no safety concerns with calling _addcarry_u64, it's just unsafe for API consistency with other intrinsics
57+
// Safety: There are absolutely no safety concerns with calling _subborrow_u64, it's just unsafe for API consistency with other intrinsics
5858
*acc = unsafe { core::arch::x86_64::_subborrow_u64(*acc, a, b, &mut out) };
5959
out
6060
}
6161
#[cfg(use_addcarry_u32)]
6262
#[inline]
6363
fn sbb(a: BigDigit, b: BigDigit, acc: &mut u8) -> BigDigit {
6464
let mut out = 0;
65-
// Safety: There are absolutely no safety concerns with calling _addcarry_u64, it's just unsafe for API consistency with other intrinsics
65+
// Safety: There are absolutely no safety concerns with calling _subborrow_u32, it's just unsafe for API consistency with other intrinsics
6666
*acc = unsafe { core::arch::x86_64::_subborrow_u32(*acc, a, b, &mut out) };
6767
out
6868
}

0 commit comments

Comments
 (0)