Debian Codegraph @

debian/rust-vendor/libm/src/math/generic/fdim.rs

raw
1 use crate::support::Float;
2
3 #[inline]
4 pub fn fdim<F: Float>(x: F, y: F) -> F {
5 if x <= y { F::ZERO } else { x - y }
6 }