Re: flags in a bitmap

"Ruud H.G. van Tol" <[email protected]> Sat, 5 Jul 2025 21:19:19 +0200
Newsgroups gmane.comp.mathematics.pari.devel
Message-ID <[email protected]>
On 2025-07-05 20:37, Bill Allombert wrote:
> [...]
> I have made a updated version (which no more allow to clear the highest bit).

? ??bitclear
'bitclear' not found !

? ?bitset
bitset(~x,n): set bit n of x in place, assuming x >= 2^n.

? ?bitclear
bitclear(~x,n): clear bit n of x in place, assuming x >= 2^(n+1).

? ?bitflip
bitflip(~x,n): flip bit n of x in place, assuming x >= 2^{n+1}.


The brackets are {} vs ().

-- Ruud