This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] s_sinf.c: Replace floor with FLOOR_DOUBLE_TO_INT/FLOOR_INT_TO_DOUBLE_HALF


On Tue, 5 Dec 2017, Rajalakshmi Srinivasaraghavan wrote:

> > Here is the patch to replace floor with simple casts.  It improves
> > performance
> > of max and mean by 30% on x86-64.  Rajalakshmi, can you try it on s390?
> 
> Mean value reduced from 22.0 to 20.0 with this patch on s390x.

Thanks.  The patch is OK.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]