sc_mempool.cc (13071:91e07c3feb64) sc_mempool.cc (13286:89bb6d42831c)
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 22 unchanged lines hidden (view full) ---

31#include "systemc/ext/dt/sc_mempool.hh"
32
33namespace sc_core
34{
35
36void *
37sc_mempool::allocate(std::size_t sz)
38{
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 22 unchanged lines hidden (view full) ---

31#include "systemc/ext/dt/sc_mempool.hh"
32
33namespace sc_core
34{
35
36void *
37sc_mempool::allocate(std::size_t sz)
38{
39 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
40 return nullptr;
39 return ::operator new(sz);
41}
42void
43sc_mempool::release(void *p, std::size_t sz)
44{
40}
41void
42sc_mempool::release(void *p, std::size_t sz)
43{
45 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
44 ::operator delete(p);
46}
47void
48sc_mempool::display_statistics()
49{
50 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
51}
52
53};
45}
46void
47sc_mempool::display_statistics()
48{
49 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
50}
51
52};