MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / float_bin_op_32

Function float_bin_op_32

crates/parser/src/optimize.rs:624–635  ·  view source on GitHub ↗
(instr: Instruction)

Source from the content-addressed store, hash-verified

622}
623
624fn float_bin_op_32(instr: Instruction) -> Option<BinOp> {
625 Some(match instr {
626 Instruction::F32Add => BinOp::FAdd,
627 Instruction::F32Sub => BinOp::FSub,
628 Instruction::F32Mul => BinOp::FMul,
629 Instruction::F32Div => BinOp::FDiv,
630 Instruction::F32Min => BinOp::FMin,
631 Instruction::F32Max => BinOp::FMax,
632 Instruction::F32Copysign => BinOp::FCopysign,
633 _ => return None,
634 })
635}
636
637fn float_bin_op_64(instr: Instruction) -> Option<BinOp> {
638 Some(match instr {

Callers 3

rewriteFunction · 0.85
scalar_bin_op_32Function · 0.85
scalar_const_32Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected