☰
Debian Codegraph
@
0.12.0-1
0.10.0-1
/
/
debian
/
rust-vendor
/
libm
/
src
/
math
/
generic
/
fdim.rs
☽
☼
debian/rust-vendor/libm/src/math/generic/fdim.rs
code
plain
raw
MIT
or
Apache-2.0
the respective crate authors
debian/copyright
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
}