pike.git / src / pike_memory.h

version» Context lines:

pike.git/src/pike_memory.h:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: pike_memory.h,v 1.57 2008/06/02 14:15:20 mast Exp $ + || $Id: pike_memory.h,v 1.58 2008/06/23 22:21:02 mast Exp $   */      #ifndef MEMORY_H   #define MEMORY_H      #include "global.h"   #include "stralloc.h"      #ifdef USE_VALGRIND   
pike.git/src/pike_memory.h:181:   #if SIZEOF_CHAR_P == 4   #define DIVIDE_BY_2_CHAR_P(X) (X >>= 3)   #else /* sizeof(char *) != 4 */   #if SIZEOF_CHAR_P == 8   #define DIVIDE_BY_2_CHAR_P(X) (X >>= 4)   #else /* sizeof(char *) != 8 */   #define DIVIDE_BY_2_CHAR_P(X) (X /= 2*sizeof(size_t))   #endif /* sizeof(char *) == 8 */   #endif /* sizeof(char *) == 4 */    + /* MLEN is the length of the longest prefix of A to use for hashing. +  * (If A is longer then additionally some bytes at the end are +  * included.) */   /* NB: RET should be an lvalue of type size_t. */   #define DO_HASHMEM(RET, A, LEN, MLEN) \    do { \    const unsigned char *a = A; \    size_t len = LEN; \    size_t mlen = MLEN; \    size_t ret; \    \    ret = 9248339*len; \    if(len<mlen) \