On Mon, 21 Jun 2004 02:37:42 -0700
"Anthony Nemmer" <[EMAIL PROTECTED]> wrote:
> And then by doing
>
> use integer;
>
> you get 64 bit integer math on a 32 bit microprocessor? That IS
> interesting.
try this:
$dummy = 2048*1024*1024;
printf("%llu $dummy\n",$dummy);
$dummy *= 2;
printf("%llu $dummy\n",$dummy);
$dummy *= 2;
printf("%llu $dummy\n",$dummy);
with active perl build 804 for win32 I obtain:
2147483648 2147483648
4294967295 4294967296
4294967295 8589934592
and that version is not compiled with use64bitint set.
the only thing that doesn't work seems to be %lld in printf.
bye
--
Massimiliano Cialdi
[EMAIL PROTECTED]
[EMAIL PROTECTED]
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs