
Zitat von
Reinhard Kern:
Anschliessend shiftest du BitCount mod 8 Bits.
Den Plan hatte ich mittlerweile auch schon, aber so einfach lässt sich das nicht shiften

Aber hab ne Methode:
Ich rechne es mal mit 4 Bit pro Zahl vor:
(1100,1010) shl 2
1100 shl 2 = 0000 = a
1010 shl 2 = 1000 = b
1100 shr 2 = 0011 = c
1010 shr 2 = 0010 = d
Ergebnis:
(a or d) (+) b = 0010 1000
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."