Skip to content

1.8.0

Choose a tag to compare

@VoidStarKat VoidStarKat released this 14 Oct 01:06
727f5fb

Changed

  • Now always implements Add, Div, Mul, Neg, Rem, and Sub traits. Previously, these were only implemented under the num-traits feature. Keep in mind they still convert to f32 and back in the implementation.
  • Minimum supported Rust version is now 1.51.
  • Made crate package REUSE compliant.
  • Docs now use intra-doc links instead of manual (and hard to maintain) links.
  • The following methods on both f16 and bf16 are now const:
    • to_le_bytes
    • to_be_bytes
    • to_ne_bytes
    • from_le_bytes
    • from_be_bytes
    • from_ne_bytes
    • is_normal
    • classify
    • signum

Added

  • Added optional implementations of zerocopy traits AsBytes and FromBytes under zerocopy cargo feature. By @samcrow.
  • Implemented the core::iter::Product and core::iter::Sum traits, with the same caveat as above about converting to f32 and back under the hood.
  • Added new associated const NEG_ONE to both f16 and bf16.
  • Added the following new methods on both f16 and bf16:
    • copysign
    • max
    • min
    • clamp

Fixed

  • Fixed a number of minor lints discovered due to improved CI.