Print this page
6436 156 lint errors in common/crypto/edonr/edonr.c

Split Close
Expand all
Collapse all
          --- old/usr/src/common/crypto/edonr/edonr_byteorder.h
          +++ new/usr/src/common/crypto/edonr/edonr_byteorder.h
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   * fields enclosed by brackets "[]" replaced with your own identifying
  19   19   * information: Portions Copyright [yyyy] [name of copyright owner]
  20   20   *
  21   21   * CDDL HEADER END
  22   22   *
  23   23   * Copyright (C) 2009, 2010, Jorn Amundsen <jorn.amundsen@ntnu.no>
  24   24   *
  25   25   * C header file to determine compile machine byte order. Take care when cross
  26   26   * compiling.
  27   27   *
  28      - * $Id: byteorder.h 517 2013-02-17 20:34:39Z joern $
  29   28   */
  30   29  /*
  31   30   * Portions copyright (c) 2013, Saso Kiselkov, All rights reserved
       31 + * Copyright 2016 Gary Mills
  32   32   */
  33   33  
  34   34  #ifndef _CRYPTO_EDONR_BYTEORDER_H
  35   35  #define _CRYPTO_EDONR_BYTEORDER_H
  36   36  
  37   37  #if defined(__linux)
  38   38  #include <endian.h>
  39   39  #else
  40   40  #include <sys/param.h>
  41   41  #endif
↓ open down ↓ 85 lines elided ↑ open up ↑
 127  127  #define ld_swap32(s, d) aix_ld_swap32(s, d)
 128  128  #define st_swap32(s, d) aix_st_swap32(s, d)
 129  129  #define ld_swap64(s, d) aix_ld_swap64(s, d)
 130  130  #define st_swap64(s, d) aix_st_swap64(s, d)
 131  131  #endif /* __PPC__ || _ARCH_PPC */
 132  132  
 133  133  #if defined(__sparc)
 134  134  #if !defined(__arch64__) && !defined(__sparcv8) && defined(__sparcv9)
 135  135  #define __arch64__
 136  136  #endif
 137      -#if defined(__GNUC__) || (defined(__SUNPRO_C) && __SUNPRO_C > 0x590)
 138      -/* need Sun Studio C 5.10 and above for GNU inline assembly */
      137 +#if defined(__GNUC__) || (defined(__SUNPRO_C) && __SUNPRO_C > 0x590 && \
      138 +        !defined(__lint))
      139 +/* need Sun Studio C 5.10 and above for GNU inline assembly, but not lint */
 139  140  #if defined(__arch64__)
 140  141  #define sparc_ld_swap64(s64, d64)                                       \
 141  142          __asm__("ldxa [%1]0x88,%0" : "=r"(d64) : "r"(s64))
 142  143  #define sparc_st_swap64(s64, d64)                                       \
 143  144          __asm__ volatile("stxa %0,[%1]0x88" : : "r"(s64), "r"(d64))
 144  145  #define st_swap64(s, d) sparc_st_swap64(s, d)
 145  146  #else
 146  147  #define sparc_ld_swap64(s64, d64)                                       \
 147  148  {                                                                       \
 148  149          uint32_t *s4, h, l;                                             \
↓ open down ↓ 71 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX