llrint() into math.h

Tim Prince timothyprince@sbcglobal.net
Wed Sep 20 16:16:00 GMT 2006

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

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