#ifndef LLVM_LIBC_UTILS_TESTUTILS_ROUNDINGMODEUTILS_H
#define LLVM_LIBC_UTILS_TESTUTILS_ROUNDINGMODEUTILS_H
#include <stdint.h>
namespace __llvm_libc {
namespace testutils {
enum class RoundingMode : uint8_t { Upward, Downward, TowardZero, Nearest };
struct ForceRoundingMode {
ForceRoundingMode(RoundingMode);
~ForceRoundingMode();
int old_rounding_mode;
int rounding_mode;
};
template <RoundingMode R> struct ForceRoundingModeTest : ForceRoundingMode {
ForceRoundingModeTest() : ForceRoundingMode(R) {}
};
}
}
#endif