From owner-cvs-all@FreeBSD.ORG Wed Oct 31 22:35:12 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54C3C16A417; Wed, 31 Oct 2007 22:35:12 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id 42FF913C48D; Wed, 31 Oct 2007 22:35:11 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.14.1/8.14.1) with ESMTP id l9VMYkQ4091051; Thu, 1 Nov 2007 01:34:46 +0300 (MSK) (envelope-from ache@nagual.pp.ru) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nagual.pp.ru; s=default; t=1193870086; bh=3oucKTPbakYA6QRUnpBP3JXJtaL9IeF0nNvw3wl UafA=; l=586; h=Date:From:To:Cc:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To:User-Agent; b=bJeqzp6H+TgOak/1XTwa4Y+TfsJw35doYOd1P59p 3UzEehKooVRfdPHnWog0SXAhK8Mz2n1+xPJJ2eUX4SenmWFaujZKp9AJ06rg9fQkCII snkHxFKMECm8LTDK6Uyt3SP2kuEXHyehHJrUryTlBO68DRfBhEFJsMPUHZazm8sc= Received: (from ache@localhost) by nagual.pp.ru (8.14.1/8.14.1/Submit) id l9VMYkFl091050; Thu, 1 Nov 2007 01:34:46 +0300 (MSK) (envelope-from ache) Date: Thu, 1 Nov 2007 01:34:46 +0300 From: Andrey Chernov To: Juli Mallett Message-ID: <20071031223446.GA90994@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Juli Mallett , src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG References: <200710272232.l9RMWSbK072082@repoman.freebsd.org> <20071030200331.GA29309@toxic.magnesium.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071030200331.GA29309@toxic.magnesium.net> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: cvs-src@FreeBSD.ORG, src-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/include _ctype.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2007 22:35:12 -0000 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/