delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/11/24/18:54:05

X-Spam-Check-By: sourceware.org
Message-ID: <2503.83.41.35.83.1164412420.squirrel@mail.arsystel.com>
In-Reply-To: <56342.204.104.55.242.1158785720.squirrel@mail.arsystel.com>
References: <23401 DOT 204 DOT 104 DOT 55 DOT 242 DOT 1158767331 DOT squirrel AT mail DOT arsystel DOT com> <56342 DOT 204 DOT 104 DOT 55 DOT 242 DOT 1158785720 DOT squirrel AT mail DOT arsystel DOT com>
Date: Sat, 25 Nov 2006 00:53:40 +0100 (CET)
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-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

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/

- Raw text -


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