about summary refs log tree commit diff
path: root/library/compiler-builtins/libm/src/math/sqrtf.rs
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2025-04-22 19:35:21 -0400
committerTrevor Gross <t.gross35@gmail.com>2025-05-22 13:22:51 +0200
commitdb21837095f18a76d1fecb7d55547688a6b19647 (patch)
treebff772bfcbe8bb17335f6519a54dfb4f44af0b2a /library/compiler-builtins/libm/src/math/sqrtf.rs
parent7966f1b556f39882b3e451533a74a3b24a34cb05 (diff)
downloadrust-db21837095f18a76d1fecb7d55547688a6b19647.tar.gz
rust-db21837095f18a76d1fecb7d55547688a6b19647.zip
libm: Clean up unused files
These were deleted during refactoring in 0a2dc5d9 ("Combine the source
files for more generic implementations") but got added back by accident
in 54bac411 ("refactor: Move the libm crate to a subdirectory"). Remove
them again here.
Diffstat (limited to 'library/compiler-builtins/libm/src/math/sqrtf.rs')
-rw-r--r--library/compiler-builtins/libm/src/math/sqrtf.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/library/compiler-builtins/libm/src/math/sqrtf.rs b/library/compiler-builtins/libm/src/math/sqrtf.rs
deleted file mode 100644
index c28a705e378..00000000000
--- a/library/compiler-builtins/libm/src/math/sqrtf.rs
+++ /dev/null
@@ -1,15 +0,0 @@
-/// The square root of `x` (f32).
-#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
-pub fn sqrtf(x: f32) -> f32 {
-    select_implementation! {
-        name: sqrtf,
-        use_arch: any(
-            all(target_arch = "aarch64", target_feature = "neon"),
-            all(target_arch = "wasm32", intrinsics_enabled),
-            target_feature = "sse2"
-        ),
-        args: x,
-    }
-
-    super::generic::sqrt(x)
-}