[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sono molto pigro



$a & $bAndBits that are set in both $a and $b are set.
$a | $bOr (inclusive or)Bits that are set in either $a or $b are set.
$a ^ $bXor (exclusive or)Bits that are set in $a or $b but not both are set.
~ $aNotBits that are set in $a are not set, and vice versa.
$a << $bShift leftShift the bits of $a $b steps to the left (each step means "multiply by two")
$a >> $bShift rightShift the bits of $a $b steps to the right (each step means "divide by two")


Il giorno gio 5 mag 2022 alle ore 15:21 Leonardo Boselli <leo-stretch@trail.it> ha scritto:
in php quali sono le funzioni per testare o modificare un singolo bit in
un int64 ? per intendersi l'equivalente di BT BTR BTS in assembler (con
secondo operatore un registro) ?


--
Leonardo Boselli
Firenze, Toscana, Europa
http://i.trail.it



--
Giancarlo Martini
(Replace 'AAA' con '@')  
mailto:giancarlo.firAAAgmail.com


Reply to: