Преглед изворни кода

Removed incorrect comment; malloc() is inefficient only when the

alignment and size are both powers of two, and there's no way to
specify an alignment through the malloc() interface anyway.
tags/v0.9.3
Michael Brown пре 18 година
родитељ
комит
95f8a42930
1 измењених фајлова са 0 додато и 5 уклоњено
  1. 0
    5
      src/core/malloc.c

+ 0
- 5
src/core/malloc.c Прегледај датотеку

@@ -195,11 +195,6 @@ void free_memblock ( void *ptr, size_t size ) {
195 195
  *
196 196
  * Allocates memory with no particular alignment requirement.  @c ptr
197 197
  * will be aligned to at least a multiple of sizeof(void*).
198
- *
199
- * Note that malloc() is very inefficient for allocating blocks where
200
- * the size is a power of two; if you have many of these
201
- * (e.g. descriptor rings, data buffers) you should use malloc_dma()
202
- * instead.
203 198
  */
204 199
 void * malloc ( size_t size ) {
205 200
 	size_t total_size;

Loading…
Откажи
Сачувај