mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-25 14:41:32 +00:00
Added missing functions for pyodide
Since Pyodide is focused on running on desktop, this pull-request lacks Javascript runtime functions. It also sorted alphabetically some functions
This commit is contained in:
@ -1,5 +1,15 @@
|
||||
use std::{f32, f64};
|
||||
use wasmer_runtime_core::vm::Ctx;
|
||||
|
||||
pub fn _llvm_copysign_f32(_ctx: &mut Ctx, x: f64, y: f64) -> f64 {
|
||||
// f32::copysign(x, y)
|
||||
f64::copysign(x, y)
|
||||
}
|
||||
|
||||
pub fn _llvm_copysign_f64(_ctx: &mut Ctx, x: f64, y: f64) -> f64 {
|
||||
f64::copysign(x, y)
|
||||
}
|
||||
|
||||
/// emscripten: _llvm_log10_f64
|
||||
pub fn _llvm_log10_f64(_ctx: &mut Ctx, value: f64) -> f64 {
|
||||
debug!("emscripten::_llvm_log10_f64");
|
||||
|
Reference in New Issue
Block a user