Print this page
5261 libm should stop using synonyms.h
5298 fabs is 0-sized, confuses dis(1) and others
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Approved by: Gordon Ross <gwr@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/i386/src/pow.s
          +++ new/usr/src/lib/libm/i386/src/pow.s
↓ open down ↓ 51 lines elided ↑ open up ↑
  52   52  / -inf ** +-y (except 0, NaN)           is -0 ** -+y (NO z flag)
  53   53  / x ** -1 is 1/x
  54   54  / x ** 2 is x*x
  55   55  / -x ** y (an integer) is (-1)**(y) * (+x)**(y)
  56   56  / x ** y (x negative & y not integer)   _SVID_libm_err
  57   57  / if x and y are finite and x**y = 0    _SVID_libm_err (underflow)
  58   58  / if x and y are finite and x**y = inf  _SVID_libm_err (overflow)
  59   59  
  60   60  #include "libm.h"
  61   61  LIBM_ANSI_PRAGMA_WEAK(pow,function)
  62      -#include "libm_synonyms.h"
  63   62  #include "libm_protos.h"
  64   63  #include "xpg6.h"
  65   64  
  66      -#undef fabs
  67      -
  68   65          .data
  69   66          .align  4
  70   67  negzero:
  71   68          .float  -0.0
  72   69  one:
  73   70          .float  1.0
  74   71  negone:
  75   72          .float  -1.0
  76   73  two:
  77   74          .float  2.0
↓ open down ↓ 396 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX