Print this page
5261 libm should stop using synonyms.h

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libmvec/common/__vrhypotf.c
          +++ new/usr/src/lib/libmvec/common/__vrhypotf.c
↓ open down ↓ 20 lines elided ↑ open up ↑
  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   30  #include <sys/isa_defs.h>
  31      -#include "libm_synonyms.h"
  32   31  #include "libm_inlines.h"
  33   32  
  34   33  #ifdef _LITTLE_ENDIAN
  35   34  #define HI(x)   *(1+(int*)x)
  36   35  #define LO(x)   *(unsigned*)x
  37   36  #else
  38   37  #define HI(x)   *(int*)x
  39   38  #define LO(x)   *(1+(unsigned*)x)
  40   39  #endif
  41   40  
↓ open down ↓ 170 lines elided ↑ open up ↑
 212  211   5.3333333333333332593e-01, 1.8257418583505535814e-01,
 213  212   5.2892561983471075848e-01, 1.8181818181818182323e-01,
 214  213   5.2459016393442625681e-01, 1.8107149208503706128e-01,
 215  214   5.2032520325203257539e-01, 1.8033392693348646030e-01,
 216  215   5.1612903225806450180e-01, 1.7960530202677491007e-01,
 217  216   5.1200000000000001066e-01, 1.7888543819998317663e-01,
 218  217   5.0793650793650790831e-01, 1.7817416127494958844e-01,
 219  218   5.0393700787401574104e-01, 1.7747130188322274291e-01,
 220  219  };
 221  220  
 222      -#define fabsf   __fabsf
 223      -
 224  221  extern float fabsf(float);
 225  222  
 226  223  static const double
 227  224          A0 = 9.99999997962321453275e-01,
 228  225          A1 =-4.99999998166077580600e-01,
 229  226          A2 = 3.75066768969515586277e-01,
 230  227          A3 =-3.12560092408808548438e-01;
 231  228  
 232  229  static void
 233  230  __vrhypotf_n(int n, float * restrict px, int stridex, float * restrict py,
↓ open down ↓ 221 lines elided ↑ open up ↑
 455  452                  xx0 = ((double*)((char*)__vlibm_TBL_rhypotf + si0))[0];
 456  453  
 457  454                  xx0 = (hyp0 - h_hi0) * xx0;
 458  455                  res0 = ((double*)((char*)__vlibm_TBL_rhypotf + si0))[1];
 459  456                  res0 *= (((A3 * xx0 + A2) * xx0 + A1) * xx0 + A0);
 460  457                  res0 *= dbase0;
 461  458                  *pz = res0;
 462  459                  pz += stridez;
 463  460          }
 464  461  }
 465      -
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX