Print this page
11210 libm should be cstyle(1ONBLD) clean
*** 20,45 ****
*/
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma weak __remainderf = remainderf
#include "libm.h"
float
! remainderf(float x, float y) {
if (isnanf(x) || isnanf(y))
return (x * y);
! if (y == 0.0f || (*(int *) &x & ~0x80000000) == 0x7f800000) {
/* y is 0 or x is infinite; raise invalid and return NaN */
y = 0.0f;
! *(int *) &x = 0x7f800000;
return (x * y);
}
! return ((float) remainder((double) x, (double) y));
}
--- 20,49 ----
*/
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
+
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma weak __remainderf = remainderf
#include "libm.h"
float
! remainderf(float x, float y)
! {
if (isnanf(x) || isnanf(y))
return (x * y);
!
! if (y == 0.0f || (*(int *)&x & ~0x80000000) == 0x7f800000) {
/* y is 0 or x is infinite; raise invalid and return NaN */
y = 0.0f;
! *(int *)&x = 0x7f800000;
return (x * y);
}
!
! return ((float)remainder((double)x, (double)y));
}