Skip to content

Commit

Permalink
Rollup merge of #107970 - hermitcore:hermit-rm-floor, r=thomcc
Browse files Browse the repository at this point in the history
Hermit: Remove floor symbol

This symbol should be provided by Hermit.

It was introduced in 2019 (#65167). Since 2020, Hermit provides these math functions on its own (hermit-os/hermit-rs#37). I think moving this to Hermit was merely an oversight.

Related:
* hermit-os/kernel#654
* hermit-os/hermit-rs#406

CC: `@stlankes`
  • Loading branch information
Dylan-DPC authored Feb 13, 2023
2 parents b5aeba8 + 913a566 commit 55f36ed
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions library/std/src/sys/hermit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ pub fn unsupported_err() -> crate::io::Error {
)
}

#[no_mangle]
pub extern "C" fn floor(x: f64) -> f64 {
unsafe { intrinsics::floorf64(x) }
}

pub fn abort_internal() -> ! {
unsafe {
abi::abort();
Expand Down

0 comments on commit 55f36ed

Please sign in to comment.