mailing list of musl libc
 help / color / mirror / code / Atom feed
d4ab72a4e2072ec72a5972dcbd02575b4639c575 blob 217 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
 
#include <string.h>

#define hidden __attribute__((visibility("hidden")))

hidden
void *__memsset(void *d, int i, size_t n)
{
	memset(d, i, n);

	__asm__ __volatile__("" : "=r" (d): "0" (d) : "memory");

	return d;
}
debug log:

solving d4ab72a4 ...
found d4ab72a4 in https://inbox.vuxu.org/musl/20170715195541.3136-6-nwmcsween@gmail.com/

applying [1/1] https://inbox.vuxu.org/musl/20170715195541.3136-6-nwmcsween@gmail.com/
diff --git a/src/string/memsset.c b/src/string/memsset.c
new file mode 100644
index 00000000..d4ab72a4

Checking patch src/string/memsset.c...
Applied patch src/string/memsset.c cleanly.

index at:
100644 d4ab72a4e2072ec72a5972dcbd02575b4639c575	src/string/memsset.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).