On Thu, 5 May 2022, Giancarlo Martini wrote:
$a & $b And Bits that are set in both $a and $b are set. $a | $b Or (inclusive or) Bits that are set in either $a or $b are set. $a ^ $b Xor (exclusive or) Bits that are set in $a or $b but not both are set. ~ $a Not Bits that are set in $a are not set, and vice versa. $a << $b Shift left Shift the bits of $a $b steps to the left (each step means "multiply by two") $a >> $b Shift right Shift the bits of $a $b steps to the right (each step means "divide by two")
Questo lo sapevo, ma volevo sapere se esisteva qualcosa del tipo bt($a,$b) che traduce direttamente nella istruzione natuiva piuttosto che
($a & (1 << $b )) che è meno efficiente. -- Leonardo Boselli Firenze, Toscana, Europa http://i.trail.it