How to handle 64 bit arithmetic operation at 32 bit compiled perl interpreter?H
Hi,
Here is the issue. From the program snippet I have Base: 0x1800000000, Size: 0x3FFE7FFFFFFFF which are of 40 and 56 bits. SO I used use bignum to do the math but summing them up I always failed having correct result.
Code:
perl interpreter info,
perl, v5.8.8 built for i386-linux-thread-multi
Program snippet,
Code:
use bignum qw/hex/;
$x ="SAD_MISS_REGION:Base:Size
SAD_MISS_REGION:0x100000000:0x100000000
SAD_MISS_REGION:0x400000000:0x400000000
SAD_MISS_REGION:0x1800000000:0x3FFE7FFFFFFFF";
while ( $x =~ /SAD_MISS_REGION:(.+):(.+)/g ) {
$p = $1; $q = $2;
$phex = hex($1); $qhex = hex($2);
}
print "\n\n\n\nBase: $p, Size: $q \n";
print "\n\n\n\nBaseinDecimal: $phex, SizeinDesimal: $qhex \n";
$z = $phex + $qhex;
print "Z has summed up value: $z\n";
$zhex = unpack "H*", $z;
#$zhex = uc(sprintf("%x\n", $z));
print "Hexadecimal number of Z: ", $zhex, "\n";
output:
Base: 0x1800000000, Size: 0x3FFE7FFFFFFFF
BaseinDecimal: 103079215104, SizeinDesimal: 1125796827627519
Z has summed up value: 1125899906842623
Hexadecimal number of Z: 31313235383939393036383432363233
Hello everyone.
I bought a dell laptop (XPS M1330) online which came without a hard drive. There is a Windows Vista Ultimate OEMAct sticker with product key at the bottom case. I checked dell website (here) for this model and it says this model supports both 32 and 64-bit version of Windows... (4 Replies)
Hi all,
I'm looking to cover a corner case for an upcoming test cycle. Is there a way to boot a RedHat Advanced Server 4 (update 3) installed on a Power PC machine to use a 32 bit kernel? This would be similar to what is done here -> https://www.unix.com/aix/26204-aix-platform.html
I've done... (0 Replies)
Hello, every one,
I tried to install redhat linux enterprise server version 4 (ES4) on the my system with the
following configuration
Pentium core 2 duo 2.66 E 6750
Intel DG33FB motherboard
160Gb Segate hard disk (SATA)
1024 mb (1GB) DDR2 TRAN RAM
Lg DVD/Cd WR
BUT AM GETTING... (0 Replies)