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

#include <diy-fp.h>

Collaboration diagram for v8::base::DiyFp:

Public Member Functions

constexpr DiyFp ()
 
constexpr DiyFp (uint64_t f, int e)
 
void Subtract (const DiyFp &other)
 
V8_BASE_EXPORT void Multiply (const DiyFp &other)
 
void Normalize ()
 
constexpr uint64_t f () const
 
constexpr int e () const
 
constexpr void set_f (uint64_t new_value)
 
constexpr void set_e (int new_value)
 

Static Public Member Functions

static DiyFp Minus (const DiyFp &a, const DiyFp &b)
 
static DiyFp Times (const DiyFp &a, const DiyFp &b)
 
static DiyFp Normalize (const DiyFp &a)
 

Static Public Attributes

static const int kSignificandSize = 64
 

Private Attributes

uint64_t f_
 
int e_
 

Static Private Attributes

static const uint64_t kUint64MSB = static_cast<uint64_t>(1) << 63
 

Detailed Description

Definition at line 20 of file diy-fp.h.

Constructor & Destructor Documentation

◆ DiyFp() [1/2]

v8::base::DiyFp::DiyFp ( )
inlineconstexpr

Definition at line 24 of file diy-fp.h.

◆ DiyFp() [2/2]

v8::base::DiyFp::DiyFp ( uint64_t f,
int e )
inlineconstexpr

Definition at line 25 of file diy-fp.h.

Member Function Documentation

◆ e()

int v8::base::DiyFp::e ( ) const
inlineconstexpr

Definition at line 92 of file diy-fp.h.

Here is the caller graph for this function:

◆ f()

uint64_t v8::base::DiyFp::f ( ) const
inlineconstexpr

Definition at line 91 of file diy-fp.h.

Here is the caller graph for this function:

◆ Minus()

static DiyFp v8::base::DiyFp::Minus ( const DiyFp & a,
const DiyFp & b )
inlinestatic

Definition at line 40 of file diy-fp.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Multiply()

void v8::base::DiyFp::Multiply ( const DiyFp & other)

Definition at line 12 of file diy-fp.cc.

Here is the caller graph for this function:

◆ Normalize() [1/2]

void v8::base::DiyFp::Normalize ( )
inline

Definition at line 65 of file diy-fp.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Normalize() [2/2]

static DiyFp v8::base::DiyFp::Normalize ( const DiyFp & a)
inlinestatic

Definition at line 85 of file diy-fp.h.

Here is the call graph for this function:

◆ set_e()

void v8::base::DiyFp::set_e ( int new_value)
inlineconstexpr

Definition at line 95 of file diy-fp.h.

Here is the caller graph for this function:

◆ set_f()

void v8::base::DiyFp::set_f ( uint64_t new_value)
inlineconstexpr

Definition at line 94 of file diy-fp.h.

Here is the caller graph for this function:

◆ Subtract()

void v8::base::DiyFp::Subtract ( const DiyFp & other)
inline

Definition at line 31 of file diy-fp.h.

Here is the caller graph for this function:

◆ Times()

static DiyFp v8::base::DiyFp::Times ( const DiyFp & a,
const DiyFp & b )
inlinestatic

Definition at line 50 of file diy-fp.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ e_

int v8::base::DiyFp::e_
private

Definition at line 101 of file diy-fp.h.

◆ f_

uint64_t v8::base::DiyFp::f_
private

Definition at line 100 of file diy-fp.h.

◆ kSignificandSize

const int v8::base::DiyFp::kSignificandSize = 64
static

Definition at line 22 of file diy-fp.h.

◆ kUint64MSB

const uint64_t v8::base::DiyFp::kUint64MSB = static_cast<uint64_t>(1) << 63
staticprivate

Definition at line 98 of file diy-fp.h.


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