j****i 发帖数: 305 | | f*******y 发帖数: 55 | 2 X Y Z O
T T T T
T T F T
T F T T
T F F F
F T T T
F T F F
F F T F
F F F F
两个或两个以上为假是结果为假
两个或两个以上为真是结果为真 | j****i 发帖数: 305 | 3 Yeah. But what does it do in terms of x,y,z?
【在 f*******y 的大作中提到】 : X Y Z O : T T T T : T T F T : T F T T : T F F F : F T T T : F T F F : F F T F : F F F F : 两个或两个以上为假是结果为假
| z*****a 发帖数: 3809 | 4 It's basically a majority vote for each bit position.
For each bit position in the result, the bit is set to 1 if and only if at
least two out of the three inputs (X, Y, Z) have 1 in the corresponding bit.
| t****t 发帖数: 6806 | 5 if x, y, z are bits, the results is the carry of x+y+z.
【在 j****i 的大作中提到】 : rt
|
|