|
ftz 0.0.1
Fast, reproducible floating-point arithmetic
|
Classes | |
| struct | ftz::native_fp_state |
| Opaque native control/status snapshot, suitable for exact restoration checks. More... | |
| struct | ftz::native_fp32_scope |
| Borrows the calling thread with RNE, masked exceptions and selected denormal controls. Saves and restores complete control/status state. The object and its nested external scopes must be destroyed on their constructing thread. It cannot be copied or moved. Construction throws on invalid/unavailable controls when exceptions are enabled; otherwise it terminates. Destruction is noexcept. More... | |
| struct | ftz::ftz32_cpu_admission |
| Results of finite startup witnesses for this scalar compilation and calling thread. These observations are not an exhaustive proof of every arithmetic input. More... | |
Enumerations | |
| enum class | ftz::native_fp32_mode |
| Selects gradual denormals or signed native input/output flushing. | |
| enum class | ftz::ftz32_cpu_failure |
| Identifies the first rejected admission requirement. | |
Functions | |
| template<ftz32_type T = ftz32> | |
| ftz32_cpu_admission | ftz::probe_ftz32_cpu () |
| Observes whether this compiled scalar profile meets the requested policy. | |
| bool | ftz::native_fp32_environment_available () noexcept |
| Reports whether this build can access native CPU FP controls; this is not numerical admission. | |
| native_fp_state | ftz::read_native_fp_state () noexcept |
| Reads this thread's controls and status without changing them; unsupported hosts return zero fields. | |
| bool | ftz::set_native_fp32_mode (native_fp32_mode mode) noexcept |
| Initializes an application-owned numerical thread, without restoration or admission. | |
Controls are local to the calling CPU thread. They neither enable an ISA nor configure a GPU. Establish the environment on every numerical worker and qualify the compiled profile explicitly; ordinary arithmetic never probes it.
|
inlinenodiscardexport |
Observes whether this compiled scalar profile meets the requested policy.
| T | m32 or h32; the default is the configured compatibility alias. Call at startup in the intended environment. The probe does not change controls or qualify CPU ISA/OS vector state, another thread, a GPU, or every math input. Masked status flags may change; use native_fp32_scope to restore the caller. |