Re: flags in a bitmap
Bill Allombert <[email protected]> Sat, 5 Jul 2025 20:37:13 +0200
| Newsgroups | gmane.comp.mathematics.pari.devel |
|---|---|
| Message-ID | <aGlw2a2QZlP7iH6M@seventeen> |
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). Cheers, Bill.