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.58 2008/06/23 22:21:02 mast Exp $ + || $Id: pike_memory.h,v 1.59 2010/09/21 15:24:23 grubba Exp $   */      #ifndef MEMORY_H   #define MEMORY_H      #include "global.h"   #include "stralloc.h"      #ifdef USE_VALGRIND   
pike.git/src/pike_memory.h:193:    * 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) \ +  if(len<=mlen) \    mlen=len; \    else \    { \    switch(len-mlen) \    { \    default: ret^=(ret<<6) + a[len-7]; \    case 7: \    case 6: ret^=(ret<<7) + a[len-5]; \    case 5: \    case 4: ret^=(ret<<4) + a[len-4]; \