MCPcopy Create free account
hub / github.com/OpenNMT/CTranslate2 / fesetexceptflag

Function fesetexceptflag

include/half_float/half.hpp:4559–4559  ·  view source on GitHub ↗

Restore exception flags. This only copies the specified exception state (including unset flags) without incurring any additional exception handling. This function works even if [automatic exception flag handling](\ref HALF_ERRHANDLING_FLAGS) is disabled, but in that case manual flag management is the only way to raise flags. See also:** Documentation for [std::fesetexceptflag](https://en.cpprefer

Source from the content-addressed store, hash-verified

4557 /// \param excepts OR of flags to restore
4558 /// \retval 0 for success
4559 inline int fesetexceptflag(const int *flagp, int excepts) { detail::errflags() = (detail::errflags()|(*flagp&excepts)) & (*flagp|~excepts); return 0; }
4560
4561 /// Throw C++ exceptions based on set exception flags.
4562 /// This function manually throws a corresponding C++ exception if one of the specified flags is set,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected