compiler_builtins 0.1.160

Compiler intrinsics used by the Rust compiler.
Documentation
1
2
3
4
5
6
use crate::support::Float;

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