Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/values.h
          +++ new/usr/src/head/values.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 2004 Sun Microsystems, Inc.  All rights reserved.
  28   30   * Use is subject to license terms.
  29   31   */
  30   32  
  31   33  #ifndef _VALUES_H
  32   34  #define _VALUES_H
  33   35  
  34      -#pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.33  */
  35      -
  36   36  #include <sys/isa_defs.h>
  37   37  
  38   38  #ifdef  __cplusplus
  39   39  extern "C" {
  40   40  #endif
  41   41  
  42   42  /*
  43   43   * These values work with any binary representation of integers
  44   44   * where the high-order bit contains the sign.
  45   45   */
  46   46  
  47   47  /* a number used normally for size of a shift */
  48   48  #define BITSPERBYTE     8
  49   49  
  50   50  #define BITS(type)      (BITSPERBYTE * (long)sizeof (type))
  51   51  
  52   52  /* short, regular and long ints with only the high-order bit turned on */
  53   53  #define HIBITS  ((short)(1 << (BITS(short) - 1)))
  54   54  
  55      -#if defined(__STDC__)
  56      -
  57   55  #define HIBITI  (1U << (BITS(int) - 1))
  58   56  #define HIBITL  (1UL << (BITS(long) - 1))
  59   57  
  60      -#else
  61      -
  62      -#define HIBITI  ((unsigned)1 << (BITS(int) - 1))
  63      -#define HIBITL  (1L << (BITS(long) - 1))
  64      -
  65      -#endif
  66      -
  67   58  /* largest short, regular and long int */
  68   59  #define MAXSHORT        ((short)~HIBITS)
  69   60  #define MAXINT          ((int)(~HIBITI))
  70   61  #define MAXLONG         ((long)(~HIBITL))
  71   62  
  72   63  /*
  73   64   * various values that describe the binary floating-point representation
  74   65   * _EXPBASE     - the exponent base
  75   66   * DMAXEXP      - the maximum exponent of a double (as returned by frexp())
  76   67   * FMAXEXP      - the maximum exponent of a float  (as returned by frexp())
↓ open down ↓ 75 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX