Merge pull request #466 from Patryk27/avr

This commit is contained in:
Amanieu d'Antras 2022-05-24 19:58:50 +02:00 committed by GitHub
commit c585b7fd4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,6 +57,7 @@ intrinsics! {
// Note: we use block configuration and not `if cfg!(...)`, because we need to entirely disable
// the existence of `u128_div_rem` to get 32-bit SPARC to compile, see `u128_divide_sparc` docs.
#[avr_skip]
#[win64_128bit_abi_hack]
/// Returns `n / d`
pub extern "C" fn __udivti3(n: u128, d: u128) -> u128 {
@ -68,6 +69,7 @@ intrinsics! {
}
}
#[avr_skip]
#[win64_128bit_abi_hack]
/// Returns `n % d`
pub extern "C" fn __umodti3(n: u128, d: u128) -> u128 {