@@ -148,17 +148,13 @@ typedef signed long long khint64_t;
148
148
149
149
typedef double khfloat64_t ;
150
150
151
- #ifndef PANDAS_INLINE
152
- #if defined(__GNUC__ )
153
- #define PANDAS_INLINE __inline__
154
- #elif defined(_MSC_VER )
155
- #define PANDAS_INLINE __inline
156
- #elif defined (__STDC_VERSION__ ) && __STDC_VERSION__ >= 199901L
157
- #define PANDAS_INLINE inline
158
- #else
159
- #define PANDAS_INLINE
160
- #endif
151
+ #ifndef kh_inline
152
+ #ifdef _MSC_VER
153
+ #define kh_inline __inline
154
+ #else
155
+ #define kh_inline inline
161
156
#endif
157
+ #endif /* kh_inline */
162
158
163
159
typedef khint32_t khint_t ;
164
160
typedef khint_t khiter_t ;
@@ -358,7 +354,7 @@ static const double __ac_HASH_UPPER = 0.77;
358
354
__KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
359
355
360
356
#define KHASH_INIT (name , khkey_t , khval_t , kh_is_map , __hash_func , __hash_equal ) \
361
- KHASH_INIT2(name, static PANDAS_INLINE , khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
357
+ KHASH_INIT2(name, static kh_inline , khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
362
358
363
359
/* --- BEGIN OF HASH FUNCTIONS --- */
364
360
@@ -388,7 +384,7 @@ static const double __ac_HASH_UPPER = 0.77;
388
384
@param s Pointer to a null terminated string
389
385
@return The hash value
390
386
*/
391
- static PANDAS_INLINE khint_t __ac_X31_hash_string (const char * s )
387
+ static kh_inline khint_t __ac_X31_hash_string (const char * s )
392
388
{
393
389
khint_t h = (khint_t )* s ;
394
390
if (h ) for (++ s ; * s ; ++ s ) h = (h << 5 ) - h + (khint_t )* s ;
@@ -405,7 +401,7 @@ static PANDAS_INLINE khint_t __ac_X31_hash_string(const char *s)
405
401
*/
406
402
#define kh_str_hash_equal (a , b ) (strcmp(a, b) == 0)
407
403
408
- static PANDAS_INLINE khint_t __ac_Wang_hash (khint_t key )
404
+ static kh_inline khint_t __ac_Wang_hash (khint_t key )
409
405
{
410
406
key += ~(key << 15 );
411
407
key ^= (key >> 10 );
0 commit comments