pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:31: Inside #if defined(STRALLOC_USE_PRIMES)
  #ifdef STRALLOC_USE_PRIMES      #define SET_HSIZE(X) htable_size=hashprimes[(X)]   #define HMODULO(X) ((X) % htable_size)      #else      #define SET_HSIZE(X) htable_mask=(htable_size=(1<<(X)))-1   #define HMODULO(X) ((X) & (htable_mask))    - unsigned INT32 htable_mask; + static unsigned INT32 htable_mask;      #endif      #if (SIZEOF_LONG == 4) && defined(_LP64)   /* Kludge for gcc and the system header files not using the same model... */   #undef LONG_MIN   #undef LONG_MAX   #undef ULONG_MAX   #define LONG_MIN INT_MIN   #define LONG_MAX INT_MAX
pike.git/src/stralloc.c:77:    size_t hval__=(HVAL); \    mt_unlock(BUCKETLOCK(hval__)); \   }while(0)      #else   #define LOCK_BUCKET(HVAL)   #define UNLOCK_BUCKET(HVAL)   #endif      #define BEGIN_HASH_SIZE 997 - #define MAX_AVG_LINK_LENGTH 3 + #define MAX_AVG_LINK_LENGTH 2      /* Experimental dynamic hash length */   #ifndef HASH_PREFIX   static unsigned int HASH_PREFIX=64;   static unsigned int need_more_hash_prefix_depth=0;   #endif      static unsigned INT32 htable_size=0;   static unsigned int hashprimes_entry=0;   static struct pike_string **base_table=0;