llvm/libc/src/__support/sign.h

//===-- A simple sign type --------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_LIBC_SRC___SUPPORT_SIGN_H
#define LLVM_LIBC_SRC___SUPPORT_SIGN_H

#include "src/__support/macros/attributes.h" // LIBC_INLINE, LIBC_INLINE_VAR

// A type to interact with signed arithmetic types.
struct Sign {};

LIBC_INLINE_VAR constexpr Sign Sign::NEG =;
LIBC_INLINE_VAR constexpr Sign Sign::POS =;

#endif // LLVM_LIBC_SRC___SUPPORT_SIGN_H