Ruud H.G. van Tol on Sat, 05 Jul 2025 20:43:15 +0200


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

Re: flags in a bitmap



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