#wrapper #experimental #unstable #experiment #floats #f64 #f32

nightly fast-floats

Fast-math wrappers for floats; experimental and unstable; for experiments

4 releases

0.2.0 Nov 1, 2021
0.1.2 Sep 26, 2019
0.1.1 Nov 26, 2017
0.1.0 Nov 26, 2017

#1835 in Rust patterns

MIT/Apache

9KB
158 lines

Experimental (unstable) “fast-math” wrappers for f32, f64

These wrappers enable the “fast-math” flags for the operations where there are intrinsics for this (add, sub, mul, div, rem). The wrappers exist so that we have a quick & easy way to experiment with fast math flags and further that feature in Rust.

Note that as of this writing, the Rust instrinsics use the “fast” flag documented in the langref; this enables all the float flags.

Rust Version

This crate is nightly only and experimental. Breaking changes can occur at any time, if changes in Rust require it.


lib.rs:

Experimental (unstable) “fast-math” wrappers for f32, f64

These wrappers enable the “fast-math” flags for the operations where there are intrinsics for this (add, sub, mul, div, rem). The wrappers exist so that we have a quick & easy way to experiment with fast math flags and further that feature in Rust.

Note that as of this writing, the Rust instrinsics use the “fast” flag documented in the langref; this enables all the float flags.

Rust Version

This crate is nightly only and experimental. Breaking changes can occur at any time, if changes in Rust require it.

No runtime deps