Re: shifts on 64bit ints
flat view
From: David Edelsohn <hidden>
Date: 2000-08-03 23:02:31
First, I would suggest that you use a printf format like "%08x" for better legibility. Second, I tried your example with gcc-2.95.2 on PowerPC AIX gcc-2.95.2 on PowrePC Linux, and a recent development snapshot of GCC with various optimization levels (you did not specify what options you used to compile the testcase) and I consistently saw the following output: Mask 29 is 0x0000000020000000 - 0xffffffffdfffffff Mask 30 is 0x0000000040000000 - 0xffffffffbfffffff Mask 31 is 0x0000000080000000 - 0xffffffff7fffffff Mask 32 is 0x0000000100000000 - 0xfffffffeffffffff Mask 33 is 0x0000000200000000 - 0xfffffffdffffffff Mask 34 is 0x0000000400000000 - 0xfffffffbffffffff You appear to have a problem, but it is local to your system (could be toolchain or C library as well). David ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/