Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 107 → Rev 927

/shark/trunk/ports/fftw/fftw/malloc.c
21,7 → 21,7
* malloc.c -- memory allocation related functions
*/
 
/* $Id: malloc.c,v 1.2 2003-03-24 11:14:54 pj Exp $ */
/* $Id: malloc.c,v 1.3 2005-01-08 15:00:28 pj Exp $ */
#ifdef FFTW_USING_CILK
#include <cilk.h>
#include <cilk-compat.h>
92,7 → 92,7
// fprintf(stderr, "fftw: %s", s);
 
printk(KERN_ERR "fftw: %s", s);
sys_abort(EXIT_FAILURE);
exit(EXIT_FAILURE);
}
 
/* check for memory leaks when debugging */
113,7 → 113,7
fftw_malloc_cnt,
fftw_node_cnt, fftw_plan_cnt, fftw_twiddle_size,
fftw_malloc_total);
sys_abort(EXIT_FAILURE);
exit(EXIT_FAILURE);
}
#else
if (fftw_node_cnt || fftw_plan_cnt || fftw_twiddle_size) {
123,7 → 123,7
"MEMORY LEAK!!!\n"
" node=%d plan=%d twiddle=%d\n",
fftw_node_cnt, fftw_plan_cnt, fftw_twiddle_size);
sys_abort(EXIT_FAILURE);
exit(EXIT_FAILURE);
}
#endif
}