X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Victor Paesa Subject: Re: llrint implementation in Cygwin Date: Sun, 28 Oct 2007 09:35:23 +0000 (UTC) Lines: 43 Message-ID: References: <46F6C151 DOT 3070301 AT computer DOT org> <472324B8 DOT C0A36B60 AT dessent DOT 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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 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 DOT 556 AT cygwin DOT 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/