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/powf.s
          +++ new/usr/src/lib/libm/i386/src/powf.s
↓ open down ↓ 50 lines elided ↑ open up ↑
  51   51  / +inf ** +y (except 0, NaN)            is +inf
  52   52  / +inf ** -y (except 0, NaN)            is +0
  53   53  / -inf ** +-y (except 0, NaN)           is -0 ** -+y (NO z flag)
  54   54  / x ** -1 is 1/x
  55   55  / x ** 2 is x*x
  56   56  / -x ** y (an integer) is (-1)**(y) * (+x)**(y)
  57   57  / x ** y (x negative & y not integer) is NaN (i flag)
  58   58  
  59   59  #include "libm.h"
  60   60  LIBM_ANSI_PRAGMA_WEAK(powf,function)
  61      -#include "libm_synonyms.h"
  62   61  #include "libm_protos.h"
  63   62  #include "xpg6.h"
  64   63  
  65      -#undef fabs
  66      -
  67   64          .data
  68   65          .align  4
  69   66  negzero:
  70   67          .float  -0.0
  71   68  half:
  72   69          .float  0.5
  73   70  one:
  74   71          .float  1.0
  75   72  negone:
  76   73          .float  -1.0
↓ open down ↓ 367 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX