Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2000:
[Freeciv-Dev] Re: Better string hashing function
Home

[Freeciv-Dev] Re: Better string hashing function

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Better string hashing function
From: Falk Hueffner <falk.hueffner@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: 29 Mar 2000 18:10:01 +0200

Vasco Alexandre Da Silva Costa <vasc@xxxxxxxxxxxxxxxxxxxxx> writes:

> unsigned int hash_fval_string(const void *vkey, unsigned int num_buckets)
> {
>   register const char *key = (const char *)vkey;

Please leave off the "register" keyword, since it doesn't improev
performance on any decent compiler and might confuse people who don't
know it.

        Falk




[Prev in Thread] Current Thread [Next in Thread]