Print this page
11210 libm should be cstyle(1ONBLD) clean
*** 20,29 ****
--- 20,30 ----
*/
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
+
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
*** 34,53 ****
#endif
#include "libm.h"
long long
! llrintf(float x) {
/*
* Note: The following code works on x86 (in the default rounding
* precision mode), but one should just use the fistpll instruction
* instead.
*/
union {
unsigned i;
float f;
} xx, yy;
unsigned hx;
xx.f = x;
hx = xx.i & ~0x80000000;
--- 35,56 ----
#endif
#include "libm.h"
long long
! llrintf(float x)
! {
/*
* Note: The following code works on x86 (in the default rounding
* precision mode), but one should just use the fistpll instruction
* instead.
*/
union {
unsigned i;
float f;
} xx, yy;
+
unsigned hx;
xx.f = x;
hx = xx.i & ~0x80000000;
*** 65,75 ****
/*
* on LP32 architectures, we can just convert x to a 32-bit
* integer and sign-extend it
*/
! return ((long) x);
}
/* now x is nan, inf, or integral */
! return ((long long) x);
}
--- 68,78 ----
/*
* on LP32 architectures, we can just convert x to a 32-bit
* integer and sign-extend it
*/
! return ((long)x);
}
/* now x is nan, inf, or integral */
! return ((long long)x);
}