Print this page
5261 libm should stop using synonyms.h

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/m9x/nearbyint.c
          +++ new/usr/src/lib/libm/common/m9x/nearbyint.c
↓ open down ↓ 31 lines elided ↑ open up ↑
  32   32  /*
  33   33   * nearbyint(x) returns the nearest fp integer to x in the direction
  34   34   * corresponding to the current rounding direction without raising
  35   35   * the inexact exception.
  36   36   *
  37   37   * nearbyint(x) is x unchanged if x is +/-0 or +/-inf.  If x is NaN,
  38   38   * nearbyint(x) is also NaN.
  39   39   */
  40   40  
  41   41  #include "libm.h"
  42      -#include "fenv_synonyms.h"
  43   42  #include <fenv.h>
  44   43  
  45   44  double
  46   45  __nearbyint(double x) {
  47   46          union {
  48   47                  unsigned i[2];
  49   48                  double d;
  50   49          } xx;
  51   50          unsigned hx, sx, i, frac;
  52   51          int rm, j;
↓ open down ↓ 68 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX