diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-08-18 18:16:15 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-08-18 18:16:15 +0400 |
commit | b9ce23106015e6b23a1ea8cae8049f922c732587 (patch) | |
tree | 137646c1279796c4f82e5746fd12d0ae12a75ba1 /intern/cycles/util/util_memarena.h | |
parent | d43682d51bbe70448b328980d29c3a08cf4d4a26 (diff) |
Cycles: relicense GNU GPL source code to Apache version 2.0.
More information in this post:
http://code.blender.org/
Thanks to all contributes for giving their permission!
Diffstat (limited to 'intern/cycles/util/util_memarena.h')
-rw-r--r-- | intern/cycles/util/util_memarena.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/intern/cycles/util/util_memarena.h b/intern/cycles/util/util_memarena.h deleted file mode 100644 index 3b4b761509e..00000000000 --- a/intern/cycles/util/util_memarena.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2011, Blender Foundation. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef __UTIL_MEMARENA_H__ -#define __UTIL_MEMARENA_H__ - -#include <stdlib.h> - -#include "util_list.h" -#include "util_types.h" - -CCL_NAMESPACE_BEGIN - -class MemArena { -public: - MemArena(bool use_calloc = true, size_t buffer_size = (1<<14)); - ~MemArena(); - - void *alloc(size_t size); - -protected: - bool use_calloc; - size_t buffer_size; - - list<uint8_t*> buffers; - uint8_t *last_buffer; - size_t last_left; -}; - -CCL_NAMESPACE_END - -#endif /* __UTIL_MEMARENA_H__ */ - |