Functions | |
| mirkl_error_t * | mir_bigintc_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_t * | mir_bigintc_instance_create_mpz (mirkl_object_t **obj, mpz_t val, mirkl_uint32_t flags, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool) |
| mirkl_error_t * | mir_bigintc_set_data_str (mirkl_object_t *obj, char *str) |
| mirkl_error_t * | mir_bigintc_set_data_mpz (mirkl_object_t *obj, mpz_t val) |
| int | mir_mpz_import_int64 (mpz_t big_v, mirkl_int64_t v) |
| int | mir_mpz_export_int64 (mpz_t big_v, mirkl_int64_t *v) |
Variables | |
| mirkl_object_t * | MirBigIntegerClass |
| mirkl_error_t * mir_bigintc_instance_create_mpz | ( | mirkl_object_t ** | obj, |
| mpz_t | val, | ||
| mirkl_uint32_t | flags, | ||
| mir_prsdata_t * | pp, | ||
| apr_pool_t * | pool, | ||
| apr_pool_t * | tmp_pool | ||
| ) |
Creation of BigInteger object.
| [out] | obj | Reference to the created object. |
| val | MPZ value for initialization. | |
| flags | Flags of the object. | |
| pp | Reference to the parser data structure. | |
| pool | The pool to use for allocations of object structures. Should be valid as long as the created object lives. | |
| tmp_pool | The pool for temporary allocations. Can be deleted after calling this function. |
| mirkl_error_t * mir_bigintc_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 BigInteger object.
| [out] | obj | Reference to the created object. |
| str | String with value for initialization. | |
| flags | Flags of the object. | |
| pp | Reference to the parser data structure. | |
| pool | The pool to use for allocations of object structures. Should be valid as long as the created object lives. | |
| tmp_pool | The pool for temporary allocations. Can be deleted after calling this function. |
| mirkl_error_t * mir_bigintc_set_data_mpz | ( | mirkl_object_t * | obj, |
| mpz_t | val | ||
| ) |
Sets the value from GMPs mpz_t type variable.
| obj | Reference to the object. |
| val | MPZ value to set. |
| mirkl_error_t * mir_bigintc_set_data_str | ( | mirkl_object_t * | obj, |
| char * | str | ||
| ) |
Setting value for BigInteger object.
| obj | Reference to the object. |
| str | String with value to set. |
| int mir_mpz_export_int64 | ( | mpz_t | big_v, |
| mirkl_int64_t * | v | ||
| ) |
Exports GMP's mpz_t into signed int64 number.
| [in] | big_v | Value to be exported. Should be initialized befor using this function. |
| [out] | v | Contains exported value. |
| int mir_mpz_import_int64 | ( | mpz_t | big_v, |
| mirkl_int64_t | v | ||
| ) |
Imports signed int64 number into GMP's mpz_t variable.
| [in,out] | big_v | Containts imported value on output. Should be initialized befor using this function. |
| [in] | v | Value to be imported. |
|
extern |
BigInteger Class Object