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

Joseph Myers joseph@codesourcery.com
Tue Dec 5 16:20:00 GMT 2017


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



More information about the Libc-alpha mailing list