llvm/llvm/lib/Support/APFixedPoint.cpp

//===- APFixedPoint.cpp - Fixed point constant handling ---------*- 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
//
//===----------------------------------------------------------------------===//
//
/// \file
/// Defines the implementation for the fixed point number interface.
//
//===----------------------------------------------------------------------===//

#include "llvm/ADT/APFixedPoint.h"
#include "llvm/ADT/APFloat.h"

#include <cmath>

namespace llvm {

void FixedPointSemantics::print(llvm::raw_ostream &OS) const {}

APFixedPoint APFixedPoint::convert(const FixedPointSemantics &DstSema,
                                   bool *Overflow) const {}

int APFixedPoint::compare(const APFixedPoint &Other) const {}

APFixedPoint APFixedPoint::getMax(const FixedPointSemantics &Sema) {}

APFixedPoint APFixedPoint::getMin(const FixedPointSemantics &Sema) {}

APFixedPoint APFixedPoint::getEpsilon(const FixedPointSemantics &Sema) {}

bool FixedPointSemantics::fitsInFloatSemantics(
    const fltSemantics &FloatSema) const {}

FixedPointSemantics FixedPointSemantics::getCommonSemantics(
    const FixedPointSemantics &Other) const {}

APFixedPoint APFixedPoint::add(const APFixedPoint &Other,
                               bool *Overflow) const {}

APFixedPoint APFixedPoint::sub(const APFixedPoint &Other,
                               bool *Overflow) const {}

APFixedPoint APFixedPoint::mul(const APFixedPoint &Other,
                               bool *Overflow) const {}

APFixedPoint APFixedPoint::div(const APFixedPoint &Other,
                               bool *Overflow) const {}

APFixedPoint APFixedPoint::shl(unsigned Amt, bool *Overflow) const {}

void APFixedPoint::toString(SmallVectorImpl<char> &Str) const {}

void APFixedPoint::print(raw_ostream &OS) const {}
LLVM_DUMP_METHOD void APFixedPoint::dump() const {}

APFixedPoint APFixedPoint::negate(bool *Overflow) const {}

APSInt APFixedPoint::convertToInt(unsigned DstWidth, bool DstSign,
                                  bool *Overflow) const {}

const fltSemantics *APFixedPoint::promoteFloatSemantics(const fltSemantics *S) {}

APFloat APFixedPoint::convertToFloat(const fltSemantics &FloatSema) const {}

APFixedPoint APFixedPoint::getFromIntValue(const APSInt &Value,
                                           const FixedPointSemantics &DstFXSema,
                                           bool *Overflow) {}

APFixedPoint
APFixedPoint::getFromFloatValue(const APFloat &Value,
                                const FixedPointSemantics &DstFXSema,
                                bool *Overflow) {}

} // namespace llvm