#ifndef LLVM_LIBC_SRC___SUPPORT_INTEGER_OPERATIONS_H
#define LLVM_LIBC_SRC___SUPPORT_INTEGER_OPERATIONS_H
#include "src/__support/CPP/type_traits.h"
#include "src/__support/macros/attributes.h"
#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
template <typename T>
LIBC_INLINE static constexpr cpp::enable_if_t<cpp::is_integral_v<T>, T>
integer_abs(T n) {
return (n < 0) ? -n : n;
}
template <typename T>
LIBC_INLINE static constexpr cpp::enable_if_t<cpp::is_integral_v<T>, void>
integer_rem_quo(T x, T y, T ", T &rem) {
quot = x / y;
rem = x % y;
}
}
#endif