#ifndef LLVM_LIBC_TEST_UNITTEST_ROUNDINGMODEUTILS_H
#define LLVM_LIBC_TEST_UNITTEST_ROUNDINGMODEUTILS_H
#include "src/__support/macros/config.h"
#include <stdint.h>
namespace LIBC_NAMESPACE_DECL {
namespace fputil {
namespace testing {
enum class RoundingMode : uint8_t { Upward, Downward, TowardZero, Nearest };
struct ForceRoundingMode {
ForceRoundingMode(RoundingMode);
~ForceRoundingMode();
int old_rounding_mode;
int rounding_mode;
bool success;
};
template <RoundingMode R> struct ForceRoundingModeTest : ForceRoundingMode {
ForceRoundingModeTest() : ForceRoundingMode(R) {}
};
}
}
}
#endif