Diff for /libaitcrc/example/test_hash.c between versions 1.1.2.1 and 1.1.2.2

version 1.1.2.1, 2010/06/13 16:32:09 version 1.1.2.2, 2010/09/28 08:50:48
Line 2 Line 2
 #include <string.h>  #include <string.h>
 #include <fcntl.h>  #include <fcntl.h>
 #include <unistd.h>  #include <unistd.h>
#include "aithash.h"#include "aitcrc.h"
   
   
 int main()  int main()
Line 92  int main() Line 92  int main()
         for (i = 0; i < 8; i++) {          for (i = 0; i < 8; i++) {
                 memset(szLine, 0, 256);                  memset(szLine, 0, 256);
                 memcpy(szLine, &szAvalanche[i][0], 1);                  memcpy(szLine, &szAvalanche[i][0], 1);
                printf(" %d=>%u", i, hash_varchar(szLine, 1));                printf(" %d=>%u", i, hash_varchar(szLine, 1, 1));
         }          }
         printf("\n");          printf("\n");
         printf("  hash_fnv1:");          printf("  hash_fnv1:");
Line 137  int main() Line 137  int main()
                 printf(" %d=>%u", i, hash_jenkins(szLine, 1));                  printf(" %d=>%u", i, hash_jenkins(szLine, 1));
         }          }
         printf("\n");          printf("\n");
           printf("  hash_reddragon:");
           for (i = 0; i < 8; i++) {
                   memset(szLine, 0, 256);
                   memcpy(szLine, &szAvalanche[i][0], 1);
                   printf(" %d=>%u", i, hash_reddragon(szLine, 1));
           }
           printf("\n");
           printf(" aaa>%u\n", hash_reddragon("aaa", 3));
           printf(" aab>%u\n", hash_reddragon("aab", 3));
         return 0;          return 0;
 }  }

Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>