This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: llrint() into math.h
- From: Víctor Paesa <wzrlpy at arsystel dot com>
- To: cygwin at cygwin dot com
- Date: Sat, 25 Nov 2006 00:53:40 +0100 (CET)
- Subject: Re: llrint() into math.h
- References: <23401.204.104.55.242.1158767331.squirrel@mail.arsystel.com> <56342.204.104.55.242.1158785720.squirrel@mail.arsystel.com>
Hi,
>>> I will ask in newlib list, as you have kindly suggested.
>>
>> I have interest in llrint too. What did the newlib-guys answer?
>
> Victor never asked, from the looks of it.
Right, I changed mind and never wrote, I decided to add it into my
sources via this:
#ifndef llrint
inline long long int llrint (double x)
{
long long int llrintres;
asm
("fistpll %0"
: "=m" (llrintres) : "t" (x) : "st");
return llrintres;
}
#endif
Regards,
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/