Deutsch   English   Français   Italiano  
<v2omvt$2049k$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Malcolm McLean <malcolm.arthur.mclean@gmail.com>
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: <v2omvt$2049k$1@dont-email.me>
References: <v2n88p$1nlcc$1@dont-email.me> <86v834i1o9.fsf@linuxsc.com>
 <v2okbv$1vp4n$2@dont-email.me> <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 <malcolm.arthur.mclean@gmail.com> writes:
> 
>> On 23/05/2024 23:49, Tim Rentsch wrote:
>>
>>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> 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