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]

FW: [PATCH 2/2] ARM: Improve fenv implementation


Hi,

Same for this one.

Wilco

ChangeLog:
2014-05-08  Wilco  <wdijkstr@arm.com>

	* sysdeps/arm/fclrexcpt.c: Optimize to avoid unnecessary FPSCR writes.
	* sysdeps/arm/fedisblxcpt.c: Likewise.
	* sysdeps/arm/feenablxcpt.c: Likewise.
	* sysdeps/arm/fegetround.c: Call (get_rounding_mode).
	* sysdeps/arm/feholdexcpt.c: Call optimized (libc_feholdexcept_vfp).
	* sysdeps/arm/fesetenv.c: Special case FE_DFL_ENV and FE_NOMASK_ENV.
	Call optimized (libc_fesetenv_vfp).
	* sysdeps/arm/fesetround.c: Call optimized (libc_fesetround_vfp).
	* sysdeps/arm/feupdateenv.c: Special case FE_DFL_ENV and FE_NOMASK_ENV.
	Call optimized (libc_feupdateenv_vfp).
	* sysdeps/arm/fgetexcptflg.c: Call optimized (libc_fetestexcept_vfp).
	* sysdeps/arm/fsetexcptflg.c: Optimize to avoid unnecessary FPSCR
	writes.
	* sysdeps/arm/ftestexcept.c: Call optimized (libc_fetestexcept_vfp).
	* sysdeps/arm/setfpucw.c: Optimize to avoid unnecessary FPSCR writes.

-----Original Message-----
From: Wilco [mailto:wdijkstr@arm.com] 
Sent: 25 April 2014 11:50
To: 'libc-alpha@sourceware.org'
Subject: [PATCH 2/2] ARM: Improve fenv implementation

Hi,

The second patch improves the fenv implementation by using the inline functions from fenv_private
where possible rather than duplicating functionality. The remaining functions are optimized in a
similar way to avoid unnecessary FPSCR writes (but no longer use __glibc_unlikely like in the
previous version).

OK for commit?

Wilco

Attachment: Reduce-unnecessary-FPSCR-writes.txt
Description: Text document


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