Print this page
5261 libm should stop using synonyms.h


  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  24  */
  25 /*
  26  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  27  * Use is subject to license terms.
  28  */
  29 
  30 #pragma weak fegetround = __fegetround
  31 #pragma weak fesetround = __fesetround
  32 
  33 #pragma weak fegetround96 = __fegetround
  34 #pragma weak fesetround96 = __fesetround96
  35 
  36 #include "fenv_synonyms.h"
  37 #include <fenv.h>
  38 #include <ucontext.h>
  39 #include <thread.h>
  40 #include "fex_handler.h"
  41 #include "fenv_inlines.h"
  42 
  43 #if defined(__i386) && !defined(__amd64)
  44 #include <float.h>
  45 #endif
  46 
  47 int fegetround(void)
  48 {
  49         unsigned long   fsr;
  50 
  51         __fenv_getfsr(&fsr);
  52         return (int)__fenv_get_rd(fsr);
  53 }
  54 
  55 int fesetround(int r)
  56 {




  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  24  */
  25 /*
  26  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  27  * Use is subject to license terms.
  28  */
  29 
  30 #pragma weak __fegetround = fegetround
  31 #pragma weak __fesetround = fesetround
  32 
  33 #pragma weak fegetround96 = __fegetround

  34 

  35 #include <fenv.h>
  36 #include <ucontext.h>
  37 #include <thread.h>
  38 #include "fex_handler.h"
  39 #include "fenv_inlines.h"
  40 
  41 #if defined(__i386) && !defined(__amd64)
  42 #include <float.h>
  43 #endif
  44 
  45 int fegetround(void)
  46 {
  47         unsigned long   fsr;
  48 
  49         __fenv_getfsr(&fsr);
  50         return (int)__fenv_get_rd(fsr);
  51 }
  52 
  53 int fesetround(int r)
  54 {