delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/09/28/08:07:02

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 28 Sep 2007 08:06:07 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Diego Biurrun <diego AT biurrun DOT de>
cc: cygwin AT cygwin DOT com
Subject: Re: llrint implementation in Cygwin
In-Reply-To: <fdif1q$efv$1@sea.gmane.org>
Message-ID: <Pine.GSO.4.63.0709280802020.16275@access1.cims.nyu.edu>
References: <fd68u2$geo$1 AT sea DOT gmane DOT org> <46F6C151 DOT 3070301 AT computer DOT org> <fdif1q$efv$1 AT sea DOT gmane DOT org>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

On Fri, 28 Sep 2007, Diego Biurrun wrote:

> Tim Prince wrote:
> > Diego Biurrun wrote:
> >
> > > I have noticed that Cygwin does not implement llrint.  However,
> > > llrint is part of C99 and not having it available makes some
> > > applications (for example MPlayer and FFmpeg) fail to compile.
> > >
> > > Are there any plans to implement llrint (in the near future)?
> >
> > Perhaps if you would submit a patch to newlib, something may happen.
>
> Telling me what newlib is would greatly help in this regard :-)

Newlib is the library that Cygwin uses for some standard functions (math
and otherwise).

(The only way to interpret this question is "what is the connection
between newlib and Cygwin", as a quick Google would have pointed you to
the newlib webpage).

> > It's not difficult to back-port stand-alone from recent gcc if you
> > don't want to wait for cygwin to include a gcc upgrade, about which
> > there have been plenty of threads here.
>
> Do I understand correctly that Cygwin will provide llrint with the next
> gcc upgrade?

Yes, but it won't happen for a while.

> I understand that adding llrint to Cygwin is probably not hard at all
> for somebody familiar with Cygwin.  However, I am not such a person and
> I don't even have a Windows environment around to test any modifications
> I might make.
>
> We are about to make an MPlayer release and unfortunately it will not
> compile on Cygwin due to the missing llrint.  I would appreciate to know
> if this is going to get addressed so that I can put an appropriate
> comment in the release notes.

What's wrong with adding llrint to your code (perhaps with a #define,
i.e.,

#define llrint my_llrint
typeof(llrint) my_llrint(...) { ... }

)?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

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