diff --git a/include/xsimd/arch/xsimd_wasm.hpp b/include/xsimd/arch/xsimd_wasm.hpp index fd86704dc..39cdfb189 100644 --- a/include/xsimd/arch/xsimd_wasm.hpp +++ b/include/xsimd/arch/xsimd_wasm.hpp @@ -319,6 +319,18 @@ namespace xsimd return wasm_f64x2_splat(val); } + // ceil + template + inline batch ceil(batch const& self, requires_arch) noexcept + { + return wasm_f32x4_ceil(self); + } + template + inline batch ceil(batch const& self, requires_arch) noexcept + { + return wasm_f64x2_ceil(self); + } + // div template inline batch div(batch const& self, batch const& other, requires_arch) noexcept @@ -403,6 +415,19 @@ namespace xsimd return wasm_f64x2_eq(self, other); } + // floor + template + inline batch floor(batch const& self, requires_arch) noexcept + { + return wasm_f32x4_floor(self); + } + + template + inline batch floor(batch const& self, requires_arch) noexcept + { + return wasm_f64x2_floor(self); + } + // ge template inline batch_bool ge(batch const& self, batch const& other, requires_arch) noexcept @@ -957,6 +982,18 @@ namespace xsimd { return wasm_f64x2_sqrt(val); } + + // trunc + template + inline batch trunc(batch const& self, requires_arch) noexcept + { + return wasm_f32x4_trunc(self); + } + template + inline batch trunc(batch const& self, requires_arch) noexcept + { + return wasm_f64x2_trunc(self); + } } }