Created
May 29, 2020 20:34
-
-
Save alexcrichton/c8dbdcdb186a8818dc38aae805b1cad0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[no_mangle] | |
pub extern "C" fn wasm_sin(key: i32) -> i32 { | |
(key as f32).sin() as i32 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment