Print this page
11210 libm should be cstyle(1ONBLD) clean
*** 16,28 ****
--- 16,30 ----
* 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.
*/
*** 34,61 ****
#if defined(__i386) && !defined(__amd64)
extern int __swapRP(int);
#endif
float
! erff(float x) {
int ix;
ix = *(int *)&x & ~0x80000000;
if (ix > 0x7f800000) /* x is NaN */
return (x * x);
return ((float)erf((double)x));
}
float
! erfcf(float x) {
float f;
int ix;
#if defined(__i386) && !defined(__amd64)
int rp;
#endif
ix = *(int *)&x & ~0x80000000;
if (ix > 0x7f800000) /* x is NaN */
return (x * x);
#if defined(__i386) && !defined(__amd64)
rp = __swapRP(fp_extended);
--- 36,69 ----
#if defined(__i386) && !defined(__amd64)
extern int __swapRP(int);
#endif
float
! erff(float x)
! {
int ix;
ix = *(int *)&x & ~0x80000000;
+
if (ix > 0x7f800000) /* x is NaN */
return (x * x);
+
return ((float)erf((double)x));
}
float
! erfcf(float x)
! {
float f;
int ix;
+
#if defined(__i386) && !defined(__amd64)
int rp;
#endif
ix = *(int *)&x & ~0x80000000;
+
if (ix > 0x7f800000) /* x is NaN */
return (x * x);
#if defined(__i386) && !defined(__amd64)
rp = __swapRP(fp_extended);