Print this page
11210 libm should be cstyle(1ONBLD) clean
@@ -16,23 +16,27 @@
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
+
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
+
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma weak __lgammaf_r = lgammaf_r
#include "libm.h"
float
-lgammaf_r(float x, int *signgamfp) {
+lgammaf_r(float x, int *signgamfp)
+{
if (isnanf(x))
return (x * x);
+
return ((float)__k_lgamma((double)x, signgamfp));
}