chromium/v8/src/bigint/bitwise.cc

// Copyright 2021 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/bigint/bigint-internal.h"
#include "src/bigint/digit-arithmetic.h"
#include "src/bigint/util.h"
#include "src/bigint/vector-arithmetic.h"

namespace v8 {
namespace bigint {

void BitwiseAnd_PosPos(RWDigits Z, Digits X, Digits Y) {}

void BitwiseAnd_NegNeg(RWDigits Z, Digits X, Digits Y) {}

void BitwiseAnd_PosNeg(RWDigits Z, Digits X, Digits Y) {}

void BitwiseOr_PosPos(RWDigits Z, Digits X, Digits Y) {}

void BitwiseOr_NegNeg(RWDigits Z, Digits X, Digits Y) {}

void BitwiseOr_PosNeg(RWDigits Z, Digits X, Digits Y) {}

void BitwiseXor_PosPos(RWDigits Z, Digits X, Digits Y) {}

void BitwiseXor_NegNeg(RWDigits Z, Digits X, Digits Y) {}

void BitwiseXor_PosNeg(RWDigits Z, Digits X, Digits Y) {}

void LeftShift(RWDigits Z, Digits X, digit_t shift) {}

int RightShift_ResultLength(Digits X, bool x_sign, digit_t shift,
                            RightShiftState* state) {}

void RightShift(RWDigits Z, Digits X, digit_t shift,
                const RightShiftState& state) {}

namespace {

// Z := (least significant n bits of X).
void TruncateToNBits(RWDigits Z, Digits X, int n) {}

// Z := 2**n - (least significant n bits of X).
void TruncateAndSubFromPowerOfTwo(RWDigits Z, Digits X, int n) {}

}  // namespace

// Returns -1 when the operation would return X unchanged.
int AsIntNResultLength(Digits X, bool x_negative, int n) {}

bool AsIntN(RWDigits Z, Digits X, bool x_negative, int n) {}

// Returns -1 when the operation would return X unchanged.
int AsUintN_Pos_ResultLength(Digits X, int n) {}

void AsUintN_Pos(RWDigits Z, Digits X, int n) {}

void AsUintN_Neg(RWDigits Z, Digits X, int n) {}

}  // namespace bigint
}  // namespace v8