| Newsgroups |
gmane.comp.mathematics.pari.user |
| Message-ID |
<[email protected]> |
On 2025-07-04 18:42, Bill Allombert wrote:
> On Fri, Jul 04, 2025 at 04:39:38PM +0200, [email protected]
> wrote:
>> Maybe add bitflip to match std::bitset<N>::flip ?
>
> Done, thanks!
> Bill.
>
Thank you.
I ran into merging conflicts and removed the branch and rebuilt
completely:
2073 rm -rf pari
2074 git clone https://pari.math.u-bordeaux.fr/git/pari.git
2075 cd pari
2076 git checkout bill-bitset
2077 make all
2078 ./Configure
2079 make all
At the very end of build there is now an error creating bitflip doc:
...
Transcript written on parallel.log.
cat usersFUNCS.tex > usersch3.tmp
cd ../src/desc && /usr/bin/perl doc_make >> ../../doc/usersch3.tmp
$ in bitflip at doc_make line 83.
make[1]: *** [Makefile:151: usersch3.tex] Error 25
make[1]: Leaving directory '/home/pi/pari/pari/doc'
make: [Makefile:31: all] Error 2 (ignored)
pi@raspberrypi5:~/pari/pari $
Regarding bitreset vs. bitclear no action needed — I just discovered GP
alias command:
pi@raspberrypi5:~/pari/pari $ ./gp -q
? ?bitflip
bitflip(~x,n): flip bit n of x in place, assuming $x \geq 2^n$.
? ?bitreset
bitreset: unknown identifier
? ?bitclear
bitclear(~x,n): clear bit n of x (in place)
? alias("bitreset","bitclear")
?
? ?bitreset
bitreset is aliased to:
bitclear(~x,n): clear bit n of x (in place)
?
Regards,
Hermann.