v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::bigint::ShiftedDigits Class Reference

#include <div-helpers.h>

Inheritance diagram for v8::bigint::ShiftedDigits:
Collaboration diagram for v8::bigint::ShiftedDigits:

Public Member Functions

 ShiftedDigits (Digits &original, int shift=-1, bool allow_inplace=false)
 
 ~ShiftedDigits ()=default
 
void Reset ()
 
int shift ()
 
- Public Member Functions inherited from v8::bigint::Digits
 Digits (const digit_t *mem, int len)
 
 Digits (digit_t *mem, int len)
 
 Digits (Digits src, int offset, int len)
 
 Digits ()
 
Digits operator+ (int i)
 
digit_t operator[] (int i)
 
digit_t msd ()
 
bool operator== (const Digits &other) const
 
void Normalize ()
 
void TrimOne ()
 
int len ()
 
const digit_tdigits () const
 

Private Attributes

int shift_
 
bool inplace_
 
std::unique_ptr< digit_t[]> storage_
 

Additional Inherited Members

- Protected Attributes inherited from v8::bigint::Digits
digit_tdigits_
 
int len_
 

Detailed Description

Definition at line 36 of file div-helpers.h.

Constructor & Destructor Documentation

◆ ShiftedDigits()

v8::bigint::ShiftedDigits::ShiftedDigits ( Digits & original,
int shift = -1,
bool allow_inplace = false )
inlineexplicit

Definition at line 38 of file div-helpers.h.

Here is the call graph for this function:

◆ ~ShiftedDigits()

v8::bigint::ShiftedDigits::~ShiftedDigits ( )
default

Member Function Documentation

◆ Reset()

void v8::bigint::ShiftedDigits::Reset ( )
inline

Definition at line 64 of file div-helpers.h.

Here is the call graph for this function:

◆ shift()

int v8::bigint::ShiftedDigits::shift ( )
inline

Definition at line 71 of file div-helpers.h.

Here is the caller graph for this function:

Member Data Documentation

◆ inplace_

bool v8::bigint::ShiftedDigits::inplace_
private

Definition at line 75 of file div-helpers.h.

◆ shift_

int v8::bigint::ShiftedDigits::shift_
private

Definition at line 74 of file div-helpers.h.

◆ storage_

std::unique_ptr<digit_t[]> v8::bigint::ShiftedDigits::storage_
private

Definition at line 76 of file div-helpers.h.


The documentation for this class was generated from the following file: