Skip to content

acl/core/floating_point_control.h

#include "acl/core/floating_point_control.h"

The functions that change and restore the floating point exceptions and the flush to zero mode.

enable_fp_exceptions

void enable_fp_exceptions(fp_environment& out_old_env)

Enables floating point exceptions for invalid operations, division by zero, and overflow.

disable_fp_exceptions

void disable_fp_exceptions(fp_environment& out_old_env)

Disables all floating point exceptions.

restore_fp_exceptions

void restore_fp_exceptions(const fp_environment& env)

Restores a previously set floating point exception state.

enable_flush_to_zero_fp_denormals

void enable_flush_to_zero_fp_denormals(fp_environment& out_old_env)

Enables flushing floating point denormals to zero.

disable_flush_to_zero_fp_denormals

void disable_flush_to_zero_fp_denormals(fp_environment& out_old_env)

Disables flushing floating point denormals to zero.

restore_flush_to_zero_fp_denormals

void restore_flush_to_zero_fp_denormals(const fp_environment& env)

Restores a previously set floating point flush-to-zero state.

scope_enable_fp_exceptions

class scope_enable_fp_exceptions

Enables floating point exceptions in the parent scope for invalid operations, division by zero, and overflow.

scope_disable_fp_exceptions

class scope_disable_fp_exceptions

Disables all floating point exceptions in the parent scope.

scope_enable_flush_to_zero_fp_denormals

class scope_enable_flush_to_zero_fp_denormals

Enables flushing floating point denormals to zero.

scope_disable_flush_to_zero_fp_denormals

class scope_disable_flush_to_zero_fp_denormals

Disables flushing floating point denormals to zero.