chromium/v8/src/base/numbers/bignum.cc

// Copyright 2011 the V8 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.

#include "src/base/numbers/bignum.h"

#include "src/base/strings.h"

namespace v8 {
namespace base {

Bignum::Bignum()
    :{}

template <typename S>
static int BitSize(S value) {}

// Guaranteed to lie in one Bigit.
void Bignum::AssignUInt16(uint16_t value) {}

void Bignum::AssignUInt64(uint64_t value) {}

void Bignum::AssignBignum(const Bignum& other) {}

static uint64_t ReadUInt64(Vector<const char> buffer, int from,
                           int digits_to_read) {}

void Bignum::AssignDecimalString(Vector<const char> value) {}

static int HexCharValue(char c) {}

void Bignum::AssignHexString(Vector<const char> value) {}

void Bignum::AddUInt64(uint64_t operand) {}

void Bignum::AddBignum(const Bignum& other) {}

void Bignum::SubtractBignum(const Bignum& other) {}

void Bignum::ShiftLeft(int shift_amount) {}

void Bignum::MultiplyByUInt32(uint32_t factor) {}

void Bignum::MultiplyByUInt64(uint64_t factor) {}

void Bignum::MultiplyByPowerOfTen(int exponent) {}

void Bignum::Square() {}

void Bignum::AssignPowerUInt16(uint16_t base, int power_exponent) {}

// Precondition: this/other < 16bit.
uint16_t Bignum::DivideModuloIntBignum(const Bignum& other) {}

template <typename S>
static int SizeInHexChars(S number) {}

bool Bignum::ToHexString(char* buffer, int buffer_size) const {}

Bignum::Chunk Bignum::BigitAt(int index) const {}

int Bignum::Compare(const Bignum& a, const Bignum& b) {}

int Bignum::PlusCompare(const Bignum& a, const Bignum& b, const Bignum& c) {}

void Bignum::Clamp() {}

bool Bignum::IsClamped() const {}

void Bignum::Zero() {}

void Bignum::Align(const Bignum& other) {}

void Bignum::BigitsShiftLeft(int shift_amount) {}

void Bignum::SubtractTimes(const Bignum& other, int factor) {}

}  // namespace base
}  // namespace v8