X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fadt%2Fpdeq.c;h=8d596d0f3e574d1e0b3354f38abd185d918712b4;hb=3da5ed2598245b896255bc444aaa1768f6098cfe;hp=7ef6eef7b6007cbcc3af3639321766b4efde4715;hpb=57d365a67aaef76497b85e9a18b785c562652b16;p=libfirm diff --git a/ir/adt/pdeq.c b/ir/adt/pdeq.c index 7ef6eef7b..8d596d0f3 100644 --- a/ir/adt/pdeq.c +++ b/ir/adt/pdeq.c @@ -1,5 +1,5 @@ /* - * Copyrigth (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -24,20 +24,11 @@ * @date 1999 by getting from fiasco * @version $Id$ */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - -#ifdef HAVE_STDIO_H -# include -#endif -#ifdef HAVE_STDLIB_H -# include -#endif -#ifdef HAVE_STRING_H -# include -#endif +#include "config.h" +#include +#include +#include #include #include "fourcc.h" @@ -52,6 +43,9 @@ /** Size of pdeq block cache. */ #define TUNE_NSAVED_PDEQS 16 +/** A size handled efficiently by malloc(), at least 1K. */ +#define PREF_MALLOC_SIZE 2048 + /** * Maximal number of data items in a pdeq chunk. */ @@ -95,7 +89,7 @@ static unsigned pdeqs_cached; * * @param p The pdeq chunk. */ -static INLINE void free_pdeq_block (pdeq *p) +static inline void free_pdeq_block (pdeq *p) { #ifndef NDEBUG p->magic = 0xbadf00d1; @@ -112,7 +106,7 @@ static INLINE void free_pdeq_block (pdeq *p) * * @return A new pdeq chunk. */ -static INLINE pdeq *alloc_pdeq_block (void) +static inline pdeq *alloc_pdeq_block (void) { pdeq *p; if (TUNE_NSAVED_PDEQS && pdeqs_cached) {