Skip to content

Commit

Permalink
fix: add rint and rintf (#1422)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwen01 authored Aug 28, 2024
1 parent 18b942a commit 328af9f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions crates/zkvm/entrypoint/src/libm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,16 @@ pub fn remquo(x: f64, y: f64) -> (f64, i32) {
libm::remquo(x, y)
}

#[no_mangle]
pub extern "C" fn rint(arg: f64) -> f64 {
libm::rint(arg)
}

#[no_mangle]
pub extern "C" fn rintf(arg: f32) -> f32 {
libm::rintf(arg)
}

#[no_mangle]
pub fn remquof(x: f32, y: f32) -> (f32, i32) {
libm::remquof(x, y)
Expand Down

0 comments on commit 328af9f

Please sign in to comment.