integer size
Ron Croonenberg
ron.croonenberg at gmail.com
Thu Sep 30 09:13:49 CEST 2010
sorry about the late reaction.
I checked that section, however it says "Return the size of 'op'
measured in number of digits in the given base"
However that is not what I want to know. I want to know if I use an
mpz_t integer what it's actual size (in bytes) in memory is, not the
number of digits it has in a certain base.
Ron
On 9/17/2010 3:18 AM, Torbjorn Granlund wrote:
> Ron Croonenberg<ron.croonenberg at gmail.com> writes:
>
> is there a way to find out how much space an integer uses? of course
> in c one can do something like sizeof(int) but when I use something
> like that with a gmp int I always end up getting 16. (even thought the
> integer is quite large.
>
> Please see the fine manual, chapter Integer Functions, section
> Miscellaneous Functions.
>
More information about the gmp-discuss
mailing list