Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jan 2002 11:52:06 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Mike Silbersack <silby@silby.com>
Cc:        <cvs-committers@FreeBSD.org>, <cvs-all@FreeBSD.org>
Subject:   Re: cvs commit: src/sys/kern uipc_socket2.c
Message-ID:  <20020110115017.D10376-100000@gamplex.bde.org>
In-Reply-To: <20020109124252.F2484-100000@patrocles.silby.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 9 Jan 2002, Mike Silbersack wrote:

> On Tue, 8 Jan 2002, Bruce Evans wrote:
> > The compiler always promotes types (not sizes) in binary expressions.
> > This works right for comparison except when the operand types have the
> > same size but differ in signedness.  The problem with the min() and
> > MIN() macros is that they evaluate their args more than once.
>
> Ah, I can see the potential problems with signedness.  As for the
> evaluation of arguments; wouldn't the inline min functions in libkern.h do
> the same?

No, because inline functions have function semantics.  Functions don't
reevaluate their args.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020110115017.D10376-100000>