Ignore:
Timestamp:
Jul 28, 2008, 8:26:58 PM (17 years ago)
Author:
RBRi
Message:

more cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.19_branch/Library/ACLLibraryTestForm.pas

    r153 r309  
    2121    FindButton: TButton;
    2222    Button1: TButton;
    23     Button2: TButton;
    2423    Button3: TButton;
    2524    Procedure FindButtonOnClick (Sender: TObject);
    2625    Procedure Button4OnClick (Sender: TObject);
    2726    Procedure Button3OnClick (Sender: TObject);
    28     Procedure Button2OnClick (Sender: TObject);
    2927    Procedure ACLLibraryTestFormOnCreate (Sender: TObject);
    3028    Procedure ACLLibraryTestFormOnDestroy (Sender: TObject);
     
    7068End;
    7169
    72 const
    73   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 var
    79   crc: longword;
    80 Begin
    81   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;
    9770
    9871type
Note: See TracChangeset for help on using the changeset viewer.