☰
Debian Codegraph
@
1.12.1-2
1.12.1-1
1.12.0-3
1.12.0-2
1.11.1-3
1.11.1-2
/
/
test cases
/
rust
/
14 external libm
/
rs_math.rs
☽
☼
test cases/rust/14 external libm/rs_math.rs
code
plain
raw
Apache-2.0
2012-2021 The Meson development team
debian/copyright
1
#![crate_name = "rs_math"]
2
3
use std::os::raw::c_double;
4
5
extern "C" {
6
fn log2(n: c_double) -> c_double;
7
}
8
9
#[no_mangle]
10
pub extern fn rs_log2(n: c_double) -> c_double {
11
unsafe { log2(n) }
12
}