v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DiyFp Class Reference

#include <diy-fp.h>

Public Member Functions

 DiyFp ()
 
 DiyFp (uint64_t f, int e)
 
void Subtract (const DiyFp &other)
 
void Multiply (const DiyFp &other)
 
void Normalize ()
 
uint64_t f () const
 
int e () const
 
void set_f (uint64_t new_value)
 
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
 

Detailed Description

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

Constructor & Destructor Documentation

DiyFp ( )
inline

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

DiyFp ( uint64_t  f,
int  e 
)
inline

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

Member Function Documentation

int e ( ) const
inline

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

Referenced by DiyFp::Normalize(), Double::NormalizedBoundaries(), and TEST().

uint64_t f ( ) const
inline

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

Referenced by DiyFp::Normalize(), Double::NormalizedBoundaries(), and TEST().

static DiyFp Minus ( const DiyFp a,
const DiyFp b 
)
inlinestatic

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

References DiyFp::Subtract().

Referenced by TEST().

void Multiply ( const DiyFp other)

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

References v8::internal::U.

Referenced by TEST(), and DiyFp::Times().

void Normalize ( )
inline

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

References ASSERT, DiyFp::e(), and DiyFp::f().

Referenced by DiyFp::Normalize(), and Double::NormalizedBoundaries().

static DiyFp Normalize ( const DiyFp a)
inlinestatic

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

References DiyFp::Normalize().

void set_e ( int  new_value)
inline

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

Referenced by Double::NormalizedBoundaries().

void set_f ( uint64_t  new_value)
inline

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

Referenced by Double::NormalizedBoundaries().

void Subtract ( const DiyFp other)
inline

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

References ASSERT.

Referenced by DiyFp::Minus(), and TEST().

static DiyFp Times ( const DiyFp a,
const DiyFp b 
)
inlinestatic

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

References DiyFp::Multiply().

Referenced by TEST().

Field Documentation

const int kSignificandSize = 64
static

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