std::intrinsics

Function truncf16

Source
pub unsafe extern "rust-intrinsic" fn truncf16(x: f16) -> f16
🔬This is a nightly-only experimental API. (core_intrinsics)
Expand description

Returns the integer part of an f16.

The stabilized version of this intrinsic is f16::trunc