Print this page
5261 libm should stop using synonyms.h

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libmvec/common/__vsqrt.c
          +++ new/usr/src/lib/libmvec/common/__vsqrt.c
↓ 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 "libm_synonyms.h"
  31   30  #include "libm_inlines.h"
  32   31  
  33   32  #ifdef __RESTRICT
  34   33  #define restrict _Restrict
  35   34  #else
  36   35  #define restrict
  37   36  #endif
  38   37  
  39      -#define sqrt __sqrt
  40      -
  41   38  extern double sqrt(double);
  42   39  
  43   40  void
  44   41  __vsqrt(int n, double * restrict x, int stridex, double * restrict y, int stridey)
  45   42  {
  46   43          for(; n > 0 ; n--)
  47   44          {
  48   45                  *y = sqrt(*x);
  49   46                  x += stridex;
  50   47                  y += stridey;
  51   48          }
  52   49  }
  53      -
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX