Bill Allombert on Sat, 05 Jul 2025 20:37:17 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: flags in a bitmap


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.