Print this page
11210 libm should be cstyle(1ONBLD) clean
*** 20,49 ****
*/
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include "libm.h"
extern void sincospi(double, double *, double *);
void
! sincospif(float x, float *s, float *c) {
double ds, dc;
#if defined(FPADD_TRAPS_INCOMPLETE_ON_NAN)
! if (isnanf(x))
*s = *c = x * x;
! else {
#endif
! sincospi((double) x, &ds, &dc);
! *s = (float) ds;
! *c = (float) dc;
#if defined(FPADD_TRAPS_INCOMPLETE_ON_NAN)
! }
#endif
}
--- 20,51 ----
*/
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
+
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include "libm.h"
extern void sincospi(double, double *, double *);
void
! sincospif(float x, float *s, float *c)
! {
double ds, dc;
#if defined(FPADD_TRAPS_INCOMPLETE_ON_NAN)
! if (isnanf(x)) {
*s = *c = x * x;
! } else {
#endif
! sincospi((double)x, &ds, &dc);
! *s = (float)ds;
! *c = (float)dc;
#if defined(FPADD_TRAPS_INCOMPLETE_ON_NAN)
! }
#endif
}