Print this page
11210 libm should be cstyle(1ONBLD) clean
@@ -20,10 +20,11 @@
*/
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
+
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -33,24 +34,27 @@
#include <fenv.h>
#include <ucontext.h>
#include <thread.h>
#include "fex_handler.h"
-int fegetprec(void)
+int
+fegetprec(void)
{
unsigned long fsr;
__fenv_getfsr(&fsr);
- return __fenv_get_rp(fsr);
+ return (__fenv_get_rp(fsr));
}
-int fesetprec(int r)
+int
+fesetprec(int r)
{
unsigned long fsr;
if (r != FE_FLTPREC && r != FE_DBLPREC && r != FE_LDBLPREC)
- return 0;
+ return (0);
+
__fenv_getfsr(&fsr);
__fenv_set_rp(fsr, r);
__fenv_setfsr(&fsr);
- return 1;
+ return (1);
}