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

Function fegetexceptflag

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

Save exception flags. 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::fegetexceptflag](https://en.cppreference.com/w/cpp/numeric/fenv/feexceptflag). \param flagp adress to store flag state at \param excepts OR of flags to save \retva

Source from the content-addressed store, hash-verified

4546 /// \param excepts OR of flags to save
4547 /// \retval 0 for success
4548 inline int fegetexceptflag(int *flagp, int excepts) { *flagp = detail::errflags() & excepts; return 0; }
4549
4550 /// Restore exception flags.
4551 /// This only copies the specified exception state (including unset flags) without incurring any additional exception handling.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected