mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-30 04:15:06 +01:00
amd64: make bcmp in libc just call memcmp
Preferably bcmp would just alias memcmp but there is build magic which makes this problematic. Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D28846
This commit is contained in:
1 parent
cf8880d52b
commit
5fc3cc2713
2 files changed
+16
-1
No files matched your search
@@ -1,7 +1,6 @@
|
||||
# $FreeBSD$
|
||||
|
||||
MDSRCS+= \
|
||||
bcmp.S \
|
||||
memcmp.S \
|
||||
memcpy.S \
|
||||
memmove.S \
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/*-
|
||||
* Written by Mateusz Guzik <mjg@freebsd.org>
|
||||
* Public domain.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <string.h>
|
||||
|
||||
int
|
||||
bcmp(const void *b1, const void *b2, size_t len)
|
||||
{
|
||||
|
||||
return (memcmp(b1, b2, len));
|
||||
}
|
||||
Reference in new issue
Block a user