• Home
  • Raw
  • Download

Lines Matching +full:rust +full:- +full:embedded

1 # `f16` and `bf16` floating point types for Rust
2 …com/starkat99/half-rs/actions/workflows/rust.yml/badge.svg?branch=master)](https://github.com/star…
4 This crate implements a half-precision floating point `f16` type for Rust implementing the IEEE
5 754-2008 standard [`binary16`](https://en.wikipedia.org/wiki/Half-precision_floating-point_format)
7 [`bfloat16`](https://en.wikipedia.org/wiki/Bfloat16_floating-point_format) format.
11 The `f16` and `bf16` types provides conversion operations as a normal Rust floating point type, but
16 This crate provides [`no_std`](https://rust-embedded.github.io/book/intro/no-std.html) support by
17 default so can easily be used in embedded code where a smaller float format is most useful.
19 *Requires Rust 1.58 or greater.* If you need support for older versions of Rust, use 1.x versions of
26 - **`serde`** - Implement `Serialize` and `Deserialize` traits for `f16` and `bf16`. This adds a
29 - **`use-intrinsics`** - Use hardware intrinsics for `f16` and `bf16` conversions if available on
32 Rust nightly channel.**
34 - **`alloc`** - Enable use of the [`alloc`](https://doc.rust-lang.org/alloc/) crate when not using
37 This enables the `vec` module, which contains zero-copy conversions for the `Vec` type. This
41 - **`std`** - Enable features that depend on the Rust `std` library, including everything in the
44 Enabling the `std` feature enables runtime CPU feature detection when the `use-intrsincis` feature
48 - **`num-traits`** - Enable `ToPrimitive`, `FromPrimitive`, `Num`, `Float`, `FloatCore` and
49 …`Bounded` trait implementations from the [`num-traits`](https://crates.io/crates/num-traits) crate.
51 - **`bytemuck`** - Enable `Zeroable` and `Pod` trait implementations from the
54 - **`zerocopy`** - Enable `AsBytes` and `FromBytes` trait implementations from the
59 - [Crate API Reference](https://docs.rs/half/)
60 - [Latest Changes](CHANGELOG.md)
68 * [Apache License, Version 2.0](LICENSES/Apache-2.0.txt)
69 ([http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0))
73 This project is [REUSE-compliant](https://reuse.software/spec/). Copyrights are retained by their
81 work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any