This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 3/4] Add ILP32 support to aarch64
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Wilco Dijkstra <Wilco dot Dijkstra at arm dot com>
- Cc: "Ellcey, Steve" <Steve dot Ellcey at cavium dot com>, nd <nd at arm dot com>, "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Date: Fri, 4 Aug 2017 00:12:29 +0000
- Subject: Re: [PATCH 3/4] Add ILP32 support to aarch64
- Authentication-results: sourceware.org; auth=none
- References: <DB6PR0801MB20533095035144673B49342083B10@DB6PR0801MB2053.eurprd08.prod.outlook.com>
On Thu, 3 Aug 2017, Wilco Dijkstra wrote:
> The generic implementation may well be faster... I'm not sure where the
> requirement of not raising inexact comes from (I don't see it in the definition
> of lrint, and we generally don't care since inexact is set by almost every FP
> calculation), but if it is absolutely required you'd special case values larger
> than LONG_MAX.
The requirement comes from lrint being bound to IEEE 754 conversion
operations, so only raising inexact under the conditions specified and no
spurious inexact.
--
Joseph S. Myers
joseph@codesourcery.com