| 1 | /// The square root of `x` (f32). |
|---|---|
| 2 | #[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)] |
| 3 | pub fn sqrtf(x: f32) -> f32 { |
| 4 | select_implementation! { |
| 5 | name: sqrtf, |
| 6 | use_arch: any( |
| 7 | all(target_arch = "wasm32", intrinsics_enabled), |
| 8 | target_feature = "sse2" |
| 9 | ), |
| 10 | args: x, |
| 11 | } |
| 12 | |
| 13 | super::generic::sqrt(x) |
| 14 | } |
| 15 |
