Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Nov 2007 01:34:46 +0300
From:      Andrey Chernov <ache@nagual.pp.ru>
To:        Juli Mallett <juli@clockworksquid.com>
Cc:        cvs-src@FreeBSD.ORG, src-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/include _ctype.h
Message-ID:  <20071031223446.GA90994@nagual.pp.ru>
In-Reply-To: <20071030200331.GA29309@toxic.magnesium.net>
References:  <200710272232.l9RMWSbK072082@repoman.freebsd.org> <20071030200331.GA29309@toxic.magnesium.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 30, 2007 at 10:03:31AM -1000, Juli Mallett wrote:
> Is there a specific expensive instruction you're trying to avoid?
> For such thoroughyl bit-aligned range checks, you shouldn't even get a branch
> for the former case.  Is there a platform other than i386 I should look at where
> the previous expression is more clearly pessimized?  Or a different compiler
> than GCC?

Besides optimizing the case when no optimization used in compiler for some 
reason, the next reason is to keep ctype in its style, i.e. ressemble 
isascii() there.

-- 
http://ache.pp.ru/



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