[PATCH] Set/restore rounding mode only when needed
Siddhesh Poyarekar
siddhesh@redhat.com
Wed Jun 12 04:23:00 GMT 2013
On Tue, Jun 11, 2013 at 10:01:47PM +0000, Joseph S. Myers wrote:
> This patch is OK with me. I do wonder if it's possible to reduce the
> number of macros and functions by always defining the rm_ctx type, as a
> struct just containing fenv_t when the architecture doesn't have any
> special tracking of updated_status, so that you don't need separate *_ctx
> macros and functions and everything using libc_fe* and related functions
> and macros just uses the rm_ctx type instead of using fenv_t directly.
> As far as I can see, updated_status is only used in the
> architecture-specific header for i386.
It might be possible to do something like this to reduce the number of
macros, but it will end up touching a lot of code. I could do that as
a cleanup in 2.19. I'll push this patch as is for now.
Thanks,
Siddhesh
More information about the Libc-alpha
mailing list