TBCI Numerical high perf. C++ Library 2.8.0
memalloc.cc
Go to the documentation of this file.
1
5/* $Id: memalloc.cc,v 1.1.2.10 2019/05/28 11:13:02 garloff Exp $ */
6
7#if defined(__GNUC__) && __GNUC__ == 2
8# define MINLINE /* extern inline */
9#endif
10
11#define PRAGMA_IMPL_MALLOC_CACHE
12#include "tbci/basics.h"
13//#include "tbci/malloc_cache.h"
14
15/* Instantiate specializations */
16#define TBCI_INSTANTIATE
17
18#ifdef MALLOC_CACHE
19
21
22# define INST_TBCI_MEMALLOC(TYPE) \
23template class tbci_memalloc< TYPE >; \
24template class tbci_memalloc_cache< TYPE >
25//template <> tbci_memalloc< TYPE >& tbci_s_allocator (DUMMY2(TYPE) )
26
27INST_TBCI_MEMALLOC(double);
28INST_TBCI_MEMALLOC(double*);
29INST_TBCI_MEMALLOC(float);
30INST_TBCI_MEMALLOC(float*);
31INST_TBCI_MEMALLOC(unsigned int);
32INST_TBCI_MEMALLOC(unsigned int*);
33INST_TBCI_MEMALLOC(int);
34INST_TBCI_MEMALLOC(int*);
35INST_TBCI_MEMALLOC(unsigned short);
36INST_TBCI_MEMALLOC(char);
37INST_TBCI_MEMALLOC(char*);
38INST_TBCI_MEMALLOC(long);
39INST_TBCI_MEMALLOC(long*);
40INST_TBCI_MEMALLOC(unsigned long);
41INST_TBCI_MEMALLOC(unsigned long*);
42INST_TBCI_MEMALLOC(void*);
43
44//template class tbci_memalloc<NUM>;
45//template class tbci_memalloc<NUM*>;
46//template class tbci_memalloc_cache<NUM>;
47//template class tbci_memalloc_cache<NUM*>;
48
49# undef INST_TBCI_MEMALLOC
51
52#endif
#define NAMESPACE_END
Definition basics.h:323
#define NAMESPACE_TBCI
Definition basics.h:317