[PATCH 3/4] lib: Add generic binary search function to the kernel.

2011-04-16 Thread Alessio Igor Bogani
From: Tim Abbott tabb...@ksplice.com There a large number hand-coded binary searches in the kernel (run git grep search | grep binary to find many of them). Since in my experience, hand-coding binary searches can be error-prone, it seems worth cleaning this up by providing a generic binary

[PATCH 3/4] lib: Add generic binary search function to the kernel.

2011-04-15 Thread Alessio Igor Bogani
From: Tim Abbott tabb...@ksplice.com There a large number hand-coded binary searches in the kernel (run git grep search | grep binary to find many of them). Since in my experience, hand-coding binary searches can be error-prone, it seems worth cleaning this up by providing a generic binary