✓ Uses Rust 2018 edition
|1.4.0||Oct 13, 2019|
|1.3.0||Oct 3, 2018|
|1.1.2||Jul 13, 2018|
|1.1.0||Mar 17, 2018|
|0.1.0||Mar 18, 2016|
#7 in No standard library
32,135 downloads per month
Used in 146 crates (18 directly)
bf16 types provides conversion operations as a normal Rust floating point type, but since they are primarily leveraged for
minimal floating point storage and most major hardware does not implement them, all math operations should be done as an
This crate provides
no_std support by default so can easily be used in embedded
code where a smaller float format is most useful.
Requries Rust 1.32 or greater. If you need support for older versions of Rust, use versions 1.3 and earlier of this crate.
See the crate documentation for more details.
bf16. This adds a dependency on the
use-intrinsics- Use hardware intrinsics for
bf16conversions if available on the compiler host target. By default, without this feature, conversions are done only in software, which will be the fallback if the host target does not have hardware support. Available only on Rust nightly channel.
std- Enable features that depend on the Rust
This enables the
vecmodule, which contains zero-copy conversions for the
Vectype. This allows fast conversion between raw
Vec<bf16>arrays, and vice versa.
In addition, enabling the
stdfeature enables runtime CPU feature detection when the
use-intrsincisfeature is also enabled. Without this feature detection, intrinsics are only used when compiler host target supports them.
This library is distributed under the terms of either of:
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.