5bool lsearch(
int x,
const int *
p,
const int *e) {
15 return p + ((e -
p) >> 1);
19 const ptrdiff_t
n = e -
p;
61 for(
const int *e = ie;
p != e;) {
73 return p != e && !(
x < *
p);
bool bsearch2(int x, const int *p, const int *e)
Definition bsearch.h:47
bool bsearch1(int x, const int *p, const int *e)
Definition bsearch.h:32
bool bsearch3(int x, const int *p, const int *e)
Definition bsearch.h:71
const int * lower_bound(int x, const int *p, const int *ie)
Definition bsearch.h:60
bool bsearch0(int x, const int *p, const int *e)
Definition bsearch.h:18
static const int * bsearch_middle(const int *p, const int *e)
Definition bsearch.h:13
bool lsearch(int x, const int *p, const int *e)
Definition bsearch.h:5
#define x
Definition gcc14.c:1
#define m(a)
Definition std2.c:8
#define p()
Definition std2.c:11