class ov::RoundingGuard

Overview

Set current round direction for scoped block. More…

#include <rounding_guard.hpp>

class RoundingGuard
{
public:
    // construction

    RoundingGuard(int mode);
};

Detailed Documentation

Set current round direction for scoped block.

Round direction can be one of:

  • FE_DOWNWARD

  • FE_TONEAREST

  • FE_TOWARDZERO

  • FE_UPWARD see std <cfenv> header for details.