Files
Notes/notes-service/vendor/libm/src/math/generic/fdim.rs
T
2026-08-01 16:11:49 +03:00

7 lines
122 B
Rust

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