Skip to content

Commit 4e20fc3

Browse files
ejmahlercuviper
authored andcommitted
Include intrinsics from core::arch, not std::arch
1 parent 57fdf6a commit 4e20fc3

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
@@ -139,7 +139,7 @@ pub(crate) fn rem_digit(a: &BigUint, b: BigDigit) -> BigDigit {
139139
pub(crate) fn __add2(a: &mut [BigDigit], b: &[BigDigit]) -> BigDigit {
140140
debug_assert!(a.len() >= b.len());
141141

142-
use std::arch::x86_64::_addcarry_u64;
142+
use core::arch::x86_64::_addcarry_u64;
143143

144144
let mut carry = 0;
145145
let (a_lo, a_hi) = a.split_at_mut(b.len());
@@ -205,7 +205,7 @@ pub(crate) fn add2(a: &mut [BigDigit], b: &[BigDigit]) {
205205

206206
#[cfg(all(u64_digit, target_arch = "x86_64"))] // only run on x86_64, when we have u64 digits
207207
pub(crate) fn sub2(a: &mut [BigDigit], b: &[BigDigit]) {
208-
use std::arch::x86_64::_subborrow_u64;
208+
use core::arch::x86_64::_subborrow_u64;
209209

210210
let mut borrow = 0;
211211

@@ -267,7 +267,7 @@ pub(crate) fn sub2(a: &mut [BigDigit], b: &[BigDigit]) {
267267
#[cfg(all(u64_digit, target_arch = "x86_64"))] // only run on x86_64, when we have u64 digits
268268
#[inline]
269269
pub(crate) fn __sub2rev(a: &[BigDigit], b: &mut [BigDigit]) -> BigDigit {
270-
use std::arch::x86_64::_subborrow_u64;
270+
use core::arch::x86_64::_subborrow_u64;
271271
debug_assert!(b.len() == a.len());
272272

273273
let mut borrow = 0;

0 commit comments

Comments
 (0)