diff options
Diffstat (limited to 'utils/zenutils/libraries/beecrypt-4.1.2/beecrypt/sha1opt.h')
-rwxr-xr-x | utils/zenutils/libraries/beecrypt-4.1.2/beecrypt/sha1opt.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/utils/zenutils/libraries/beecrypt-4.1.2/beecrypt/sha1opt.h b/utils/zenutils/libraries/beecrypt-4.1.2/beecrypt/sha1opt.h new file mode 100755 index 0000000000..62ea87718f --- /dev/null +++ b/utils/zenutils/libraries/beecrypt-4.1.2/beecrypt/sha1opt.h | |||
@@ -0,0 +1,65 @@ | |||
1 | /* | ||
2 | * sha1opt.h | ||
3 | * | ||
4 | * SHA-1 assembler-optimized routines, header | ||
5 | * | ||
6 | * Copyright (c) 2000, 2003 Virtual Unlimited B.V. | ||
7 | * | ||
8 | * Author: Bob Deblier <bob.deblier@pandora.be> | ||
9 | * | ||
10 | * This library is free software; you can redistribute it and/or | ||
11 | * modify it under the terms of the GNU Lesser General Public | ||
12 | * License as published by the Free Software Foundation; either | ||
13 | * version 2.1 of the License, or (at your option) any later version. | ||
14 | * | ||
15 | * This library is distributed in the hope that it will be useful, | ||
16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
18 | * Lesser General Public License for more details. | ||
19 | * | ||
20 | * You should have received a copy of the GNU Lesser General Public | ||
21 | * License along with this library; if not, write to the Free Software | ||
22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
23 | * | ||
24 | */ | ||
25 | |||
26 | #ifndef _SHA1OPT_H | ||
27 | #define _SHA1OPT_H | ||
28 | |||
29 | #include "beecrypt/beecrypt.h" | ||
30 | #include "beecrypt/sha1.h" | ||
31 | |||
32 | #ifdef __cplusplus | ||
33 | extern "C" { | ||
34 | #endif | ||
35 | |||
36 | #if WIN32 | ||
37 | # if defined(_MSC_VER) && defined(_M_IX86) | ||
38 | # define ASM_SHA1PROCESS | ||
39 | # elif __INTEL__ && __MWERKS__ | ||
40 | # define ASM_SHA1PROCESS | ||
41 | # endif | ||
42 | #endif | ||
43 | |||
44 | #if defined(__GNUC__) | ||
45 | # if defined(OPTIMIZE_I386) || defined(OPTIMIZE_I486) || defined(OPTIMIZE_I586) || defined(OPTIMIZE_I686) | ||
46 | # define ASM_SHA1PROCESS | ||
47 | # endif | ||
48 | #endif | ||
49 | |||
50 | #if defined(__INTEL_COMPILER) | ||
51 | # if defined(OPTIMIZE_I386) || defined(OPTIMIZE_I486) || defined(OPTIMIZE_I586) || defined(OPTIMIZE_I686) | ||
52 | # define ASM_SHA1PROCESS | ||
53 | # endif | ||
54 | #endif | ||
55 | |||
56 | #if defined(__SUNPRO_C) || defined(__SUNPRO_CC) | ||
57 | #endif | ||
58 | |||
59 | #undef ASM_SHA1PROCESS | ||
60 | |||
61 | #ifdef __cplusplus | ||
62 | } | ||
63 | #endif | ||
64 | |||
65 | #endif | ||