Changeset 402 for trunk/Library/ACLLibraryTestForm.pas
- Timestamp:
- May 22, 2016, 2:08:43 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Library/ACLLibraryTestForm.pas
r392 r402 7 7 StdCtrls, 8 8 ACLFileIOUtility, 9 ACLFileUtility,10 ACLFindFunctions,11 ACLProfile,12 ACLStringUtility,13 9 ACLUtility, 14 10 PCharList, … … 30 26 FindButton: TButton; 31 27 Button1: TButton; 28 Button2: TButton; 32 29 Button3: TButton; 33 30 Procedure FindButtonOnClick (Sender: TObject); 34 31 Procedure Button4OnClick (Sender: TObject); 35 32 Procedure Button3OnClick (Sender: TObject); 33 Procedure Button2OnClick (Sender: TObject); 36 34 Procedure ACLLibraryTestFormOnCreate (Sender: TObject); 37 35 Procedure ACLLibraryTestFormOnDestroy (Sender: TObject); … … 51 49 uses 52 50 SysUtils, 53 ACLString, AStringUtilityUnit,51 ACLString, 54 52 RunProgramUnit; 55 53 … … 77 75 End; 78 76 77 const 78 test: string = 'This is the string I want to test the CRC with. Ha ha haa'; 79 test2: string = 'HERES ANOTHER #&*#^*& STRING'; 80 test3: string = #234#221#014; 81 82 Procedure TACLLibraryTestForm.Button2OnClick (Sender: TObject); 83 var 84 crc: longword; 85 Begin 86 crc := GetCRC32( Addr( test ), Length( test ) + 1 ); 87 Memo1.Lines.Add( 'Asm Crc = ' + IntToStr( crc ) ); 88 crc := Pascal_GetCRC32( Addr( test ), Length( test ) + 1 ); 89 Memo1.Lines.Add( 'Pascal Crc = ' + IntToStr( crc ) ); 90 91 crc := GetCRC32( Addr( test2 ), Length( test2 ) + 1 ); 92 Memo1.Lines.Add( 'Asm Crc = ' + IntToStr( crc ) ); 93 crc := Pascal_GetCRC32( Addr( test2 ), Length( test2 ) + 1 ); 94 Memo1.Lines.Add( 'Pascal Crc = ' + IntToStr( crc ) ); 95 96 crc := GetCRC32( Addr( test3 ), Length( test3 ) + 1 ); 97 Memo1.Lines.Add( 'Asm Crc = ' + IntToStr( crc ) ); 98 crc := Pascal_GetCRC32( Addr( test3 ), Length( test3 ) + 1 ); 99 Memo1.Lines.Add( 'Pascal Crc = ' + IntToStr( crc ) ); 100 101 End; 79 102 80 103 type
Note:
See TracChangeset
for help on using the changeset viewer.