Mir 1.0
Mir application programming interface

Functions

mirkl_error_tmir_bigfloatc_instance_create_str (mirkl_object_t **obj, char *str, mirkl_uint32_t flags, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool)
 
mirkl_error_tmir_bigfloatc_instance_create_mpfr (mirkl_object_t **obj, mpfr_t val, mirkl_uint32_t flags, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool)
 
mirkl_error_tmir_bigfloatc_set_data_str (mirkl_object_t *obj, char *str)
 
mirkl_error_tmir_bigfloatc_set_data_mpfr (mirkl_object_t *obj, mpfr_t val)
 

Variables

mirkl_object_t * MirBigFloatClass
 

Detailed Description

Function Documentation

◆ mir_bigfloatc_instance_create_mpfr()

mirkl_error_t * mir_bigfloatc_instance_create_mpfr ( mirkl_object_t **  obj,
mpfr_t  val,
mirkl_uint32_t  flags,
mir_prsdata_t *  pp,
apr_pool_t *  pool,
apr_pool_t *  tmp_pool 
)

Creation of BigFloat object.

Parameters
[out]objReference to the created object.
valValue for initialization.
flagsFlags of the object.
ppReference to the parser data structure.
poolThe pool to use for allocations of object structures. Should be valid as long as the created object lives.
tmp_poolThe pool for temporary allocations. Can be deleted after calling this function.

◆ mir_bigfloatc_instance_create_str()

mirkl_error_t * mir_bigfloatc_instance_create_str ( mirkl_object_t **  obj,
char *  str,
mirkl_uint32_t  flags,
mir_prsdata_t *  pp,
apr_pool_t *  pool,
apr_pool_t *  tmp_pool 
)

Creation of BigFloat object.

Parameters
[out]objReference to the created object.
strString with value for initialization.
flagsFlags of the object.
ppReference to the parser data structure.
poolThe pool to use for allocations of object structures. Should be valid as long as the created object lives.
tmp_poolThe pool for temporary allocations. Can be deleted after calling this function.

◆ mir_bigfloatc_set_data_mpfr()

mirkl_error_t * mir_bigfloatc_set_data_mpfr ( mirkl_object_t *  obj,
mpfr_t  val 
)

Set value from MPFRs mpfr_t type variable.

Parameters
objReference to the object.
valValue to set.

◆ mir_bigfloatc_set_data_str()

mirkl_error_t * mir_bigfloatc_set_data_str ( mirkl_object_t *  obj,
char *  str 
)

Setting value for BigFloat object.

Parameters
objReference to the object.
strString with value to set.

Variable Documentation

◆ MirBigFloatClass

mirkl_object_t* MirBigFloatClass
extern

BigFloat Class Object