| 1 | /// Floor (f32) |
|---|---|
| 2 | /// |
| 3 | /// Finds the nearest integer less than or equal to `x`. |
| 4 | #[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)] |
| 5 | pub fn floorf(x: f32) -> f32 { |
| 6 | select_implementation! { |
| 7 | name: floorf, |
| 8 | use_arch: all(target_arch = "wasm32", intrinsics_enabled), |
| 9 | args: x, |
| 10 | } |
| 11 | |
| 12 | return super::generic::floor(x); |
| 13 | } |
| 14 |
