4 * Various generic utility functions.
15 * void bzero(void *s, uint64 n);
16 * void bfill(void *s, uint64 n, uint8 val);
18 * Set the first n bytes of s to 0 or to val.
33 /* copy %dl to each byte of %rdx */
49 /* set bytes while adjusting s up to 8 byte boundary */
58 1: /* zero bytes 8 at a time */
68 1: /* zero out the remainder */
84 * void bcopy(void *s, void *d, uint64 n);
86 * Copy n bytes from s to d.
105 * Return length of a string.
107 * uint64 strlen(char *s);
118 subq %rax, %rdi # d - d - s