about summary refs log tree commit diff
path: root/library
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2023-02-13 11:12:51 +0530
committerGitHub <noreply@github.com>2023-02-13 11:12:51 +0530
commit55f36ed0a480efbb77a8160ca5ce6d14a2b46282 (patch)
treea7a4f4614e8350110dc0f42fea9251cb87cce2d4 /library
parentb5aeba870630113769f5ac557fc42d5c0a67650b (diff)
parent913a566c22c78d630a74a1c43c8a40d20f0e58a4 (diff)
downloadrust-55f36ed0a480efbb77a8160ca5ce6d14a2b46282.tar.gz
rust-55f36ed0a480efbb77a8160ca5ce6d14a2b46282.zip
Rollup merge of #107970 - hermitcore:hermit-rm-floor, r=thomcc
Hermit: Remove floor symbol

This symbol should be provided by Hermit.

It was introduced in 2019 (https://github.com/rust-lang/rust/pull/65167). Since 2020, Hermit provides these math functions on its own (https://github.com/hermitcore/rusty-hermit/pull/37). I think moving this to Hermit was merely an oversight.

Related:
* https://github.com/hermitcore/libhermit-rs/pull/654
* https://github.com/hermitcore/rusty-hermit/pull/406

CC: `@stlankes`
Diffstat (limited to 'library')
-rw-r--r--library/std/src/sys/hermit/mod.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/library/std/src/sys/hermit/mod.rs b/library/std/src/sys/hermit/mod.rs
index 6811fadb018..20fd3dd8f09 100644
--- a/library/std/src/sys/hermit/mod.rs
+++ b/library/std/src/sys/hermit/mod.rs
@@ -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();