Print this page
11210 libm should be cstyle(1ONBLD) clean
*** 20,42 ****
*/
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma weak __log2f = log2f
#include "libm.h"
float
! log2f(float x) {
#if defined(FPADD_TRAPS_INCOMPLETE_ON_NAN)
if (isnanf(x))
return (x * x);
else
#endif
! return ((float) log2((double) x));
}
--- 20,44 ----
*/
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
+
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma weak __log2f = log2f
#include "libm.h"
float
! log2f(float x)
! {
#if defined(FPADD_TRAPS_INCOMPLETE_ON_NAN)
if (isnanf(x))
return (x * x);
else
#endif
! return ((float)log2((double)x));
}