From 147db1cbab9d19e6e0f1716008c3605ba9d769f3 Mon Sep 17 00:00:00 2001 From: David Greenman Date: Tue, 30 Aug 1994 18:19:47 +0000 Subject: Added qmin and qmax functions to deal with quad_t's. --- sys/libkern/libkern.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'sys/libkern') diff --git a/sys/libkern/libkern.h b/sys/libkern/libkern.h index d4669c7dd3d4..752c28c03cd5 100644 --- a/sys/libkern/libkern.h +++ b/sys/libkern/libkern.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)libkern.h 8.1 (Berkeley) 6/10/93 - * $Id$ + * $Id: libkern.h,v 1.2 1994/08/02 07:44:03 davidg Exp $ */ #include @@ -85,6 +85,19 @@ ulmin(a, b) return (a < b ? a : b); } +static inline quad_t +qmax(a, b) + quad_t a, b; +{ + return (a > b ? a : b); +} +static inline quad_t +qmin(a, b) + quad_t a, b; +{ + return (a < b ? a : b); +} + /* Prototypes for non-quad routines. */ int bcmp __P((const void *, const void *, size_t)); int ffs __P((int)); -- cgit v1.2.3