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/rndintl.s
          +++ new/usr/src/lib/libm/i386/src/rndintl.s
↓ open down ↓ 21 lines elided ↑ open up ↑
  22   22   * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  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 "rndintl.s"
  30   30  
  31   31  #include "libm.h"
  32      -LIBM_ANSI_PRAGMA_WEAK(aintl,function)
  33      -LIBM_ANSI_PRAGMA_WEAK(irintl,function)
  34      -LIBM_ANSI_PRAGMA_WEAK(anintl,function)
  35      -LIBM_ANSI_PRAGMA_WEAK(nintl,function)
  36      -#include "libm_synonyms.h"
  37      -#undef fabs
  38   32  
  39   33          ENTRY(aintl)
  40   34          movl    %esp,%eax
  41   35          subl    $8,%esp
  42   36          fstcw   -8(%eax)
  43   37          fldt    4(%eax)
  44   38          movw    -8(%eax),%cx
  45   39          orw     $0x0c00,%cx
  46   40          movw    %cx,-4(%eax)
  47   41          fldcw   -4(%eax)                / set RD = to_zero
↓ open down ↓ 103 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX