opnsense-src/lib/libc/aarch64/string/bzero.c
Getz Mikalsen 79e01e7e64 lib/libc/aarch64/string: add bcopy & bzero wrapper
This patch enabled usage of SIMD enhanced functions to implement
bcopy and bzero.

Tested by:	fuz (exprun)
Reviewed by:	fuz, emaste
Sponsored by:	Google LLC (GSoC 2024)
PR:		281175
Differential Revision: https://reviews.freebsd.org/D46459
2025-01-10 16:02:40 +01:00

14 lines
141 B
C

/*-
* Public domain.
*/
#include <string.h>
#undef bzero /* _FORTIFY_SOURCE */
void
bzero(void *b, size_t len)
{
memset(b, 0, len);
}