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.
*/
*** 33,56 ****
#include <fenv.h>
#include <ucontext.h>
#include <thread.h>
#include "fex_handler.h"
! int fegetprec(void)
{
unsigned long fsr;
__fenv_getfsr(&fsr);
! return __fenv_get_rp(fsr);
}
! int fesetprec(int r)
{
unsigned long fsr;
if (r != FE_FLTPREC && r != FE_DBLPREC && r != FE_LDBLPREC)
! return 0;
__fenv_getfsr(&fsr);
__fenv_set_rp(fsr, r);
__fenv_setfsr(&fsr);
! return 1;
}
--- 34,60 ----
#include <fenv.h>
#include <ucontext.h>
#include <thread.h>
#include "fex_handler.h"
! int
! fegetprec(void)
{
unsigned long fsr;
__fenv_getfsr(&fsr);
! return (__fenv_get_rp(fsr));
}
! int
! fesetprec(int r)
{
unsigned long fsr;
if (r != FE_FLTPREC && r != FE_DBLPREC && r != FE_LDBLPREC)
! return (0);
!
__fenv_getfsr(&fsr);
__fenv_set_rp(fsr, r);
__fenv_setfsr(&fsr);
! return (1);
}