1 | /// Sign of Y, magnitude of X (f32) |
---|---|
2 | /// |
3 | /// Constructs a number with the magnitude (absolute value) of its |
4 | /// first argument, `x`, and the sign of its second argument, `y`. |
5 | #[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)] |
6 | pub fn copysignf(x: f32, y: f32) -> f32 { |
7 | super::generic::copysign(x, y) |
8 | } |
9 |