Cosmos/source2/Users/Kudzu/Breakpoints/Int64Test.cs
kudzu_cp 6c36b8c781
2012-06-14 04:55:41 +00:00

31 lines
673 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Playground.Kudzu.BreakpointsKernel {
public class Int64Test : Test {
public override void Run() {
UInt64 x = 0xFFFFFFFFFFFFFFFF;
x = x - 1;
Chk(x == 0xFFFFFFFFFFFFFFFE);
x = x + 1;
Chk(x == 0xFFFFFFFFFFFFFFFF);
x = 0x5555555555555555;
x = x * 2;
Chk(x == 0xAAAAAAAAAAAAAAAA);
x = 0xAAAAAAAAAAAAAAAA;
x = x / 2; // This line dies with CPU exception 0x00
Chk(x == 0x5555555555555555);
// move to uint32 and back
// add with uint32 etc
}
}
}