home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / com / utils / elm / sources / ufc_cryp.h < prev    next >
C/C++ Source or Header  |  1992-09-14  |  3KB  |  107 lines

  1. /*
  2.  * UFC-crypt: ultra fast crypt(3) implementation
  3.  *
  4.  * Copyright (C) 1991, 1992, Free Software Foundation, Inc.
  5.  *
  6.  * This library is free software; you can redistribute it and/or
  7.  * modify it under the terms of the GNU Library General Public
  8.  * License as published by the Free Software Foundation; either
  9.  * version 2 of the License, or (at your option) any later version.
  10.  *
  11.  * This library is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14.  * Library General Public License for more details.
  15.  
  16.  * You should have received a copy of the GNU Library General Public
  17.  * License along with this library; if not, write to the Free
  18.  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  *
  20.  * @(#)ufc-crypt.h    1.15 04/13/92
  21.  *
  22.  * Definitions of datatypes
  23.  *
  24.  */
  25.  
  26. /*
  27.  * Requirements for datatypes:
  28.  *
  29.  * A datatype 'ufc_long' of at least 32 bit
  30.  * *and*
  31.  *   A type 'long32' of exactly 32 bits (_UFC_32_)
  32.  *   *or*
  33.  *   A type 'long64' of exactly 64 bits (_UFC_64_)
  34.  *
  35.  * 'int' is assumed to be at least 8 bit
  36.  */
  37.  
  38. /*
  39.  * #ifdef's for various architectures
  40.  */
  41.  
  42. #ifdef cray
  43. /* thanks to <hutton@opus.sdsc.edu> (Tom Hutton)  for testing */
  44. typedef unsigned long ufc_long;
  45. typedef unsigned long long64;
  46. #define _UFC_64_
  47. #endif
  48.  
  49. #ifdef convex
  50. /* thanks to pcl@convex.oxford.ac.uk (Paul Leyland) for testing */
  51. typedef unsigned long ufc_long;
  52. typedef long long     long64;
  53. #define _UFC_64_
  54. #endif
  55.  
  56. #ifdef ksr
  57. /*
  58.  * Note - the KSR machine does not define a unique symbol
  59.  * which we can check. So you MUST add '-Dksr' to your Makefile.
  60.  * Thanks to lijewski@theory.tc.cornell.edu (Mike Lijewski) for
  61.  * the patch.
  62.  */
  63. typedef unsigned long ufc_long;
  64. typedef unsigned long long64;
  65. #define _UFC_64_
  66. #endif
  67.  
  68. /*
  69.  * For debugging 64 bit code etc with 'gcc'
  70.  */
  71.  
  72. #ifdef GCC3232
  73. typedef unsigned long ufc_long;
  74. typedef unsigned long long32;
  75. #define _UFC_32_
  76. #endif
  77.  
  78. #ifdef GCC3264
  79. typedef unsigned long ufc_long;
  80. typedef long long     long64;
  81. #define _UFC_64_
  82. #endif
  83.  
  84. #ifdef GCC6432
  85. typedef long long ufc_long;
  86. typedef unsigned long long32;
  87. #define _UFC_32_
  88. #endif
  89.  
  90. #ifdef GCC6464
  91. typedef long long     ufc_long;
  92. typedef long long     long64;
  93. #define _UFC_64_
  94. #endif
  95.  
  96. /*
  97.  * Catch all for 99.95% of all UNIX machines
  98.  */
  99.  
  100. #ifndef _UFC_64_
  101. #ifndef _UFC_32_
  102. #define _UFC_32_
  103. typedef unsigned long ufc_long;
  104. typedef unsigned long long32;
  105. #endif
  106. #endif
  107.