mirror of
https://github.com/reactos/ccache.git
synced 2024-12-02 16:46:24 +00:00
Portability: Let indexFor be a define instead of an inline function
This commit is contained in:
parent
1783d5fd43
commit
f6ac19d570
@ -29,10 +29,7 @@ hash(struct hashtable *h, void *k);
|
||||
|
||||
/*****************************************************************************/
|
||||
/* indexFor */
|
||||
static inline unsigned int
|
||||
indexFor(unsigned int tablelength, unsigned int hashvalue) {
|
||||
return (hashvalue % tablelength);
|
||||
}
|
||||
#define indexFor(tablelength, hashvalue) ((hashvalue) % (tablelength))
|
||||
|
||||
/* Only works if tablelength == 2^N */
|
||||
/*static inline unsigned int
|
||||
|
Loading…
Reference in New Issue
Block a user