]>
git.proxmox.com Git - rustc.git/blob - vendor/libm-0.1.4/src/math/fdimf.rs
3 /// Positive difference (f32)
5 /// Determines the positive difference between arguments, returning:
6 /// * x - y if x > y, or
8 /// * NAN if either argument is NAN.
10 /// A range error may occur.
12 #[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
13 pub fn fdimf(x
: f32, y
: f32) -> f32 {
16 } else if y
.is_nan() {