bitops: the bt instructions returns result in CF, not ZF
authorH. Peter Anvin <hpa@zytor.com>
Mon, 4 Apr 2011 16:58:44 +0000 (09:58 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 4 Apr 2011 17:00:25 +0000 (10:00 -0700)
commitaf97187d32aa51d5109af813187b98081e7d7b2f
treed6d8a919c1eae67c4800d1e50b6d4238f00bcb10
parent780bab7c179247f1c42610c1f70d99f996e787ec
bitops: the bt instructions returns result in CF, not ZF

The bit test instructions returns the tested bit in CF, not the
inverse of the tested bit in ZF.  I don't know how I got that idea...

Reported-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/include/sys/bitops.h