Skip to content

Commit

Permalink
Fix pulley no_std build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Dec 13, 2024
1 parent a18f774 commit ec1992d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pulley/src/interp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2136,14 +2136,14 @@ impl OpVisitor for Interpreter<'_> {
fn fcopysign32(&mut self, operands: BinaryOperands<FReg>) -> ControlFlow<Done> {
let a = self.state[operands.src1].get_f32();
let b = self.state[operands.src2].get_f32();
self.state[operands.dst].set_f32(a.copysign(b));
self.state[operands.dst].set_f32(a.wasm_copysign(b));
ControlFlow::Continue(())
}

fn fcopysign64(&mut self, operands: BinaryOperands<FReg>) -> ControlFlow<Done> {
let a = self.state[operands.src1].get_f64();
let b = self.state[operands.src2].get_f64();
self.state[operands.dst].set_f64(a.copysign(b));
self.state[operands.dst].set_f64(a.wasm_copysign(b));
ControlFlow::Continue(())
}

Expand Down

0 comments on commit ec1992d

Please sign in to comment.