Print this page
5261 libm should stop using synonyms.h

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/i386/src/isnan.s
          +++ new/usr/src/lib/libm/i386/src/isnan.s
↓ open down ↓ 31 lines elided ↑ open up ↑
  32   32  LIBM_ANSI_PRAGMA_WEAK(isnan,function)
  33   33          .weak _isnan
  34   34          .type _isnan,@function
  35   35  _isnan  = __isnan
  36   36          .weak _isnand
  37   37          .type _isnand,@function
  38   38  _isnand = __isnan
  39   39          .weak isnand
  40   40          .type isnand,@function
  41   41  isnand  = __isnan
  42      -#include "libm_synonyms.h"
  43   42  
  44   43          ENTRY(isnan)
  45   44          movl    8(%esp),%eax            / eax <-- hi_32(x)
  46   45          andl    $0x7fffffff,%eax        / eax <-- hi_32(abs(x))
  47   46          subl    $0x7ff00000,%eax        / weed out finite values
  48   47          jae     .nan_or_inf             / no jump if arg. is finite
  49   48          movl    $0,%eax                 / ansi needs (eax) = 0
  50   49          ret
  51   50  .nan_or_inf:
  52   51          ja      .got_nan                / no jump if arg. may be infinite;
↓ open down ↓ 12 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX