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/common/Q/floorl.c
          +++ new/usr/src/lib/libm/common/Q/floorl.c
↓ open down ↓ 27 lines elided ↑ open up ↑
  28   28   */
  29   29  
  30   30  /*
  31   31   * ceill(x)     return the biggest integral value below x
  32   32   * floorl(x)    return the least integral value above x
  33   33   *
  34   34   * NOTE: aintl(x), anintl(x), ceill(x), floorl(x), and rintl(x) return result
  35   35   * with the same sign as x's,  including 0.0.
  36   36   */
  37   37  
  38      -#pragma weak ceill = __ceill
  39      -#pragma weak floorl = __floorl
       38 +#pragma weak __ceill = ceill
       39 +#pragma weak __floorl = floorl
  40   40  
  41   41  #include "libm.h"
  42   42  #include "longdouble.h"
  43   43  
  44   44  static const long double qone = 1.0L;
  45   45  
  46   46  long double
  47   47  ceill(long double x) {
  48   48          long double t;
  49   49  
↓ open down ↓ 21 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX