1 // Copyright 2019 Google LLC 2 // 3 // This source code is licensed under the BSD-style license found in the 4 // LICENSE file in the root directory of this source tree. 5 6 #include <stdint.h> 7 8 #include <fp16.h> 9 10 #include <xnnpack/common.h> 11 xnn_stub_wasm_f32_sub(uint32_t a,uint32_t b)12uint32_t xnn_stub_wasm_f32_sub(uint32_t a, uint32_t b) { 13 return fp32_to_bits(fp32_from_bits(a) - fp32_from_bits(b)); 14 } 15 16 #if XNN_ARCH_WASM || XNN_ARCH_WASMSIMD xnn_stub_wasm_f32_min(uint32_t a,uint32_t b)17uint32_t xnn_stub_wasm_f32_min(uint32_t a, uint32_t b) { 18 return fp32_to_bits(__builtin_wasm_min_f32(fp32_from_bits(a), fp32_from_bits(b))); 19 } 20 #endif // XNN_ARCH_WASM || XNN_ARCH_WASMSIMD 21