Changeset 309 for branches/2.19_branch/Library/ACLLibraryTestForm.pas
- Timestamp:
- Jul 28, 2008, 8:26:58 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.19_branch/Library/ACLLibraryTestForm.pas
r153 r309 21 21 FindButton: TButton; 22 22 Button1: TButton; 23 Button2: TButton;24 23 Button3: TButton; 25 24 Procedure FindButtonOnClick (Sender: TObject); 26 25 Procedure Button4OnClick (Sender: TObject); 27 26 Procedure Button3OnClick (Sender: TObject); 28 Procedure Button2OnClick (Sender: TObject);29 27 Procedure ACLLibraryTestFormOnCreate (Sender: TObject); 30 28 Procedure ACLLibraryTestFormOnDestroy (Sender: TObject); … … 70 68 End; 71 69 72 const73 test: string = 'This is the string I want to test the CRC with. Ha ha haa';74 test2: string = 'HERES ANOTHER #&*#^*& STRING';75 test3: string = #234#221#014;76 77 Procedure TACLLibraryTestForm.Button2OnClick (Sender: TObject);78 var79 crc: longword;80 Begin81 crc := GetCRC32( Addr( test ), Length( test ) + 1 );82 Memo1.Lines.Add( 'Asm Crc = ' + IntToStr( crc ) );83 crc := Pascal_GetCRC32( Addr( test ), Length( test ) + 1 );84 Memo1.Lines.Add( 'Pascal Crc = ' + IntToStr( crc ) );85 86 crc := GetCRC32( Addr( test2 ), Length( test2 ) + 1 );87 Memo1.Lines.Add( 'Asm Crc = ' + IntToStr( crc ) );88 crc := Pascal_GetCRC32( Addr( test2 ), Length( test2 ) + 1 );89 Memo1.Lines.Add( 'Pascal Crc = ' + IntToStr( crc ) );90 91 crc := GetCRC32( Addr( test3 ), Length( test3 ) + 1 );92 Memo1.Lines.Add( 'Asm Crc = ' + IntToStr( crc ) );93 crc := Pascal_GetCRC32( Addr( test3 ), Length( test3 ) + 1 );94 Memo1.Lines.Add( 'Pascal Crc = ' + IntToStr( crc ) );95 96 End;97 70 98 71 type
Note:
See TracChangeset
for help on using the changeset viewer.