[PATCH] ARM: Use libc calls for fenv functions

Wilco wdijkstr@arm.com
Fri May 23 17:31:00 GMT 2014


Hi,

This patch uses libc calls defined by fenv_private.h to implement several fenv functions rather than
duplicating functionality. To make this work for softfp builds, ensure functions in fenv_private are
not conditionally compiled.

OK for commit?

Wilco

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

	* sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
	* sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
	* sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
	* sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
	Call libc_fetestexcept_vfp.
	* sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
	* sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
	__SOFTFP__ ifdef so that they can be built for softfp.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Use-libc-calls.txt
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20140523/2374e6cd/attachment.txt>


More information about the Libc-alpha mailing list