[jit] Implement fast TLS access in gshared methods. (#18377)
[mono-project.git] / mono / utils / bsearch.h
blob93fdd5dac9025caa40a1cb6b023b889baa687e20
1 /**
2 * \file
3 */
5 #ifndef __MONO_BSEARCH_H__
6 #define __MONO_BSEARCH_H__
8 #include <stdlib.h>
10 #include "mono/utils/mono-compiler.h"
12 typedef int (* BinarySearchComparer) (const void *key, const void *member);
14 void *
15 mono_binary_search (
16 const void *key,
17 const void *array,
18 size_t array_length,
19 size_t member_size,
20 BinarySearchComparer comparer);
22 #endif