[PATCH v5 03/14] KVM: ARM: Initial skeleton to compile KVM support

Russell King - ARM Linux linux at arm.linux.org.uk
Mon Jan 14 11:24:15 EST 2013


On Tue, Jan 08, 2013 at 01:38:55PM -0500, Christoffer Dall wrote:
> +	/* -ENOENT for unknown features, -EINVAL for invalid combinations. */
> +	for (i = 0; i < sizeof(init->features)*8; i++) {
> +		if (init->features[i / 32] & (1 << (i % 32))) {

Isn't this an open-coded version of test_bit() ?



More information about the linux-arm-kernel mailing list