F
Francois St-Arnaud
Hello All,
I have the following property in a C# class in a .NET 2003 project:
public const ulong MASK_1 = 0x8000000000000000;
I find the following observations unsettling (from my Command Window -
Immediate):
MASK_1
0x8000000000000000
MASK_1 >> 1
0x4000000000000000
MASK_1 >> 2
0x2000000000000000
MASK_1 >> 3
0x1000000000000000
MASK_1 >> 4
0x800000000000000
MASK_1 >> 5
0x400000000000000
What? A wraparound on the 4 MSBs? I'm I missing something?
Francois.
I have the following property in a C# class in a .NET 2003 project:
public const ulong MASK_1 = 0x8000000000000000;
I find the following observations unsettling (from my Command Window -
Immediate):
MASK_1
0x8000000000000000
MASK_1 >> 1
0x4000000000000000
MASK_1 >> 2
0x2000000000000000
MASK_1 >> 3
0x1000000000000000
MASK_1 >> 4
0x800000000000000
MASK_1 >> 5
0x400000000000000
What? A wraparound on the 4 MSBs? I'm I missing something?
Francois.