- return 0;
-}
-
-static u32 vg_strdjb2( const char *str ){
- u32 hash = 5381, c;
-
- while( (c = *str++) )
- hash = ((hash << 5) + hash) + c; /* hash * 33 + c */
-
- return hash;
-}
-
-static int vg_strdjb2_eq( const char *s1, u32 h1,
- const char *s2, u32 h2 )
-{
- if( h1 == h2 ){
- if(!strcmp(s1, s2)) return 1;
- else return 0;
- } else return 0;
-}
-
-#define VG_STRDJB2_EQ( CS1, S2, H2 ) \
- vg_strdjb2_eq( CS1, vg_strdjb2(CS1), S2, H2 )
-
-