Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/nan.h
          +++ new/usr/src/head/nan.h
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*      Copyright (c) 1988 AT&T */
  23   23  /*        All Rights Reserved   */
  24   24  
  25   25  
  26   26  /*
       27 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       28 + *
  27   29   * Copyright (c) 1996, by Sun Microsystems, Inc.
  28   30   * All Rights Reserved
  29   31   */
  30   32  
  31   33  #ifndef _NAN_H
  32   34  #define _NAN_H
  33   35  
  34      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  35      -
  36   36  /*
  37   37   * Handling of Not_a_Number's (only in IEEE floating-point standard)
  38   38   */
  39   39  
  40   40  #include <sys/isa_defs.h>
  41   41  #include <values.h>
  42   42  
  43   43  #ifdef  __cplusplus
  44   44  extern "C" {
  45   45  #endif
↓ open down ↓ 67 lines elided ↑ open up ↑
 113  113  #define IsPosNAN(X)     (((dnan *)&(X))->nan_parts.sign == 0)
 114  114  
 115  115  #define IsNegNAN(X)     (((dnan *)&(X))->nan_parts.sign == 1)
 116  116  
 117  117  /*
 118  118   * GETNaNPC gets the leftmost 32 bits of the fraction part
 119  119   */
 120  120  #define GETNaNPC(dval)  (((dnan *)&(dval))->inf_parts.bits << 12 | \
 121  121                              ((dnan *)&(dval))->nan_parts.fraction_low >> 20)
 122  122  
 123      -#if defined(__STDC__)
 124  123  #define KILLFPE()       (void) _kill(_getpid(), 8)
 125      -#else
 126      -#define KILLFPE()       (void) kill(getpid(), 8)
 127      -#endif
 128  124  #define NaN(X)          (((dnan *)&(X))->nan_parts.exponent == 0x7ff)
 129  125  #define KILLNaN(X)      if (NaN(X)) KILLFPE()
 130  126  
 131  127  #else   /* defined(_IEEE_754) */
 132  128  /* #error is strictly ansi-C, but works as well as anything for K&R systems. */
 133  129  #error ISA not supported
 134  130  #endif  /* defined(_IEEE_754) */
 135  131  
 136  132  #ifdef  __cplusplus
 137  133  }
 138  134  #endif
 139  135  
 140  136  #endif  /* _NAN_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX