Re: flags in a bitmap

"Ruud H.G. van Tol" <[email protected]> Sat, 5 Jul 2025 20:43:10 +0200
Newsgroups gmane.comp.mathematics.pari.devel
Message-ID <[email protected]>
On 2025-07-05 20:37, Bill Allombert wrote:
 > On Sat, Jul 05, 2025 at 05:40:28PM +0200, Ruud H.G. van Tol wrote:

 >> This looks special to me:
 >>
 >> ? my(x=2^4); print(x); bitclear(x,4); print(x);
 >> 16
 >> Vecsmall([])
 >>
 >> ? my(x=2^4); print(x); bitflip(x,4); print(x);
 >> 16
 >> Vecsmall([])
 >>
 >> as I expected 0.
 >
 > Thanks, there was a major bug when using the native kernel.
 > I have made a updated version (which no more allow to clear the 
highest bit).

And thank you for taking care of it!

-- Greetings, Ruud