mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 22:25:40 +00:00
10 lines
294 B
Rust
10 lines
294 B
Rust
use crate::emscripten_target;
|
|
use wasmer_runtime_core::vm::Ctx;
|
|
|
|
///emscripten: _llvm_bswap_i64
|
|
pub fn _llvm_bswap_i64(_ctx: &mut Ctx, _low: i32, high: i32) -> i32 {
|
|
debug!("emscripten::_llvm_bswap_i64");
|
|
emscripten_target::setTempRet0(_ctx, _low.swap_bytes());
|
|
high.swap_bytes()
|
|
}
|