Bill Allombert on Thu, 30 Mar 2023 20:10:50 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- To: pari-dev@pari.math.u-bordeaux.fr
- Subject: Re: bit_ffs
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Thu, 30 Mar 2023 20:09:14 +0200
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1680199747; c=relaxed/relaxed; bh=5/aMX/Dx+z4MBryarkG4uQxqHvODYfKy+Ri4BYpaz1U=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=eXQXKLcrl64oG5QEuytWf6sQTLMPQUvg6TFZmHm6Kn/Gx3eJCUa0ufi1+RzXlHvbOdpaAr5KZFGxbbDKfjgH1ubG4b7+fHBpzdn+GieJtWb8HRUQLJ4T5Q+KBcyPVevtbcb7hb+Vf0fnBiifzVrZq9lM0g8h1/SI3u8nISueUZWTVvB0QGrFf1fEFf39liXfV4JtGpPygJWDUzaPenOQZyU0emRGFfMki0XoxkNSxBdEIqPYz1cxLkD2wrd1XqVTdKH+K3df4a2U7qZXIVmPtzvIlRpAiw2dZGmxIcWNm+pporPNX4jw3oicbE254Yl0tdAtkFe4SqhJ71cHBiI5tjSyNTaURukIHsk7FWI7gJtw/yMBt9G6ASSwqY6BLayDrRxLPIzOpfK7R0D1c9q5CKQQ1HG8YlRuY4quL74kUo+g36rd5u8n+Oc821BGK7F5FdJMMeGTcBjBRvWq7qdG1608Z4XYtYYs4is4jzlLAaf1AbFDFBUPeGcjr23tjo8wX+aNsHTnh6vEDThNBBJT1uTpYwiX/Aa7tM76xvAu99FsK4f/1OJP2HwMR7XFwC2kEMm+AaYXH6bjGvocQk5gRMElHyIR6LOsnpgqB0O7fJ73gvbvlyo7IN6XAE0UrxUiRWQE0tRR3I80UeCm8Z1frNg5fmRcSuW9XeJD5JVSXbc=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1680199747; cv=none; b=Txb0TfHe6EjdKH57HS6FoLG7Y8gdj+1H00m2m1o5b5bzs11/3jm8VBm7wr4AKfsWV8xlRQ/fYcv3pq8o67BJUvKeorjiR/LqecloDjYi8JVngoW2swTMqPgylZd2o3ebJwra4HuJ4DAoFBNxzhDuhaeNpmHo9Ey2kbw5lEQSyp6vTZtah1muiIS4IsfcIu/7TR3N8eTNLW4ulGhykHjxSIizm1QFLwRhSm6jBokDKA7qliMpGPs8gFUV6DNSl5mzo/Te2kvfrIP9kO2AeXM4S0HcSFbEzo+Xq4qsMqQ46lumHIJaY1n9cZ2ml0HITMKhMbWRVNa577yaXaxffXO1CKmFZe+yKWmV7YE8JfiHy2z/kbXlrDGgNpIZo4fzflC9aAyC+6d73DWb64tUf+8BL7+LOarp5y9yN4W7CB7z/XZ1NbY5BjMKqgW5vSvis1e2Mkc/QFWXiy9GMjUvD8kXTxRW5ZgsrttCbNwOoCxQS7kCkukGm6CJdkcEYUCtW3jgXSmKCCsU5DpBTIk6se9e3+6znhQpHBzvJPFLQ+ztw3Lwx7oZObDbyySLHawSiBCJPwTyKvk3aTOyGJ06FsGTbdWDkMtDkeT8mahaRQEebtiFV3bucquchw35mhvTQVYINgHj+jZ5OsfCQ1EV2XzCaAMqG6KMIyKuEHqtOKbwzGg=
- Authentication-results: smail; arc=none
- Delivery-date: Thu, 30 Mar 2023 20:10:50 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1680199747; bh=5/aMX/Dx+z4MBryarkG4uQxqHvODYfKy+Ri4BYpaz1U=; h=Date:From:To:Subject:References:In-Reply-To:From; b=W3DSp705F1de1ZhkLb6avLc+aBJ+utaes3g//JDj7u5QrzSGAgevdQRsAqkEdRxWb AQoKHOHskJd4Wa/4lMvVvP0LAX2KwY0KaLHrJTiREl/3Zk0VQKcyWbeQkxIKAQSrdq 3wrS+kKptSKvrHtE2CJRo1u2fisRawMmKtSQ8uLYGl5HGBv+gfJ+bIbfu2SDuuqD9L qHgkopeg/v29KMxJxc35wcNLijhudnH7lcVLZqZXdNYUkLdkb8vQj3UUZ4qvXXPXSk pWNfKYkoPbW6HRT0Kr7mBauS2exr9p1YRAats+dDd5nUfPP+vXeJvEGUH3h/CGZWRD 9z9CMY27zm0a2CrvGe2ljTEKf7tARRHap5Hf+DXdWzJzBWduAf1SbH+qNZYvX2IWA9 HO9QcAgMlf5OqoQgSvzjdXWRPM31wm1uCuxSVDO93oYHEwbeLkpPboK4yBKXqM+s+N 8uxuYsmhpJ1u0vm76tQm53kV+yykPfkq18aC8sUOW4kma0iHgMwmM86JDhPHcyt2+d epvFdYr6Gyq1Ht3scZ1KY4nuWBkiFSJfaC+5/VQToclE3AXJlrZsY2DeOOoHAn79cB ABXU0VxFm0cJ78S/z/BSgPFyluWlr3bAS5r/EZfS73BBExetEf03uT4mf7RufmYMk9 s50xN5nwDQ7GIldZ5SH77xgM=
- In-reply-to: <684b63b3-ab0e-bbac-a45f-a3e87421227c@isolution.nl>
- Mail-followup-to: pari-dev@pari.math.u-bordeaux.fr
- References: <684b63b3-ab0e-bbac-a45f-a3e87421227c@isolution.nl>
On Thu, Mar 30, 2023 at 07:02:34PM +0200, Ruud H.G. van Tol wrote:
>
> Might be interesting to add:
>
> https://en.wikipedia.org/wiki/Find_first_set
> https://www.man7.org/linux/man-pages/man3/ffs.3.html
> https://www.go4expert.com/articles/builtin-gcc-functions-builtinclz-t29238/
>
> Or are those too low-level?
>
> bit_ffs, bit_ctz
For the bitxxx functions family in GP,
you can use valuation(x,2) (resp. logint(x,2))
Cheers,
Bill.
- Follow-Ups:
- Re: bit_ffs
- From: "Ruud H.G. van Tol" <rvtol@isolution.nl>
- References:
- bit_ffs
- From: "Ruud H.G. van Tol" <rvtol@isolution.nl>