How do I find out in a very fast way if exactly one bit of a byte is set?
I currently use this (inline assembly):
Code:
	mov al, bit_depth ; bit_depth is what I want to test
shift:
	shr al
	jnc shift
	test al, al
	jz just_one_bit
Anyone got a better idea?