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