stdlib: optimize bsearch()
authorAndré Goddard Rosa <andre.goddard@gmail.com>
Mon, 29 Mar 2010 00:18:56 +0000 (21:18 -0300)
committerAndré Goddard Rosa <andre.goddard@gmail.com>
Mon, 29 Mar 2010 00:18:56 +0000 (21:18 -0300)
commitacdb052030d6e537e51d8b42e07b2a9e71e6ee42
treec42e974950bbe7d89eac29f62381d8d7e759f69b
parent4ad72f89b12fe0157074a253190f6aa2cbfe15ac
stdlib: optimize bsearch()

... by checking most probable condition first (elements do differ)

Change-Id: I424eab9c32a6d9eb82b686ca04025ec8c9097035
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
libc/stdlib/bsearch.c