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/amd64/src/rndintl.s
          +++ new/usr/src/lib/libm/amd64/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 2005 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      -
  38      -#undef fabs
  39   32  
  40   33          ENTRY(aintl)
  41   34          movq    %rsp,%rax
  42   35          subq    $16,%rsp
  43   36          fstcw   -8(%rax)
  44   37          fldt    8(%rax)
  45   38          movw    -8(%rax),%cx
  46   39          orw     $0x0c00,%cx
  47   40          movw    %cx,-4(%rax)
  48   41          fldcw   -4(%rax)                / set RD = to_zero
↓ open down ↓ 99 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX