2010-06-17 Geoff Norton <gnorton@novell.com>
[mono.git] / mono / tests / largeexp.cs
blob050eaff44883e8e3f7dd89525573f61a572b5db3
1 using System;
3 class Test {
5 private static int[] crc_lookup=new int[256];
7 public byte[] header_base = new byte [10];
8 public int header = 0;
10 internal int checksum() {
11 uint crc_reg=0;
12 int i = 5;
14 crc_reg = (crc_reg<<8)^(uint)(crc_lookup[((crc_reg >> 24)&0xff)^(header_base[header+i]&0xff)]);
16 return 0;
21 public static int Main () {
22 Test t1 = new Test ();
24 return t1.checksum();