Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230525111750.5809e555@inria.fr>
Date: Thu, 25 May 2023 11:17:50 +0200
From: Jₑₙₛ Gustedt <jens.gustedt@...ia.fr>
To: Rich Felker <dalias@...c.org>
Cc: musl@...ts.openwall.com
Subject: Re: [C23 new stdlib 2/4] C23: add the memalignment function


on Wed, 24 May 2023 18:12:05 -0400 you (Rich Felker <dalias@...c.org>)
wrote:

> I was reading the spec and came across:
> 
>     "If p is a null pointer, an alignment of zero is returned."
> 
> and:
> 
>     "NOTE An alignment of zero indicates that the tested pointer
>     cannot be used to access an object of any type."
> 
> I think this precludes your version with ctzll, but works fine with
> the replacement I proposed.

good catch


Thanks
Jₑₙₛ

-- 
:: ICube :::::::::::::::::::::::::::::: deputy director ::
:: Université de Strasbourg :::::::::::::::::::::: ICPS ::
:: INRIA Nancy Grand Est :::::::::::::::::::::::: Camus ::
:: :::::::::::::::::::::::::::::::::::: ☎ +33 368854536 ::
:: https://icube-icps.unistra.fr/index.php/Jens_Gustedt ::

Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.