MCPcopy Create free account
hub / github.com/ading2210/linuxpdf / fdt_alloc_len

Function fdt_alloc_len

tinyemu/riscv_machine.c:368–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368static void fdt_alloc_len(FDTState *s, int len)
369{
370 int new_size;
371 if (unlikely(len > s->tab_size)) {
372 new_size = max_int(len, s->tab_size * 3 / 2);
373 s->tab = realloc(s->tab, new_size * sizeof(uint32_t));
374 s->tab_size = new_size;
375 }
376}
377
378static void fdt_put32(FDTState *s, int v)
379{

Callers 2

fdt_put32Function · 0.85
fdt_put_dataFunction · 0.85

Calls 1

max_intFunction · 0.85

Tested by

no test coverage detected