L
L.G
I met one problem of shift a number with equal or more than 32 bits.
When running this :
uint32_t num = 0x45F5F;
int shift = 33;
uint32_t res = num << shift;
printf( "\\> exp: %08XH << %d = %08XH\n", num, shift, res );
It shows :
\> exp: 00045F5FH << 33 = 0008BEBEH
Is it personal ?
My environment :
WinXP SP2 + Cygwin 2.510.2.2
Regards.
-L.Guo
When running this :
uint32_t num = 0x45F5F;
int shift = 33;
uint32_t res = num << shift;
printf( "\\> exp: %08XH << %d = %08XH\n", num, shift, res );
It shows :
\> exp: 00045F5FH << 33 = 0008BEBEH
Is it personal ?
My environment :
WinXP SP2 + Cygwin 2.510.2.2
Regards.
-L.Guo