MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bzero

Function bzero

freebsd/mips/mips/elf_trampoline.c:76–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76static __inline void
77bzero(void *addr, size_t count)
78{
79 char *tmp = (char *)addr;
80
81 while (count > 0) {
82 if (count >= 4 && !((vm_offset_t)tmp & 3)) {
83 *(uint32_t *)tmp = 0;
84 tmp += 4;
85 count -= 4;
86 } else {
87 *tmp = 0;
88 tmp++;
89 count--;
90 }
91 }
92}
93
94/*
95 * Convert number to pointer, truncate on 64->32 case, sign extend

Callers 15

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
show_varFunction · 0.85
link_addrFunction · 0.85
setFunction · 0.85
getFunction · 0.85
deleteFunction · 0.85
getnbrinfoFunction · 0.85
rtmsgFunction · 0.85
ifinfoFunction · 0.85
fill_iftotFunction · 0.85

Calls

no outgoing calls

Tested by 13

ztest_ioFunction · 0.68
ztest_dmu_read_writeFunction · 0.68
ztest_zapFunction · 0.68
ztest_zap_parallelFunction · 0.68
ztest_run_initFunction · 0.68
draid_generateFunction · 0.68
draid_verifyFunction · 0.68
draid_dumpFunction · 0.68
draid_tableFunction · 0.68
draid_mergeFunction · 0.68
fillbufFunction · 0.68
mainFunction · 0.68