ftz 0.0.1
Fast, reproducible floating-point arithmetic
Loading...
Searching...
No Matches
ftz.controls Module Reference

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::native_fp32_scope::external_scope
 Temporarily restores the enclosing region's caller environment for external code. Saves the current numerical state and reinstates it on return or unwind. The enclosing region must outlive this guard; both guards belong to the same thread. 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

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.

Files

file  src/cxx/modules/ftz.controls.ccm