From owner-freebsd-questions@FreeBSD.ORG Tue Apr 11 23:24:57 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67CC016A400 for ; Tue, 11 Apr 2006 23:24:57 +0000 (UTC) (envelope-from sveinhal@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01B4F43D6D for ; Tue, 11 Apr 2006 23:24:52 +0000 (GMT) (envelope-from sveinhal@gmail.com) Received: by xproxy.gmail.com with SMTP id s9so941280wxc for ; Tue, 11 Apr 2006 16:24:52 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IAhnjG00qMrowf5FRA2ddhSugrCxZ3K3eidUKaxAxsuRoRvmU90lyMNE2qNSe6R8WSKxQ36NAJpfQrYkkQiSgZuk45/J5/DOBNIPhPfHlcHt8VvyRUlgfiz4Xn29z9RqtsSS5doKkQFM2bkaSSWa1hFHhJ3IT6oesBolbOkZS4E= Received: by 10.70.63.4 with SMTP id l4mr1465100wxa; Tue, 11 Apr 2006 16:24:52 -0700 (PDT) Received: by 10.70.117.5 with HTTP; Tue, 11 Apr 2006 16:24:52 -0700 (PDT) Message-ID: Date: Wed, 12 Apr 2006 01:24:52 +0200 From: "Svein Halvor Halvorsen" Sender: sveinhal@gmail.com To: "Jonathan Herriott" In-Reply-To: <6a56d69c0604111607l5fba5939pfc6461a99a2ceab3@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <6a56d69c0604111554o587ce2c5ha1ff4ea20bbab0a4@mail.gmail.com> <200604111857.43171.nb_root@videotron.ca> <6a56d69c0604111607l5fba5939pfc6461a99a2ceab3@mail.gmail.com> Cc: freebsd-questions@freebsd.org, Nicolas Blais Subject: Re: pow function working unexpectedly X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 23:24:57 -0000 On 4/12/06, Jonathan Herriott wrote: > Question then. Why would it work when I don't use variables if I > don't include the library? This question is just out of curiosity. Since you use only hard coded operands, the result is given, and gcc optimizes such arithmetics and function calls away. Svein Halvor