Skip to content
This repository has been archived by the owner on Jun 7, 2020. It is now read-only.

Commit

Permalink
Fix addcarry / subborrow intrinsic names (rust-lang#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic authored and alexcrichton committed Jan 30, 2019
1 parent 0103735 commit 77a38ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/core_arch/src/x86/adx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ use stdsimd_test::assert_instr;

#[allow(improper_ctypes)]
extern "unadjusted" {
#[link_name = "llvm.x86.addcarry.u32"]
#[link_name = "llvm.x86.addcarry.32"]
fn llvm_addcarry_u32(a: u8, b: u32, c: u32) -> (u8, u32);
#[link_name = "llvm.x86.subborrow.u32"]
#[link_name = "llvm.x86.subborrow.32"]
fn llvm_subborrow_u32(a: u8, b: u32, c: u32) -> (u8, u32);
}

Expand Down
4 changes: 2 additions & 2 deletions crates/core_arch/src/x86_64/adx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ use stdsimd_test::assert_instr;

#[allow(improper_ctypes)]
extern "unadjusted" {
#[link_name = "llvm.x86.addcarry.u64"]
#[link_name = "llvm.x86.addcarry.64"]
fn llvm_addcarry_u64(a: u8, b: u64, c: u64) -> (u8, u64);
#[link_name = "llvm.x86.subborrow.u64"]
#[link_name = "llvm.x86.subborrow.64"]
fn llvm_subborrow_u64(a: u8, b: u64, c: u64) -> (u8, u64);
}

Expand Down

0 comments on commit 77a38ba

Please sign in to comment.