raytracer

raytracer.git
git clone git://git.lenczewski.org/raytracer.git
Log | Files | Refs | README | LICENSE

memory.c (655B)


      1 #include "rt.h"
      2 
      3 extern inline void
      4 arena_reset(struct arena *arena);
      5 
      6 extern inline void *
      7 arena_alloc(struct arena *arena, size_t size, size_t alignment);
      8 
      9 extern inline void
     10 list_node_link(struct list_node *node, struct list_node *prev, struct list_node *next);
     11 
     12 extern inline struct list_node *
     13 list_node_unlink(struct list_node *node);
     14 
     15 extern inline void
     16 list_push_head(struct list_node *list, struct list_node *node);
     17 
     18 extern inline void
     19 list_push_tail(struct list_node *list, struct list_node *node);
     20 
     21 extern inline struct list_node *
     22 list_pop_head(struct list_node *list);
     23 
     24 extern inline struct list_node *
     25 list_pop_tail(struct list_node *list);