Sign in
qemu
/
meson
/
2d7b7c3aaf23d08d51f375fa1eea80e0ffffed87
/
.
/
test cases
/
rust
/
14 external libm
/
rs_math.rs
blob: ef53a5c3e83681b78e86c10953088543a973a1bc [
file
] [
log
] [
blame
]
#![
crate_name
=
"rs_math"
]
use
std
::
os
::
raw
::
c_double
;
extern
"C"
{
fn
log2
(
n
:
c_double
)
->
c_double
;
}
#[
no_mangle
]
pub
extern
fn
rs_log2
(
n
:
c_double
)
->
c_double
{
unsafe
{
log2
(
n
)
}
}