chromium/third_party/angle/src/compiler/translator/ConstantUnion.cpp

//
// Copyright 2016 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// ConstantUnion: Constant folding helper class.

#include "compiler/translator/ConstantUnion.h"

#include "common/mathutil.h"
#include "compiler/translator/Diagnostics.h"
#include "compiler/translator/util.h"

namespace sh
{

namespace
{

float CheckedSum(float lhs, float rhs, TDiagnostics *diag, const TSourceLoc &line)
{}

float CheckedDiff(float lhs, float rhs, TDiagnostics *diag, const TSourceLoc &line)
{}

float CheckedMul(float lhs, float rhs, TDiagnostics *diag, const TSourceLoc &line)
{}

bool IsValidShiftOffset(const TConstantUnion &rhs)
{}

}  // anonymous namespace

TConstantUnion::TConstantUnion() :{}

TConstantUnion::TConstantUnion(int i) :{}

TConstantUnion::TConstantUnion(unsigned int u) :{}

TConstantUnion::TConstantUnion(float f) :{}

TConstantUnion::TConstantUnion(bool b) :{}

int TConstantUnion::getIConst() const
{}

unsigned int TConstantUnion::getUConst() const
{}

float TConstantUnion::getFConst() const
{}

bool TConstantUnion::getBConst() const
{}

bool TConstantUnion::isZero() const
{}

TYuvCscStandardEXT TConstantUnion::getYuvCscStandardEXTConst() const
{}

bool TConstantUnion::cast(TBasicType newType, const TConstantUnion &constant)
{}

bool TConstantUnion::operator==(const int i) const
{}

bool TConstantUnion::operator==(const unsigned int u) const
{}

bool TConstantUnion::operator==(const float f) const
{}

bool TConstantUnion::operator==(const bool b) const
{}

bool TConstantUnion::operator==(const TYuvCscStandardEXT s) const
{}

bool TConstantUnion::operator==(const TConstantUnion &constant) const
{}

bool TConstantUnion::operator!=(const int i) const
{}

bool TConstantUnion::operator!=(const unsigned int u) const
{}

bool TConstantUnion::operator!=(const float f) const
{}

bool TConstantUnion::operator!=(const bool b) const
{}

bool TConstantUnion::operator!=(const TYuvCscStandardEXT s) const
{}

bool TConstantUnion::operator!=(const TConstantUnion &constant) const
{}

bool TConstantUnion::operator>(const TConstantUnion &constant) const
{}

bool TConstantUnion::operator<(const TConstantUnion &constant) const
{}

// static
TConstantUnion TConstantUnion::add(const TConstantUnion &lhs,
                                   const TConstantUnion &rhs,
                                   TDiagnostics *diag,
                                   const TSourceLoc &line)
{}

// static
TConstantUnion TConstantUnion::sub(const TConstantUnion &lhs,
                                   const TConstantUnion &rhs,
                                   TDiagnostics *diag,
                                   const TSourceLoc &line)
{}

// static
TConstantUnion TConstantUnion::mul(const TConstantUnion &lhs,
                                   const TConstantUnion &rhs,
                                   TDiagnostics *diag,
                                   const TSourceLoc &line)
{}

TConstantUnion TConstantUnion::operator%(const TConstantUnion &constant) const
{}

// static
TConstantUnion TConstantUnion::rshift(const TConstantUnion &lhs,
                                      const TConstantUnion &rhs,
                                      TDiagnostics *diag,
                                      const TSourceLoc &line)
{}

// static
TConstantUnion TConstantUnion::lshift(const TConstantUnion &lhs,
                                      const TConstantUnion &rhs,
                                      TDiagnostics *diag,
                                      const TSourceLoc &line)
{}

TConstantUnion TConstantUnion::operator&(const TConstantUnion &constant) const
{}

TConstantUnion TConstantUnion::operator|(const TConstantUnion &constant) const
{}

TConstantUnion TConstantUnion::operator^(const TConstantUnion &constant) const
{}

TConstantUnion TConstantUnion::operator&&(const TConstantUnion &constant) const
{}

TConstantUnion TConstantUnion::operator||(const TConstantUnion &constant) const
{}

}  // namespace sh