cosl: Simplify for platforms where 'long double' == 'double'.
authorBruno Haible <bruno@clisp.org>
Tue, 11 Oct 2011 00:55:56 +0000 (02:55 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 11 Oct 2011 01:03:03 +0000 (03:03 +0200)
commitfa11421b5098e20c33003e3f3375b830524c717a
tree78765a71e278c80f28d665334ddfe5a5f195438e
parent030dc7afa953442437474140ac98ab4f8db56bc8
cosl: Simplify for platforms where 'long double' == 'double'.

* lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
implementation.
* m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
* modules/cosl (Depends-on): Add cos. Update conditions.
(configure.ac): Don't compile sincosl.c and trigl.c if
HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
ChangeLog
lib/cosl.c
m4/cosl.m4
modules/cosl