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) }
}