Bitwise operations: Difference between revisions
Content deleted Content added
Thundergnat (talk | contribs) →{{header|Perl6}}: Added perl 6 solution |
→{{header|PARI/GP}}: move bitneg to lang |
||
Line 1,017:
=={{header|PARI/GP}}==
Pari does not support bitwise rotations,
<lang parigp>bo(a,b)={
print("And: "bitand(a,b));
print("Or: "bitor(a,b));
print("Not: "bitneg(a));
print("Xor: "bitxor(a,b));
print("Left shift: ",a<<b);
|