pub fn abs(self) -> Self {
f16_impl!(Self::from_bits(self.to_bits() & 0x7FFF), [])
}
+ pub fn copysign(self, sign: Self) -> Self {
+ f16_impl!(
+ Self::from_bits((self.to_bits() & 0x7FFF) | (sign.to_bits() & 0x8000)),
+ [sign]
+ )
+ }
pub fn trunc(self) -> Self {
#[cfg(feature = "std")]
return f32::from(self).trunc().to();