blob: a9eaa70d27b7c583204cbac5659a0dea4befd819 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* ISC license. */
#include <stdint.h>
#include <skalibs/stralloc.h>
#include <skalibs/genalloc.h>
#include <skalibs/gensetdyn.h>
void gensetdyn_init (gensetdyn *g, uint32_t esize, uint32_t base, uint32_t fracnum, uint32_t fracden)
{
g->storage = stralloc_zero ;
g->freelist = genalloc_zero ;
g->esize = esize ;
g->base = base ;
g->fracnum = fracnum ;
g->fracden = fracden ;
}
|