llrint implementation in Cygwin

Diego Biurrun diego@biurrun.de
Sat Sep 29 19:15:00 GMT 2007


Igor Peshansky wrote:
> 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).

Yes, I was not precise.  I was unsure about the relationship between 
Cygwin and newlib.

>>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(...) { ... }
> 
> )?

It is ugly and it is a workaround for a problem that should be solved 
outside of FFmpeg.  Should every project using llrint add that 
workaround?  No, Cygwin should be fixed.

Diego


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



More information about the Cygwin mailing list