* expectations for a_ctz_64(0)
@ 2017-11-30 22:41 Andre McCurdy
2017-11-30 23:08 ` Szabolcs Nagy
0 siblings, 1 reply; 3+ messages in thread
From: Andre McCurdy @ 2017-11-30 22:41 UTC (permalink / raw)
To: musl
Currently the generic and aarch64 versions of a_ctz_64() give
different results for 0:
a_ctz_64_generic(0) : 0
a_ctz_64_aarch64(0) : 64
That doesn't matter for the ffs functions, but for the other users of
a_ctz_l and a_ctz_64 (ie malloc and qsort) it's less clear.
Does musl rely on a specific behaviour?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: expectations for a_ctz_64(0)
2017-11-30 22:41 expectations for a_ctz_64(0) Andre McCurdy
@ 2017-11-30 23:08 ` Szabolcs Nagy
2017-11-30 23:45 ` Andre McCurdy
0 siblings, 1 reply; 3+ messages in thread
From: Szabolcs Nagy @ 2017-11-30 23:08 UTC (permalink / raw)
To: musl
* Andre McCurdy <armccurdy@gmail.com> [2017-11-30 14:41:32 -0800]:
> Currently the generic and aarch64 versions of a_ctz_64() give
> different results for 0:
>
> a_ctz_64_generic(0) : 0
> a_ctz_64_aarch64(0) : 64
>
> That doesn't matter for the ffs functions, but for the other users of
> a_ctz_l and a_ctz_64 (ie malloc and qsort) it's less clear.
>
> Does musl rely on a specific behaviour?
no, that would be a bug.
same for clz
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: expectations for a_ctz_64(0)
2017-11-30 23:08 ` Szabolcs Nagy
@ 2017-11-30 23:45 ` Andre McCurdy
0 siblings, 0 replies; 3+ messages in thread
From: Andre McCurdy @ 2017-11-30 23:45 UTC (permalink / raw)
To: musl
On Thu, Nov 30, 2017 at 3:08 PM, Szabolcs Nagy <nsz@port70.net> wrote:
> * Andre McCurdy <armccurdy@gmail.com> [2017-11-30 14:41:32 -0800]:
>> Currently the generic and aarch64 versions of a_ctz_64() give
>> different results for 0:
>>
>> a_ctz_64_generic(0) : 0
>> a_ctz_64_aarch64(0) : 64
>>
>> That doesn't matter for the ffs functions, but for the other users of
>> a_ctz_l and a_ctz_64 (ie malloc and qsort) it's less clear.
>>
>> Does musl rely on a specific behaviour?
>
> no, that would be a bug.
>
> same for clz
Good. Thanks for confirming.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-11-30 23:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-30 22:41 expectations for a_ctz_64(0) Andre McCurdy
2017-11-30 23:08 ` Szabolcs Nagy
2017-11-30 23:45 ` Andre McCurdy
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).