Print this page
5261 libm should stop using synonyms.h

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/C/logb.c
          +++ new/usr/src/lib/libm/common/C/logb.c
↓ open down ↓ 19 lines elided ↑ open up ↑
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  24   24   */
  25   25  /*
  26   26   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  27   27   * Use is subject to license terms.
  28   28   */
  29   29  
  30      -#pragma weak logb = __logb
  31      -#pragma weak _logb = __logb
       30 +#pragma weak __logb = logb
       31 +#pragma weak _logb = logb
  32   32  
  33   33  #include "libm.h"
  34   34  #include "xpg6.h"       /* __xpg6 */
  35   35  #define _C99SUSv3_logb  _C99SUSv3_logb_subnormal_is_like_ilogb
  36   36  
  37   37  #if defined(__x86)
  38   38  static const double two52 = 4503599627370496.0;
  39   39  #else
  40   40  /*
  41   41   * v: high part of a non-zero subnormal |x|; w: low part of |x|
↓ open down ↓ 42 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX