C
csledge
Hi,
I am trying to compute a 64 bit result from 2 32 bit
registers, How do I get the carry into the higher word ?
Also is %lld correct ?
#include<stdio.h>
long long int64( long x, int y);
main()
{
printf("%lld \n",int64(0xffffffff,1));
}
long long int64( long x, int y)
{
return x + y;
}
Ans should be 0x100000000.
Thanks
Sledge.
I am trying to compute a 64 bit result from 2 32 bit
registers, How do I get the carry into the higher word ?
Also is %lld correct ?
#include<stdio.h>
long long int64( long x, int y);
main()
{
printf("%lld \n",int64(0xffffffff,1));
}
long long int64( long x, int y)
{
return x + y;
}
Ans should be 0x100000000.
Thanks
Sledge.