Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/R/sincospif.c
          +++ new/usr/src/lib/libm/common/R/sincospif.c
↓ open down ↓ 23 lines elided ↑ open up ↑
  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   30  #pragma weak sincospif = __sincospif
  31   31  
  32   32  #include "libm.h"
  33   33  
  34      -void sincospi(double x, double *s, double *c);
       34 +extern void sincospi(double, double *, double *);
  35   35  
  36   36  void
  37   37  sincospif(float x, float *s, float *c) {
  38   38          double ds, dc;
  39   39  
  40   40  #if defined(FPADD_TRAPS_INCOMPLETE_ON_NAN)
  41   41          if (isnanf(x))
  42   42                  *s = *c = x * x;
  43   43          else {
  44   44  #endif
  45   45          sincospi((double) x, &ds, &dc);
  46   46          *s = (float) ds;
  47   47          *c = (float) dc;
  48   48  #if defined(FPADD_TRAPS_INCOMPLETE_ON_NAN)
  49   49          }
  50   50  #endif
  51   51  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX