RFA: Add ! LDBL_EQ_DBL implementations of cosl, sinl and tanl

Nick Clifton nickc@redhat.com
Mon Mar 2 18:18:00 GMT 2015

Hi Jeff, Hi Corinna,

  Attached is a patch that implements cosl(), sinl() and tanl() when
  long double is not the same as double.  In the course of implementing
  these functions I found that I also needed to implement the fabls()
  and floorl() functions as well as several internal library support

  Tested in the usual way with an x86_64-linux-gnu toolchain with
  direct linking to the math functions.

  OK to apply ?


2015-03-02  Nick Clifton  <nickc@redhat.com>

	* libm/common/cosl.c (cosl): Add implementation for when long
	double is not the same as double.
	* libm/common/fabls.c (fabls): Likewise.
	* libm/common/floorl.c (floorl): Likewise.
	* libm/common/sinl.c (sinl): Likewise.
	* libm/common/tanl.c (tanl): Likewise.
	* libm/common/fdlibmh.h: Add prototypes for __ieee754_rem_pio2l,
	__kernel_cosl, __kernel_cosl,  __kernel_sinl and __kernel_tanl.
	* libm/math/e_rem_pio2l.c: New file.  Implements
	* libm/math/k_cosl.c: New file.  Implements __kernel_cosl.
	* libm/math/k_sinl.c: New file.  Implements __kernel_sinl.
	* libm/math/k_tanl.c: New file.  Implements __kernel_tanl.
	* libm/math/Makefile.am (src): Add k_cosl.c, k_sinl.c, k_tanl.c
	and e_rem_pio2l.c.
	* libm/math/Makefile.in: Regenerate.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: newlib.cosl.patch
Type: text/x-patch
Size: 22677 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20150302/ce5b268a/attachment.bin>

More information about the Newlib mailing list