summaryrefslogtreecommitdiff
path: root/utils/zenutils/libraries/beecrypt-4.1.2/beecrypt/sha1opt.h
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-07-11 15:50:46 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-07-11 15:50:46 +0000
commit14c7f45cdae826f88dc539c8c38dd95caf305731 (patch)
tree832da054b7cfb2dc6fd63339af736625f31d21aa /utils/zenutils/libraries/beecrypt-4.1.2/beecrypt/sha1opt.h
parent7c84ede3781c27db73403bd6302f320c76a58c8c (diff)
downloadrockbox-14c7f45cdae826f88dc539c8c38dd95caf305731.tar.gz
rockbox-14c7f45cdae826f88dc539c8c38dd95caf305731.zip
Add zook's ZenUtils to SVN
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18010 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/zenutils/libraries/beecrypt-4.1.2/beecrypt/sha1opt.h')
-rwxr-xr-xutils/zenutils/libraries/beecrypt-4.1.2/beecrypt/sha1opt.h65
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
33extern "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