Ruud H.G. van Tol on Sat, 22 Jan 2022 13:37:57 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Addressable bits buffer, how?
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Addressable bits buffer, how?
- From: "Ruud H.G. van Tol" <rvtol@isolution.nl>
- Date: Sat, 22 Jan 2022 13:37:53 +0100
- Delivery-date: Sat, 22 Jan 2022 13:37:58 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=isolution.nl; s=soverin; t=1642855070; bh=GIjfbfv9JEAPuiGJINn2/wRaj3GJ7m2m+XnIqGqrPV8=; h=Date:From:Subject:To:From; b=hbGSulfc1ZRlWrbfgp1FTT12Ih8+tB6vSSxQ6A9sJuPu74abofsAENutB4dAfUc+f sPzJmRYDtBGZ1uwcBBSMHf6jksrk+8ei3UUAjroEDN5/vumX6nDAiV0hXalbC9ONhz EpmmgwT0HVPtOlrc5W5IKjEe7ekYONruiJ7xcpctyxnQ6rHih3tYSaNDmNRpz/9jRM uPJP0/LSsJwCTsktbhdHiXMSkoVSbqzMAGQe3vf19kT+XoNx9qGTUpOpbA8/DV416L mjHH7ulVkMg8sI94IuauAbUKRQK2/MKuFEosrknlBe6De7bHYyDES6Xnb+0AtElxEb PQxwxYBHxJuFA==
What are the ways to do raw bit buffer efficiently?
For example like Perl's vec(). `perldoc -f vec`
? sizebyte(binary(2602714556700227743))
%610 = 1784
? floor(1+#binary(2602714556700227743)/8)
%611 = 8
With addressable bits/bytes/words.
https://rosettacode.org/wiki/Pangram_checker#PARI.2FGP
-- Greetings, Ruud