projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix comment.
[bertos.git]
/
bertos
/
struct
/
heap.c
diff --git
a/bertos/struct/heap.c
b/bertos/struct/heap.c
index b4380a4da499a53e4c6cc581e755667df8867279..2375c1f140ebcd2267090f4285edd91c295fdf56 100644
(file)
--- a/
bertos/struct/heap.c
+++ b/
bertos/struct/heap.c
@@
-73,7
+73,7
@@
void *heap_allocmem(struct Heap* h, size_t size)
MemChunk *chunk, *prev;
/* Round size up to the allocation granularity */
MemChunk *chunk, *prev;
/* Round size up to the allocation granularity */
- size = ROUND2(size, sizeof(MemChunk));
+ size = ROUND
_UP
2(size, sizeof(MemChunk));
/* Handle allocations of 0 bytes */
if (!size)
/* Handle allocations of 0 bytes */
if (!size)
@@
-123,7
+123,7
@@
void heap_freemem(struct Heap* h, void *mem, size_t size)
#endif
/* Round size up to the allocation granularity */
#endif
/* Round size up to the allocation granularity */
- size = ROUND2(size, sizeof(MemChunk));
+ size = ROUND
_UP
2(size, sizeof(MemChunk));
/* Handle allocations of 0 bytes */
if (!size)
/* Handle allocations of 0 bytes */
if (!size)