Skip to content

Commit

Permalink
Merge pull request #522 from cr1901/msp-shift
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu authored Mar 29, 2023
2 parents 0b9bbd6 + 038dee5 commit 93d4c78
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/int/shift.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ intrinsics! {
#[avr_skip]
#[maybe_use_optimized_c_shim]
#[arm_aeabi_alias = __aeabi_llsl]
pub extern "C" fn __ashldi3(a: u64, b: u32) -> u64 {
a.ashl(b)
pub extern "C" fn __ashldi3(a: u64, b: core::ffi::c_uint) -> u64 {
a.ashl(b as u32)
}

#[avr_skip]
Expand All @@ -96,8 +96,8 @@ intrinsics! {
#[avr_skip]
#[maybe_use_optimized_c_shim]
#[arm_aeabi_alias = __aeabi_lasr]
pub extern "C" fn __ashrdi3(a: i64, b: u32) -> i64 {
a.ashr(b)
pub extern "C" fn __ashrdi3(a: i64, b: core::ffi::c_uint) -> i64 {
a.ashr(b as u32)
}

#[avr_skip]
Expand All @@ -114,8 +114,8 @@ intrinsics! {
#[avr_skip]
#[maybe_use_optimized_c_shim]
#[arm_aeabi_alias = __aeabi_llsr]
pub extern "C" fn __lshrdi3(a: u64, b: u32) -> u64 {
a.lshr(b)
pub extern "C" fn __lshrdi3(a: u64, b: core::ffi::c_uint) -> u64 {
a.lshr(b as u32)
}

#[avr_skip]
Expand Down

0 comments on commit 93d4c78

Please sign in to comment.