android: Remove libstd hacks for unsupported Android APIs

Our minimum supported API version is 21, remove hacks to support older
Android APIs.
This commit is contained in:
Matthew Maurer
2024-07-30 22:52:51 +00:00
parent f8060d282d
commit 7d7ad7b874
5 changed files with 2 additions and 106 deletions

View File

@@ -574,7 +574,7 @@ impl f64 {
#[stable(feature = "rust1", since = "1.0.0")]
#[inline]
pub fn log2(self) -> f64 {
crate::sys::log2f64(self)
unsafe { intrinsics::log2f64(self) }
}
/// Returns the base 10 logarithm of the number.