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

Function float_bin_op_64

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

Source from the content-addressed store, hash-verified

635}
636
637fn float_bin_op_64(instr: Instruction) -> Option<BinOp> {
638 Some(match instr {
639 Instruction::F64Add => BinOp::FAdd,
640 Instruction::F64Sub => BinOp::FSub,
641 Instruction::F64Mul => BinOp::FMul,
642 Instruction::F64Div => BinOp::FDiv,
643 Instruction::F64Min => BinOp::FMin,
644 Instruction::F64Max => BinOp::FMax,
645 Instruction::F64Copysign => BinOp::FCopysign,
646 _ => return None,
647 })
648}
649
650fn scalar_bin_op_32(instr: Instruction) -> Option<BinOp> {
651 int_bin_op_32(instr).or_else(|| float_bin_op_32(instr))

Callers 3

rewriteFunction · 0.85
scalar_bin_op_64Function · 0.85
scalar_const_64Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected