Add truncf16 and truncf128

Use the generic algorithms to provide implementations for these
routines.
This commit is contained in:
Trevor Gross
2025-01-12 04:12:56 +00:00
parent 6ac06a97e5
commit b558b365d3
13 changed files with 61 additions and 5 deletions

View File

@@ -199,3 +199,13 @@ impl HasDomain<f16> for crate::op::fabsf16::Routine {
impl HasDomain<f128> for crate::op::fabsf128::Routine {
const DOMAIN: Domain<f128> = Domain::<f128>::UNBOUNDED;
}
#[cfg(f16_enabled)]
impl HasDomain<f16> for crate::op::truncf16::Routine {
const DOMAIN: Domain<f16> = Domain::<f16>::UNBOUNDED;
}
#[cfg(f128_enabled)]
impl HasDomain<f128> for crate::op::truncf128::Routine {
const DOMAIN: Domain<f128> = Domain::<f128>::UNBOUNDED;
}