man.bsd.lv manual page server

Manual Page Search Parameters

FEENABLEEXCEPT(3) Library Functions Manual FEENABLEEXCEPT(3)

feenableexcept, fedisableexcept, fegetexceptcontrol floating-point exception masks

#include <fenv.h>

int
feenableexcept(int excepts);

int
fedisableexcept(int excepts);

int
fegetexcept(void);

These functions provide control of the floating-point exception masks. The excepts input argument is a bitmask specifying an exception type and containing any of the values listed in feclearexcept(3).

The () function unmasks the floating-point exceptions represented by excepts. The future floating-point operations that produce excepts will trap, and a SIGFPE will be delivered to the process.

The () function masks the floating-point exceptions represented by excepts. All exceptions are masked by default.

The () function returns the current exception mask.

The feenableexcept(), and fedisableexcept() functions return the previous exception mask. The fegetexcept() function returns the current exception mask.

sigaction(2), feclearexcept(3), fegetenv(3), fegetround(3)

The feenableexcept(), fedisableexcept(), and fegetexcept() functions are OpenBSD extensions.

These functions first appeared in OpenBSD 5.0.

June 5, 2013 DragonFly-5.6.1