1*82357f6dSdsl /* $NetBSD: lmin.c,v 1.6 2009/03/14 21:04:24 dsl Exp $ */
2aa9eacddScgd
32d4295ebScgd /*
42d4295ebScgd * Copyright (c) 1982, 1986, 1991 Regents of the University of California.
52d4295ebScgd * All rights reserved.
62d4295ebScgd *
72d4295ebScgd * Redistribution and use in source and binary forms, with or without
82d4295ebScgd * modification, are permitted provided that the following conditions
92d4295ebScgd * are met:
102d4295ebScgd * 1. Redistributions of source code must retain the above copyright
112d4295ebScgd * notice, this list of conditions and the following disclaimer.
122d4295ebScgd * 2. Redistributions in binary form must reproduce the above copyright
132d4295ebScgd * notice, this list of conditions and the following disclaimer in the
142d4295ebScgd * documentation and/or other materials provided with the distribution.
15aad01611Sagc * 3. Neither the name of the University nor the names of its contributors
162d4295ebScgd * may be used to endorse or promote products derived from this software
172d4295ebScgd * without specific prior written permission.
182d4295ebScgd *
192d4295ebScgd * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
202d4295ebScgd * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
212d4295ebScgd * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
222d4295ebScgd * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
232d4295ebScgd * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
242d4295ebScgd * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
252d4295ebScgd * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
262d4295ebScgd * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
272d4295ebScgd * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
282d4295ebScgd * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
292d4295ebScgd * SUCH DAMAGE.
302d4295ebScgd *
31aa9eacddScgd * @(#)subr_xxx.c 7.10 (Berkeley) 4/20/91
322d4295ebScgd */
332d4295ebScgd
34fb901eb9Schristos #define LIBKERN_INLINE
35fb901eb9Schristos #include <lib/libkern/libkern.h>
36fb901eb9Schristos
372d4295ebScgd long
lmin(long a,long b)38*82357f6dSdsl lmin(long a, long b)
392d4295ebScgd {
402d4295ebScgd return (a < b ? a : b);
412d4295ebScgd }
42