SRCDIRCSA = intIndex
CC = g++
-export CFLAGS = -O9 -D_FORTIFY_SOURCE=0
+export CFLAGS = -O3
+# -D_FORTIFY_SOURCE=0
#export CFLAGS = -O9 -m32 -L. -g -D_FORTIFY_SOURCE=0
# Original settings:
//#define free(p) Free(p)
//#define realloc(p,n) Realloc(p,n)
-static void *Malloc (size_t n);
-static void Free (void *p);
-static void *Realloc (void *p, size_t n);
+ //static void *Malloc (size_t n);
+ //static void Free (void *p);
+ //static void *Realloc (void *p, size_t n);
// Data types
h->SIZE_HASH = sizeVoc;
do {
h->SIZE_HASH = NearestPrime(h->SIZE_HASH);
- } while (h->SIZE_HASH < m);
+ } while (h->SIZE_HASH >= m);
h->hash = (t_hashNode *) malloc(h->SIZE_HASH * sizeof(t_hashNode));
h->NumElem = 0;
if(h->NumElem >= h->SIZE_HASH/2)
{
-
resize(h);
-
}
//h->hash[*addr].word = (unsigned char*) malloc((len+1) * sizeof(unsigned char));
getMemoryBlock(h->_memMgr,( byte **)&(h->hash[*addr].word),len+1);