mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-03 04:01:43 +08:00
356d71003e
1998-04-07 Andreas Jaeger <aj@arthur.rhein-neckar.de> * sysdeps/unix/sysv/linux/bits/sockunion.h: Fix error message. * manual/socket.texi (Interface Naming): Fix typo. 1998-04-07 Andreas Jaeger <aj@arthur.rhein-neckar.de> * manual/examples/filesrv.c (main): Remove filename first. * manual/socket.texi (Address Formats): Change ?F_LOCAL, ?F_FILE, ?F_UNIX. * manual/examples/mkfsock.c (make_named_socket): Use PF_LOCAL instead of PF_UNIX. * manual/examples/filecli.c (main): Use AF_LOCAL instead of AF_UNIX. 1998-04-09 Ulrich Drepper <drepper@cygnus.com> * sysdeps/libm-ieee754/s_signgam.c: Define __signgam and make signgam weak alias. * sysdeps/libm-ieee754/w_lgamma.c: Use __signgam not signgam. * sysdeps/libm-ieee754/w_lgammaf.c: Likewise. * sysdeps/libm-ieee754/w_lgammal.c: Likewise. * sysdeps/libm-ieee754/w_gamma.c: Likewise. * sysdeps/libm-ieee754/w_gammaf.c: Likewise. * sysdeps/libm-ieee754/w_gammal.c: Likewise. * login/utmp_daemon.c (open_socket): Use __connect not connect. * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h (SA_LEN): New macro. * Makerules: Re-add missing rule for $(objpfx)stamp.oS.
55 lines
1.4 KiB
C
55 lines
1.4 KiB
C
/* w_lgammal.c -- long double version of w_lgamma.c.
|
|
* Conversion to long double by Ulrich Drepper,
|
|
* Cygnus Support, drepper@cygnus.com.
|
|
*/
|
|
|
|
/*
|
|
* ====================================================
|
|
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
|
|
*
|
|
* Developed at SunPro, a Sun Microsystems, Inc. business.
|
|
* Permission to use, copy, modify, and distribute this
|
|
* software is freely granted, provided that this notice
|
|
* is preserved.
|
|
* ====================================================
|
|
*/
|
|
|
|
#if defined(LIBM_SCCS) && !defined(lint)
|
|
static char rcsid[] = "$NetBSD: $";
|
|
#endif
|
|
|
|
/* long double lgammal(long double x)
|
|
* Return the logarithm of the Gamma function of x.
|
|
*
|
|
* Method: call __ieee754_lgammal_r
|
|
*/
|
|
|
|
#include "math.h"
|
|
#include "math_private.h"
|
|
|
|
extern int __signgam;
|
|
|
|
#ifdef __STDC__
|
|
long double __lgammal(long double x)
|
|
#else
|
|
long double __lgammal(x)
|
|
long double x;
|
|
#endif
|
|
{
|
|
#ifdef _IEEE_LIBM
|
|
return __ieee754_lgammal_r(x,&__signgam);
|
|
#else
|
|
long double y;
|
|
y = __ieee754_lgammal_r(x,&__signgam);
|
|
if(_LIB_VERSION == _IEEE_) return y;
|
|
if(!__finitel(y)&&__finitel(x)) {
|
|
if(__floorl(x)==x&&x<=0.0)
|
|
return __kernel_standard(x,x,215); /* lgamma pole */
|
|
else
|
|
return __kernel_standard(x,x,214); /* lgamma overflow */
|
|
} else
|
|
return y;
|
|
#endif
|
|
}
|
|
weak_alias (__lgammal, lgammal)
|