xref: /freebsd/lib/libc/tests/string/bcmp_test.c (revision c6cc06d465a98270ef734ffec7c9012ec3a1bd17)
1*c6cc06d4SRobert Clausecker /*-
2*c6cc06d4SRobert Clausecker  * Copyright (c) 2023 The FreeBSD Foundation
3*c6cc06d4SRobert Clausecker  *
4*c6cc06d4SRobert Clausecker  * This software was developed by Robert Clausecker <fuz@FreeBSD.org>
5*c6cc06d4SRobert Clausecker  * under sponsorship from the FreeBSD Foundation.
6*c6cc06d4SRobert Clausecker  *
7*c6cc06d4SRobert Clausecker  * Redistribution and use in source and binary forms, with or without
8*c6cc06d4SRobert Clausecker  * modification, are permitted provided that the following conditions
9*c6cc06d4SRobert Clausecker  * are met:
10*c6cc06d4SRobert Clausecker  * 1. Redistributions of source code must retain the above copyright
11*c6cc06d4SRobert Clausecker  *    notice, this list of conditions and the following disclaimer.
12*c6cc06d4SRobert Clausecker  * 2. Redistributions in binary form must reproduce the above copyright
13*c6cc06d4SRobert Clausecker  *    notice, this list of conditions and the following disclaimer in the
14*c6cc06d4SRobert Clausecker  *    documentation and/or other materials provided with the distribution.
15*c6cc06d4SRobert Clausecker  *
16*c6cc06d4SRobert Clausecker  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ''AS IS'' AND
17*c6cc06d4SRobert Clausecker  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18*c6cc06d4SRobert Clausecker  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19*c6cc06d4SRobert Clausecker  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20*c6cc06d4SRobert Clausecker  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21*c6cc06d4SRobert Clausecker  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22*c6cc06d4SRobert Clausecker  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23*c6cc06d4SRobert Clausecker  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24*c6cc06d4SRobert Clausecker  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25*c6cc06d4SRobert Clausecker  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26*c6cc06d4SRobert Clausecker  * SUCH DAMAGE
27*c6cc06d4SRobert Clausecker  */
28*c6cc06d4SRobert Clausecker 
29*c6cc06d4SRobert Clausecker #define MEMCMP bcmp
30*c6cc06d4SRobert Clausecker #define RES(x) ((x) != 0)
31*c6cc06d4SRobert Clausecker 
32*c6cc06d4SRobert Clausecker #include "memcmp_test.c"
33