00001 00005 /* $Id: memalloc.cc,v 1.1.2.9 2005/06/23 22:15:06 garloff Exp $ */ 00006 00007 #if defined(__GNUC__) && __GNUC__ == 2 00008 # define MINLINE /* extern inline */ 00009 #endif 00010 00011 #define PRAGMA_IMPL_MALLOC_CACHE 00012 #include "basics.h" 00013 //#include "malloc_cache.h" 00014 00015 /* Instantiate specializations */ 00016 #define TBCI_INSTANTIATE 00017 00018 #ifdef MALLOC_CACHE 00019 00020 NAMESPACE_TBCI 00021 00022 # define INST_TBCI_MEMALLOC(TYPE) \ 00023 template class tbci_memalloc< TYPE >; \ 00024 template class tbci_memalloc_cache< TYPE > 00025 //template <> tbci_memalloc< TYPE >& tbci_s_allocator (DUMMY2(TYPE) ) 00026 00027 INST_TBCI_MEMALLOC(double); 00028 INST_TBCI_MEMALLOC(double*); 00029 INST_TBCI_MEMALLOC(float); 00030 INST_TBCI_MEMALLOC(float*); 00031 INST_TBCI_MEMALLOC(unsigned int); 00032 INST_TBCI_MEMALLOC(unsigned int*); 00033 INST_TBCI_MEMALLOC(int); 00034 INST_TBCI_MEMALLOC(int*); 00035 INST_TBCI_MEMALLOC(unsigned short); 00036 INST_TBCI_MEMALLOC(char); 00037 INST_TBCI_MEMALLOC(char*); 00038 INST_TBCI_MEMALLOC(long); 00039 INST_TBCI_MEMALLOC(long*); 00040 INST_TBCI_MEMALLOC(unsigned long); 00041 INST_TBCI_MEMALLOC(unsigned long*); 00042 INST_TBCI_MEMALLOC(void*); 00043 00044 //template class tbci_memalloc<NUM>; 00045 //template class tbci_memalloc<NUM*>; 00046 //template class tbci_memalloc_cache<NUM>; 00047 //template class tbci_memalloc_cache<NUM*>; 00048 00049 # undef INST_TBCI_MEMALLOC 00050 NAMESPACE_END 00051 00052 #endif
1.5.6