acid/firmware2/src/ffi/gcc_runtime.rs

15 lines
319 B
Rust
Raw Normal View History

2026-01-05 04:16:08 +01:00
//! https://gcc.gnu.org/onlinedocs/gcc-15.2.0/gccint/Libgcc.html
2026-01-06 22:52:41 +01:00
#![allow(unused_variables)]
use core::ffi::c_long;
2026-01-05 04:16:08 +01:00
unsafe extern "C" {
fn __divdi3(a: c_long, b: c_long) -> c_long;
}
#[unsafe(no_mangle)]
2026-01-06 22:52:41 +01:00
pub unsafe extern "C" fn __xkbc___divdi3(a: c_long, b: c_long) -> c_long {
2026-01-05 04:16:08 +01:00
unsafe { __divdi3(a, b) }
}