... irrelevant ... What is the compatible function for sizeinbase_gmp in BigInt?Do you know what sizeinbase_gmp does? Once you can answer that you can answer what the compatible function is.
http://search.cpan.org/src/CHIPT/Math-GMP-2.0/GMP.xs
int sizeinbase_gmp(n, b) mpz_t * n int b CODE: RETVAL = mpz_sizeinbase(*n, b);
http://docs.freebsd.org/info/gmp/gmp.info.Miscellaneous_Integer_Functions.htmlHere's my guess- Function: size_t mpz_sizeinbase (mpz_t OP, int BASE) Return the size of OP measured in number of digits in base BASE. The base may vary from 2 to 36. The returned value will be exact or 1 too big. If BASE is a power of 2, the returned value will always be exact....
But like runrig says, this is a bad road you're going down (especially stumbling about like this). I don't know why you switched to cygwin all of a sudden, especially since you can get Math::GMP for activeperl flavored perl from here.sub Math::BigInt::sizeinbase_gmp { my $bigint = shift; # ? my $base = shift; require Math::BaseCnv; return Math::BaseCnv::cnv( length($bigint)-1, 10, $base (; }
In reply to Re: Replcing Math::GMP with Math::BigInt
by PodMaster
in thread Replcing Math::GMP with Math::BigInt
by Nalina
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |