X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fextable.c;h=179c0874559569bf2626cbfc70bfcfef09474097;hb=44707fdf5938ad269ea5d6c5744d82f6a7328746;hp=01c08b5836f5e8441920df88df4efc9859776efe;hpb=55d8ca4f8094246da6e71889a4e04bfafaa78b10;p=pandora-kernel.git diff --git a/lib/extable.c b/lib/extable.c index 01c08b5836f5..179c08745595 100644 --- a/lib/extable.c +++ b/lib/extable.c @@ -9,7 +9,6 @@ * 2 of the License, or (at your option) any later version. */ -#include #include #include #include @@ -58,10 +57,10 @@ search_extable(const struct exception_table_entry *first, while (first <= last) { const struct exception_table_entry *mid; - mid = (last - first) / 2 + first; + mid = ((last - first) >> 1) + first; /* - * careful, the distance between entries can be - * larger than 2GB: + * careful, the distance between value and insn + * can be larger than MAX_LONG: */ if (mid->insn < value) first = mid + 1;