Print this page
11210 libm should be cstyle(1ONBLD) clean

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/m9x/fma.h
          +++ new/usr/src/lib/libm/common/m9x/fma.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  24   24   */
       25 +
  25   26  /*
  26   27   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  27   28   * Use is subject to license terms.
  28   29   */
  29   30  
  30   31  #ifndef _FMA_H
  31   32  #define _FMA_H
  32   33  
  33   34  #ifdef __cplusplus
  34   35  extern "C" {
  35   36  #endif
  36   37  
  37   38  #ifdef __sparc
  38      -
  39   39  /*
  40   40   * Common definitions for fma routines (SPARC)
  41   41   */
  42   42  
  43   43  /* fsr fields */
  44   44  
  45   45  /* current exception bits */
  46   46  #define FSR_NXC         0x1
  47   47  #define FSR_DZC         0x2
  48   48  #define FSR_UFC         0x4
  49   49  #define FSR_OFC         0x8
  50   50  #define FSR_NVC         0x10
  51      -#define FSR_CEXC        0x1f    /* mask for all cexc bits */
       51 +#define FSR_CEXC        0x1f            /* mask for all cexc bits */
  52   52  
  53   53  /* accrued exception bits */
  54   54  #define FSR_NXA         0x20
  55   55  #define FSR_DZA         0x40
  56   56  #define FSR_UFA         0x80
  57   57  #define FSR_OFA         0x100
  58   58  #define FSR_NVA         0x200
  59   59  
  60   60  /* trap enable bits */
  61   61  #define FSR_NXM         0x00800000
↓ open down ↓ 4 lines elided ↑ open up ↑
  66   66  
  67   67  /* rounding directions (right-adjusted) */
  68   68  #define FSR_RN          0
  69   69  #define FSR_RZ          1
  70   70  #define FSR_RP          2
  71   71  #define FSR_RM          3
  72   72  
  73   73  /* inline templates */
  74   74  extern void __fenv_getfsr32(unsigned int *);
  75   75  extern void __fenv_setfsr32(const unsigned int *);
  76      -
  77   76  #endif /* __sparc */
  78   77  
  79      -
  80   78  #if defined(__x86)
  81      -
  82   79  /*
  83   80   * Common definitions for fma routines (x86)
  84   81   */
  85   82  
  86   83  /* control and status word fields */
  87   84  
  88   85  /* exception flags */
  89   86  #define FSW_NV          0x1
  90   87  #define FSW_DN          0x2
  91   88  #define FSW_DZ          0x4
↓ open down ↓ 1 lines elided ↑ open up ↑
  93   90  #define FSW_UF          0x10
  94   91  #define FSW_NX          0x20
  95   92  
  96   93  /* exception masks */
  97   94  #define FCW_NVM         0x00010000
  98   95  #define FCW_DNM         0x00020000
  99   96  #define FCW_DZM         0x00040000
 100   97  #define FCW_OFM         0x00080000
 101   98  #define FCW_UFM         0x00100000
 102   99  #define FCW_NXM         0x00200000
 103      -#define FCW_ALLM        0x003f0000
      100 +#define FCW_ALLM        0x003f0000
 104  101  
 105  102  /* rounding directions */
 106  103  #define FCW_RN          0x00000000
 107  104  #define FCW_RM          0x04000000
 108  105  #define FCW_RP          0x08000000
 109  106  #define FCW_RZ          0x0c000000
 110  107  
 111  108  /* rounding precisions */
 112      -#define FCW_P24         0x00000000
 113      -#define FCW_P53         0x02000000
 114      -#define FCW_P64         0x03000000
      109 +#define FCW_P24         0x00000000
      110 +#define FCW_P53         0x02000000
      111 +#define FCW_P64         0x03000000
 115  112  
 116  113  /* inline templates */
 117  114  extern void __fenv_getcwsw(unsigned int *);
 118  115  extern void __fenv_setcwsw(const unsigned int *);
 119      -
 120  116  #endif /* __x86 */
 121  117  
 122  118  #ifdef __cplusplus
 123  119  }
 124  120  #endif
 125      -
 126      -#endif  /* _FMA_H */
      121 +#endif /* _FMA_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX