source: trunk/gsdl/packages/wincrypt/ufc.h@ 1002

Last change on this file since 1002 was 1002, checked in by sjboddie, 24 years ago

added wincrypt to cvs

  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
1/*
2 * UFC-crypt: ultra fast crypt(3) implementation
3 *
4 * Copyright (C) 1991, 1992, 1993, 1996, 1997 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; see the file COPYING.LIB. If not,
18 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
20 *
21 * @(#)ufc-crypt.h 1.27 12/20/96
22 *
23 * Definitions of datatypes
24 *
25 */
26
27#ifndef __GNUC__
28#define __const
29#ifndef __STDC__
30#define const
31#define volatile
32#endif
33#endif
34
35/*
36 * Requirements for datatypes:
37 *
38 * A datatype 'ufc_long' of at least 32 bit
39 * *and*
40 * A type 'long32' of exactly 32 bits (_UFC_32_)
41 * *or*
42 * A type 'long64' of exactly 64 bits (_UFC_64_)
43 *
44 * 'int' is assumed to be at least 8 bit
45 */
46
47/*
48 * #ifdef's for various architectures
49 */
50
51#ifdef cray
52/* thanks to <[email protected]> (Tom Hutton) for testing */
53typedef unsigned long ufc_long;
54typedef unsigned long long64;
55#define _UFC_64_
56#endif
57
58#if defined convex || defined __convexc__
59/* thanks to [email protected] (Paul Leyland) for testing */
60typedef unsigned long ufc_long;
61typedef long long long64;
62#define _UFC_64_
63#endif
64
65#ifdef __sgi
66#if _MIPS_SZLONG == 64
67typedef unsigned long ufc_long;
68typedef long long64;
69#define _UFC_64_
70#else
71typedef unsigned long ufc_long;
72typedef int long32;
73#define _UFC_32_
74#endif
75#endif
76
77/*
78 * Thanks to <[email protected]> (Mike Iglesias)
79 */
80
81#ifdef __alpha
82typedef unsigned long ufc_long;
83typedef unsigned long long64;
84#define _UFC_64_
85#endif
86
87#if defined __sparc__ && defined __arch64__
88typedef unsigned long ufc_long;
89typedef unsigned long long64;
90#define _UFC_64_
91#endif
92
93/*
94 * For debugging 64 bit code etc with 'gcc'
95 */
96
97#ifdef GCC3232
98typedef unsigned long ufc_long;
99typedef unsigned long long32;
100#define _UFC_32_
101#endif
102
103#ifdef GCC3264
104typedef unsigned long ufc_long;
105typedef long long long64;
106#define _UFC_64_
107#endif
108
109#ifdef GCC6432
110typedef long long ufc_long;
111typedef unsigned long long32;
112#define _UFC_32_
113#endif
114
115#ifdef GCC6464
116typedef long long ufc_long;
117typedef long long long64;
118#define _UFC_64_
119#endif
120
121/*
122 * Catch all for 99.95% of all UNIX machines
123 */
124
125#ifndef _UFC_64_
126#ifndef _UFC_32_
127#define _UFC_32_
128typedef unsigned long ufc_long;
129typedef unsigned long long32;
130#endif
131#endif
Note: See TracBrowser for help on using the repository browser.