delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/09/20/17:05:09

X-Spam-Check-By: sourceware.org
Message-ID: <62891.204.104.55.242.1158786293.squirrel@mail.arsystel.com>
In-Reply-To: <23401.204.104.55.242.1158767331.squirrel@mail.arsystel.com>
References: <23401 DOT 204 DOT 104 DOT 55 DOT 242 DOT 1158767331 DOT squirrel AT mail DOT arsystel DOT com>
Date: Wed, 20 Sep 2006 23:04:53 +0200 (CEST)
Subject: Re: llrint() into math.h
From: =?iso-8859-1?Q?V=EDctor_Paesa?= <wzrlpy AT arsystel DOT com>
To: cygwin AT cygwin DOT com
User-Agent: SquirrelMail/1.4.2-0.1.7.x
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Víctor Paesa wrote:
> > Hi,
> >
> > I understand that currently, the llrint() function is only available
> > for -mno-cygwin compiled programs:
> >
> > $ fgrep llrint $(find /usr/include -name '*.h')
> > /usr/include/mingw/math.h:extern long long __cdecl llrint (double);
> > /usr/include/mingw/math.h:extern long long __cdecl llrintf (float);
> > /usr/include/mingw/math.h:extern long long __cdecl llrintl (long double);
> > /usr/include/mingw/math.h:__CRT_INLINE long long __cdecl llrint
(double x)
> > /usr/include/mingw/math.h:__CRT_INLINE long long __cdecl llrintf
(float x)
> > /usr/include/mingw/math.h:__CRT_INLINE long long __cdecl llrintl (long
> > double x)
> >
> >
> > but looking in Cygwin's maillist I noticed this:
> >
> > http://sourceware.org/ml/cygwin/2002-12/msg01146/mathinline.h
> >
> > Are there plans to incorporate the llrint() and friends into Cygwin's
> > math.h?
> >

Tim Prince wrote:
> As Cygwin doesn't have its own <math.h>, other than what is provided by
> newlib, it's not clear that you are asking in the right place. Why
> don't you simply use macro code such as you quote?

The reason is that I found pretty strange that Google would find a
llrint() implementation in one cygwin maillist, and that however Cygwin
would not support that.

I will ask in newlib list, as you have kindly suggested.

Thanks for your hint,
Víctor

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019