@@ -34,7 +34,7 @@ fn adc(a: BigDigit, b: BigDigit, acc: &mut u8) -> BigDigit {
34
34
#[ inline]
35
35
fn adc ( a : BigDigit , b : BigDigit , acc : & mut u8 ) -> BigDigit {
36
36
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
38
38
* acc = unsafe { core:: arch:: x86_64:: _addcarry_u32 ( * acc, a, b, & mut out) } ;
39
39
out
40
40
}
@@ -54,15 +54,15 @@ fn adc(a: BigDigit, b: BigDigit, acc: &mut DoubleBigDigit) -> BigDigit {
54
54
#[ inline]
55
55
fn sbb ( a : BigDigit , b : BigDigit , acc : & mut u8 ) -> BigDigit {
56
56
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
58
58
* acc = unsafe { core:: arch:: x86_64:: _subborrow_u64 ( * acc, a, b, & mut out) } ;
59
59
out
60
60
}
61
61
#[ cfg( use_addcarry_u32) ]
62
62
#[ inline]
63
63
fn sbb ( a : BigDigit , b : BigDigit , acc : & mut u8 ) -> BigDigit {
64
64
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
66
66
* acc = unsafe { core:: arch:: x86_64:: _subborrow_u32 ( * acc, a, b, & mut out) } ;
67
67
out
68
68
}
0 commit comments