MCPcopy Create free account
hub / github.com/coreboot/coreboot / iself

Function iself

util/cbfstool/amdcompress.c:128–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128static int iself(const void *input)
129{
130 const Elf32_Ehdr *ehdr = input;
131 return !memcmp(ehdr->e_ident, ELFMAG, 4);
132}
133
134/* todo: Consider using deflate() and inflate() instead of compress() and
135 * decompress(), especially if memory allocation somehow becomes a problem.

Callers 1

do_processFunction · 0.70

Calls 1

memcmpFunction · 0.50

Tested by

no test coverage detected