Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Apr 2006 01:24:52 +0200
From:      "Svein Halvor Halvorsen" <svein.h@lvor.halvorsen.cc>
To:        "Jonathan Herriott" <herriojr@gmail.com>
Cc:        freebsd-questions@freebsd.org, Nicolas Blais <nb_root@videotron.ca>
Subject:   Re: pow function working unexpectedly
Message-ID:  <bbe90d1d0604111624u67d4a5eal65cfd62b4b8e3b0b@mail.gmail.com>
In-Reply-To: <6a56d69c0604111607l5fba5939pfc6461a99a2ceab3@mail.gmail.com>
References:  <6a56d69c0604111554o587ce2c5ha1ff4ea20bbab0a4@mail.gmail.com> <200604111857.43171.nb_root@videotron.ca> <6a56d69c0604111607l5fba5939pfc6461a99a2ceab3@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 4/12/06, Jonathan Herriott <herriojr@gmail.com> 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



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