good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Malloc with Inline::Cby monkfan (Curate) |
on Mar 26, 2005 at 17:50 UTC ( [id://442521]=perlquestion: print w/replies, xml ) | Need Help?? |
monkfan has asked for the wisdom of the Perl Monks concerning the following question:
Hi, Here is the code that tries to compute factorial based on Numerical Recipes using Inline::C. My question is, how can I improve my code below so that it can handle large number? Does Inline::C support malloc for typdef? I've tried "Math::Pari qw(:int)" but of no avail. So I thought malloc should be the better way to go.
Regards, Edward Update: I've also tried "use Math::GMP qw(:constant);" also can't handle big N.
Back to
Seekers of Perl Wisdom
|
|