Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Malcolm McLean Newsgroups: comp.lang.c Subject: Re: Good hash for pointers Date: Fri, 24 May 2024 01:28:45 +0100 Organization: A noiseless patient Spider Lines: 26 Message-ID: References: <86v834i1o9.fsf@linuxsc.com> <86r0dshysc.fsf@linuxsc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 24 May 2024 02:28:45 +0200 (CEST) Injection-Info: dont-email.me; posting-host="438aee3945dcdba991233edefd290899"; logging-data="2101556"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/rDQdqZwlwJaMCGe0JyJTcHH2x/vlNY/k=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:QlNMV9o/26GxrszFTfUMoXhkcp0= Content-Language: en-GB In-Reply-To: <86r0dshysc.fsf@linuxsc.com> Bytes: 1804 On 24/05/2024 00:52, Tim Rentsch wrote: > Malcolm McLean writes: > >> On 23/05/2024 23:49, Tim Rentsch wrote: >> >>> Malcolm McLean writes: >>> >>>> What is a good hash function for pointers to use in portable >>>> ANSI C? >>> >>> I have a preliminary question. Do you really mean ANSI C, or >>> is C99 acceptable? >> >> C89 is better. >> But the pass has been sold. > > I'm not asking which you think is better. I'm asking about > what your requirements are. C 89. I don't want to pull in C99 types and so on just for a hash function. -- Check out Basic Algorithms and my other books: https://www.lulu.com/spotlight/bgy1mm