On Sat, 2013-07-06 at 16:07 -0700, Wedson Almeida Filho wrote: > There is no functional change, but this change eliminates a subtraction that > the compiler doesn't optimize out (as of gcc 4.7.3).
Not correct. > diff --git a/lib/bsearch.c b/lib/bsearch.c [] > @@ -37,7 +37,7 @@ void *bsearch(const void *key, const void *base, size_t > num, size_t size, > int result; > > while (start < end) { > - size_t mid = start + (end - start) / 2; > + size_t mid = (start + end) / 2; size_t start = 0x80000000; size_t end = 0x80000001; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/