wasmer/lib/emscripten/src/bitwise.rs

10 lines
294 B
Rust
Raw Normal View History

2019-04-04 20:58:05 +00:00
use crate::emscripten_target;
2019-03-26 21:37:47 +00:00
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");
2019-04-04 20:58:05 +00:00
emscripten_target::setTempRet0(_ctx, _low.swap_bytes());
2019-03-26 21:37:47 +00:00
high.swap_bytes()
}