comparison src/xgccache.c @ 647:b39c14581166

[xemacs-hg @ 2001-08-13 04:45:47 by ben] removal of unsigned, size_t, etc.
author ben
date Mon, 13 Aug 2001 04:46:48 +0000
parents abe6d1db359e
children a8d8f419b459
comparison
equal deleted inserted replaced
646:00c54252fe4f 647:b39c14581166
102 /* This could look at the mask and only use the used slots in the 102 /* This could look at the mask and only use the used slots in the
103 hash code. That would win in that we wouldn't have to initialize 103 hash code. That would win in that we wouldn't have to initialize
104 every slot of the gcv when calling gc_cache_lookup. But we need 104 every slot of the gcv when calling gc_cache_lookup. But we need
105 the hash function to be as fast as possible; some timings should 105 the hash function to be as fast as possible; some timings should
106 be done. */ 106 be done. */
107 for (i = 0; i < (sizeof (XGCValues) / sizeof (unsigned long)); i++) 107 for (i = 0; i < (int) (sizeof (XGCValues) / sizeof (unsigned long)); i++)
108 hash = (hash<<1) ^ *longs++; 108 hash = (hash<<1) ^ *longs++;
109 return hash; 109 return hash;
110 } 110 }
111 111
112 #endif /* GCCACHE_HASH */ 112 #endif /* GCCACHE_HASH */