genericopenlibs/openenvcore/libm/src/e_lgammaf.c
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 /*--------------------------------------------------------------------
       
     2  *© Portions copyright (c) 2006 Nokia Corporation.  All rights reserved.
       
     3  *--------------------------------------------------------------------
       
     4 */
       
     5 /* e_lgammaf.c -- float version of e_lgamma.c.
       
     6  * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
       
     7  */
       
     8 
       
     9 /*
       
    10  * ====================================================
       
    11  * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
       
    12  *
       
    13  * Developed at SunPro, a Sun Microsystems, Inc. business.
       
    14  * Permission to use, copy, modify, and distribute this
       
    15  * software is freely granted, provided that this notice
       
    16  * is preserved.
       
    17  * ====================================================
       
    18  */
       
    19 #ifndef __SYMBIAN32__
       
    20 #ifndef lint
       
    21 static char rcsid[] = "$FreeBSD: src/lib/msun/src/e_lgammaf.c,v 1.7 2002/05/28 18:15:04 alfred Exp $";
       
    22 #endif
       
    23 #endif //__SYMBIAN32__
       
    24 
       
    25 
       
    26 
       
    27 /* __ieee754_lgammaf(x)
       
    28  * Return the logarithm of the Gamma function of x.
       
    29  *
       
    30  * Method: call __ieee754_lgammaf_r
       
    31  */
       
    32 
       
    33 #include <math.h>
       
    34 #include "math_private.h"
       
    35 
       
    36 #ifndef __SYMBIAN32__
       
    37 extern int signgam;
       
    38 #endif //__SYMBIAN32__
       
    39 
       
    40 EXPORT_C float
       
    41 __ieee754_lgammaf(float x)
       
    42 {
       
    43 	
       
    44 	
       
    45 	return __ieee754_lgammaf_r(x, &signgam);
       
    46 	
       
    47 }