Skip to content

Commit

Permalink
Merge pull request #601 from Patryk27/fix_avr_floats
Browse files Browse the repository at this point in the history
fix: Add `#[avr_skip]` for `__addsf3` & `__adddf3`
  • Loading branch information
Amanieu authored May 4, 2024
2 parents 694cffa + c0ba865 commit 9c43e04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/float/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,14 @@ where
}

intrinsics! {
#[avr_skip]
#[aapcs_on_arm]
#[arm_aeabi_alias = __aeabi_fadd]
pub extern "C" fn __addsf3(a: f32, b: f32) -> f32 {
add(a, b)
}

#[avr_skip]
#[aapcs_on_arm]
#[arm_aeabi_alias = __aeabi_dadd]
pub extern "C" fn __adddf3(a: f64, b: f64) -> f64 {
Expand Down

0 comments on commit 9c43e04

Please sign in to comment.