Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759035AbXKTGR0 (ORCPT ); Tue, 20 Nov 2007 01:17:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759237AbXKTGRM (ORCPT ); Tue, 20 Nov 2007 01:17:12 -0500 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:36190 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1759110AbXKTGRL (ORCPT ); Tue, 20 Nov 2007 01:17:11 -0500 Date: Mon, 19 Nov 2007 22:17:10 -0800 (PST) Message-Id: <20071119.221710.241875586.davem@davemloft.net> To: xiyou.wangcong@gmail.com Cc: hpa@zytor.com, goodmenkernel@gmail.com, linux-kernel@vger.kernel.org Subject: Re: Is there any word about this bug in gcc ? From: David Miller In-Reply-To: <20071120053904.GG2472@hacking> References: <20071120041600.GC2472@hacking> <47426C54.9020009@zytor.com> <20071120053904.GG2472@hacking> X-Mailer: Mew version 5.2 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 610 Lines: 14 From: WANG Cong Date: Tue, 20 Nov 2007 13:39:05 +0800 > And you mean abs() is not in glibc, then where is it? Built in gcc? > And what's more, why not put it in glibc? Because the compiler knows things about the inputs and can thus apply optimizations that a static implementation in glibc that has to handle all forms of inputs cannot. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/