Re: [PATCH v2] lib: One less subtraction in binary search iterations.
From: Rusty Russell
Date: Mon Jul 15 2013 - 01:19:37 EST
Wedson Almeida Filho <wedsonaf@xxxxxxxxx> writes:
> The subtraction is removed at the expense of generality: when the element size
> is 1, the array length cannot exceed half the architecture's addressable
> memory.
People do copy code, so I prefer to set the best example possible.
Unless it's a useful optimization, I think it should stay the way it is.
Cheers,
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/