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/isnanl.s
          +++ new/usr/src/lib/libm/i386/src/isnanl.s
↓ open down ↓ 22 lines elided ↑ open up ↑
  23   23   */
  24   24  /*
  25   25   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  26   26   * Use is subject to license terms.
  27   27   */
  28   28  
  29   29          .file "isnanl.s"
  30   30  
  31   31  #include "libm.h"
  32   32  LIBM_ANSI_PRAGMA_WEAK(isnanl,function)
  33      -#include "libm_synonyms.h"
  34   33  
  35   34          ENTRY(isnanl)
  36   35          movl    12(%esp),%eax           / ax <-- sign bit and exp
  37   36          andl    $0x00007fff,%eax
  38   37          jz      .not_nan                / jump if exp is all 0
  39   38          xorl    $0x00007fff,%eax
  40   39          jz      .nan_or_inf             / jump if exp is all 1
  41   40          testl   $0x80000000,8(%esp)
  42   41          jz      .got_nan                / jump if leading bit is 0
  43   42          movl    $0,%eax
↓ open down ↓ 13 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX