X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Victor Paesa <wzrlpy@arsystel.com>
Subject:  Re: llrint implementation in Cygwin
Date: Sun, 28 Oct 2007 09:35:23 +0000 (UTC)
Lines: 43
Message-ID:  <loom.20071028T090824-606@post.gmane.org>
References:  <fd68u2$geo$1@sea.gmane.org> <46F6C151.3070301@computer.org> <loom.20071027T095345-83@post.gmane.org> <472324B8.C0A36B60@dessent.net>
Mime-Version:  1.0
Content-Type:  text/plain; charset=us-ascii
Content-Transfer-Encoding:  7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Hi,

Brian Dessent writes:

> Victor Paesa wrote:
> 
> > I downloaded the gcc-3.4.4 Cygwin source package, and I found that 
> > (apparently) gcc 3.4.4 already had llrint built-in:

[skipped nice detailed explanation on how builtins work]

Thanks!

[...]

> So even if it did have a __builtin_llrint, you would
> not be able to use it any non-trivial manner.
> 
> [ Also note that you did not invoke gcc with optimization above, which
> I'm pretty sure means it won't even consider using optimized builtins. ]

I tried with gcc 4.4.2. If I understood correctly the Changelog, this one
implements llrint(). It compiled out of the box, but indeed I wasn't able 
to use the __builtin_llrint (tried -O2, -O3, -ffast-math, -finline-functions
to no avail).

> > Could that be fixed by adding/removing flags to the configure line used
> > to build gcc 3.4.4 in Cygwin?
> 
> No what needs to be done is add llrint to newlib.  A builtin is not a
> suitable replacement.

Since the builtin way is a dead end, I wonder how is the future Cygwin gcc 
suposed to bring llrint(). Will it use the <mathinline.h> approach or will
it patch newlib?
(since the thread is a bit overheated: please understand it as a technical
question, no trolling intended).

Thanks in advance for your answer,
Victor

P.S. Sorry if Gmane is breaking the thread, I tried cygwin-get.556@cygwin.com
but it didn't worked.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

