glx/glvnd: Use strcmp() based binary search in FindGLXFunction()
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 11 May 2016 18:01:54 +0000 (14:01 -0400)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 30 May 2016 16:53:44 +0000 (17:53 +0100)
commiteab7e54981017d7b87242505a215a370dfcd5024
treea7275e7f7563589bbc3d6f9a5bf84143b5e9006b
parentf9a35bf0125516d9cc660818e7ae2e9dc204b9c5
glx/glvnd: Use strcmp() based binary search in FindGLXFunction()

It will allows us to find the function within 6 attempts, out of the ~80
entry long table.

v2: calculate middle on each iteration, correctly set the lower limit.

Reviewed-by: Adam Jackson <ajax@redhat.com> (v1)
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/glx/glxglvnd.c