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] Set/restore rounding mode only when needed


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


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