Skip to content

File mprec.c

FileList > base > mprec.c

Go to the source code of this file

  • #include <assert.h>
  • #include <stdlib.h>
  • #include <string.h>
  • #include "mprec.h"
  • #include "memory_wrapper.hpp"

Public Types

Type Name
typedef long __Long
typedef unsigned long __ULong

Public Attributes

Type Name
const double _Jv__mprec_bigtens = { 1[**e16**](broker__monitor_8c.md#function-timeout), 1[**e32**](broker__monitor_8c.md#function-timeout), 1[**e64**](broker__monitor_8c.md#function-timeout), 1[**e128**](broker__monitor_8c.md#function-timeout), 1[**e256**](broker__monitor_8c.md#function-timeout) }
const double _Jv__mprec_tens = /* multi line expression */
const double _Jv__mprec_tinytens = { 1[**e**](broker__monitor_8c.md#function-timeout)-16, 1[**e**](broker__monitor_8c.md#function-timeout)-32, 1[**e**](broker__monitor_8c.md#function-timeout)-64, 1[**e**](broker__monitor_8c.md#function-timeout)-128, 1[**e**](broker__monitor_8c.md#function-timeout)-256 }

Public Functions

Type Name
_Jv_Bigint * _Jv_Balloc (struct _Jv_reent * ptr, int k)
void _Jv_Bfree (struct _Jv_reent * ptr, _Jv_Bigint * v)
int _Jv__mcmp (_Jv_Bigint * a, _Jv_Bigint * b)
_Jv_Bigint * _Jv__mdiff (struct _Jv_reent * ptr, _Jv_Bigint * a, _Jv_Bigint * b)
double _Jv_b2d (_Jv_Bigint * a, int * e)
_Jv_Bigint * _Jv_d2b (struct _Jv_reent * ptr, double _d, int * e, int * bits)
int _Jv_hi0bits (__ULong x)
_Jv_Bigint * _Jv_i2b (struct _Jv_reent * ptr, int i)
int _Jv_lo0bits (__ULong * y)
_Jv_Bigint * _Jv_lshift (struct _Jv_reent * ptr, _Jv_Bigint * b, int k)
_Jv_Bigint * _Jv_mult (struct _Jv_reent * ptr, _Jv_Bigint * a, _Jv_Bigint * b)
_Jv_Bigint * _Jv_multadd (struct _Jv_reent * ptr, _Jv_Bigint * b, int m, int a)
_Jv_Bigint * _Jv_pow5mult (struct _Jv_reent * ptr, _Jv_Bigint * b, int k)
double _Jv_ratio (_Jv_Bigint * a, _Jv_Bigint * b)
_Jv_Bigint * _Jv_s2b (struct _Jv_reent * ptr, const char * s, int nd0, int nd, __ULong y9)
double _Jv_ulp (double _x)
double _mprec_log10 (int dig)

Public Static Functions

Type Name
void * mprec_calloc (void * ignore, size_t x1, size_t x2)

Macros

Type Name
define _Bigint [**\_Jv\_Bigint**](struct__Jv__Bigint.md)
define _REENT_CHECK_MP (x)
define _REENT_MP_FREELIST (x) (([**x**](broker__monitor_8c.md#function-timeout))-&gt;\_freelist)
define _REENT_MP_P5S (x) (([**x**](broker__monitor_8c.md#function-timeout))-&gt;\_p5s)
define _reent [**\_Jv\_reent**](struct__Jv__reent.md)
define d0 [**word0**](mprec_8h.md#define-word0)(d)
define d0 [**word0**](mprec_8h.md#define-word0)(d)
define d1 [**word1**](mprec_8h.md#define-word1)(d)
define d1 [**word1**](mprec_8h.md#define-word1)(d)

Public Types Documentation

typedef __Long

typedef long __Long;

typedef __ULong

typedef unsigned long __ULong;

Public Attributes Documentation

variable _Jv__mprec_bigtens

const double _Jv__mprec_bigtens[];

variable _Jv__mprec_tens

const double _Jv__mprec_tens[];

variable _Jv__mprec_tinytens

const double _Jv__mprec_tinytens[];

Public Functions Documentation

function _Jv_Balloc

_Jv_Bigint * _Jv_Balloc (
    struct  _Jv_reent * ptr,
    int k
) 

function _Jv_Bfree

void _Jv_Bfree (
    struct  _Jv_reent * ptr,
    _Jv_Bigint * v
) 

function _Jv__mcmp

int _Jv__mcmp (
    _Jv_Bigint * a,
    _Jv_Bigint * b
) 

function _Jv__mdiff

_Jv_Bigint * _Jv__mdiff (
    struct  _Jv_reent * ptr,
    _Jv_Bigint * a,
    _Jv_Bigint * b
) 

function _Jv_b2d

double _Jv_b2d (
    _Jv_Bigint * a,
    int * e
) 

function _Jv_d2b

_Jv_Bigint * _Jv_d2b (
    struct  _Jv_reent * ptr,
    double _d,
    int * e,
    int * bits
) 

function _Jv_hi0bits

int _Jv_hi0bits (
    __ULong x
) 

function _Jv_i2b

_Jv_Bigint * _Jv_i2b (
    struct  _Jv_reent * ptr,
    int i
) 

function _Jv_lo0bits

int _Jv_lo0bits (
    __ULong * y
) 

function _Jv_lshift

_Jv_Bigint * _Jv_lshift (
    struct  _Jv_reent * ptr,
    _Jv_Bigint * b,
    int k
) 

function _Jv_mult

_Jv_Bigint * _Jv_mult (
    struct  _Jv_reent * ptr,
    _Jv_Bigint * a,
    _Jv_Bigint * b
) 

function _Jv_multadd

_Jv_Bigint * _Jv_multadd (
    struct  _Jv_reent * ptr,
    _Jv_Bigint * b,
    int m,
    int a
) 

function _Jv_pow5mult

_Jv_Bigint * _Jv_pow5mult (
    struct  _Jv_reent * ptr,
    _Jv_Bigint * b,
    int k
) 

function _Jv_ratio

double _Jv_ratio (
    _Jv_Bigint * a,
    _Jv_Bigint * b
) 

function _Jv_s2b

_Jv_Bigint * _Jv_s2b (
    struct  _Jv_reent * ptr,
    const  char * s,
    int nd0,
    int nd,
    __ULong y9
) 

function _Jv_ulp

double _Jv_ulp (
    double _x
) 

function _mprec_log10

double _mprec_log10 (
    int dig
) 

Public Static Functions Documentation

function mprec_calloc

static void * mprec_calloc (
    void * ignore,
    size_t x1,
    size_t x2
) 

Macro Definition Documentation

define _Bigint

#define _Bigint `_Jv_Bigint`

define _REENT_CHECK_MP

#define _REENT_CHECK_MP (
    x
) 

define _REENT_MP_FREELIST

#define _REENT_MP_FREELIST (
    x
) `(( x )->_freelist)`

define _REENT_MP_P5S

#define _REENT_MP_P5S (
    x
) `(( x )->_p5s)`

define _reent

#define _reent `_Jv_reent`

define d0

#define d0 `word0 (d)`

define d0

#define d0 `word0 (d)`

define d1

#define d1 `word1 (d)`

define d1

#define d1 `word1 (d)`


The documentation for this class was generated from the following file cubrid/src/base/mprec.c