Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/m9x/fex_handler.h
          +++ new/usr/src/lib/libm/common/m9x/fex_handler.h
↓ open down ↓ 19 lines elided ↑ open up ↑
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  24   24   */
  25   25  /*
  26   26   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  27   27   * Use is subject to license terms.
  28   28   */
  29   29  
  30      -/* #include <sys/isa_defs.h> */
  31      -
  32   30  /* the following enums must match the bit positions in fenv.h */
  33   31  enum fex_exception {
  34   32          fex_inexact             = 0,
  35   33          fex_division    = 1,
  36   34          fex_underflow   = 2,
  37   35          fex_overflow    = 3,
  38   36          fex_inv_zdz             = 4,
  39   37          fex_inv_idi             = 5,
  40   38          fex_inv_isi             = 6,
  41   39          fex_inv_zmi             = 7,
↓ open down ↓ 16 lines elided ↑ open up ↑
  58   56  extern void __fex_mklog(ucontext_t *, char *, int, enum fex_exception,
  59   57          int, void *);
  60   58  
  61   59  /* system-dependent auxiliary functions */
  62   60  extern enum fex_exception __fex_get_invalid_type(siginfo_t *, ucontext_t *);
  63   61  extern void __fex_get_op(siginfo_t *, ucontext_t *, fex_info_t *);
  64   62  extern void __fex_st_result(siginfo_t *, ucontext_t *, fex_info_t *);
  65   63  
  66   64  /* inline templates and macros for accessing fp state */
  67   65  extern void __fenv_getfsr(unsigned long *);
  68      -extern void __fenv_setfsr(unsigned const long *);
       66 +extern void __fenv_setfsr(const unsigned long *);
  69   67  
  70   68  #if defined(__sparc)
  71   69  
  72   70  #define __fenv_get_rd(X)        ((X>>30)&0x3)
  73   71  #define __fenv_set_rd(X,Y)      X=(X&~0xc0000000ul)|((Y)<<30)
  74   72  
  75   73  #define __fenv_get_te(X)        ((X>>23)&0x1f)
  76   74  #define __fenv_set_te(X,Y)      X=(X&~0x0f800000ul)|((Y)<<23)
  77   75  
  78   76  #define __fenv_get_ex(X)        ((X>>5)&0x1f)
↓ open down ↓ 136 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX