mux/src/crypt/ufc-crypt.h

Go to the documentation of this file.
00001 /*
00002  * UFC-crypt: ultra fast crypt(3) implementation
00003  *
00004  * Copyright (C) 1991, 1992, 1993, 1996, 1997 Free Software Foundation, Inc.
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Library General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Library General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Library General Public
00017  * License along with this library; see the file COPYING.LIB.  If not,
00018  * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00019  * Boston, MA 02111-1307, USA.
00020  *
00021  * @(#)ufc-crypt.h  1.27 12/20/96
00022  *
00023  * Definitions of datatypes
00024  *
00025  */
00026 
00027 /*
00028  * Requirements for datatypes:
00029  *
00030  * A datatype 'ufc_long' of at least 32 bit
00031  * *and*
00032  *   A type 'long32' of exactly 32 bits (_UFC_32_)
00033  *   *or*
00034  *   A type 'long64' of exactly 64 bits (_UFC_64_)
00035  *
00036  * 'int' is assumed to be at least 8 bit
00037  */
00038 
00039 /*
00040  * #ifdef's for various architectures
00041  */
00042 
00043 #ifdef cray
00044 /* thanks to <hutton@opus.sdsc.edu> (Tom Hutton)  for testing */
00045 typedef unsigned long ufc_long;
00046 typedef unsigned long long64;
00047 #define _UFC_64_
00048 #endif
00049 
00050 #if defined convex || defined __convexc__
00051 /* thanks to pcl@convex.oxford.ac.uk (Paul Leyland) for testing */
00052 typedef unsigned long ufc_long;
00053 typedef long long     long64;
00054 #define _UFC_64_
00055 #endif
00056 
00057 #ifdef __sgi
00058 #if _MIPS_SZLONG == 64
00059 typedef unsigned long ufc_long;
00060 typedef long     long64;
00061 #define _UFC_64_
00062 #else
00063 typedef unsigned long ufc_long;
00064 typedef int     long32;
00065 #define _UFC_32_
00066 #endif
00067 #endif
00068 
00069 /*
00070  * Thanks to <iglesias@draco.acs.uci.edu> (Mike Iglesias)
00071  */
00072 
00073 #ifdef __alpha
00074 typedef unsigned long ufc_long;
00075 typedef unsigned long long64;
00076 #define _UFC_64_
00077 #endif
00078 
00079 #if defined __sparc__ && defined __arch64__
00080 typedef unsigned long ufc_long;
00081 typedef unsigned long long64;
00082 #define _UFC_64_
00083 #endif
00084 
00085 /*
00086  * For debugging 64 bit code etc with 'gcc'
00087  */
00088 
00089 #ifdef GCC3232
00090 typedef unsigned long ufc_long;
00091 typedef unsigned long long32;
00092 #define _UFC_32_
00093 #endif
00094 
00095 #ifdef GCC3264
00096 typedef unsigned long ufc_long;
00097 typedef long long     long64;
00098 #define _UFC_64_
00099 #endif
00100 
00101 #ifdef GCC6432
00102 typedef long long ufc_long;
00103 typedef unsigned long long32;
00104 #define _UFC_32_
00105 #endif
00106 
00107 #ifdef GCC6464
00108 typedef long long     ufc_long;
00109 typedef long long     long64;
00110 #define _UFC_64_
00111 #endif
00112 
00113 /*
00114  * Catch all for 99.95% of all UNIX machines
00115  */
00116 
00117 #ifndef _UFC_64_
00118 #ifndef _UFC_32_
00119 #define _UFC_32_
00120 typedef unsigned long ufc_long;
00121 typedef unsigned long long32;
00122 #endif
00123 #endif

Generated on Mon May 28 04:40:08 2007 for MUX by  doxygen 1.4.7