Develop and Download Open Source Software

Browse Subversion Repository

Contents of /branches/mty-makai/x86-sse.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 261 - (show annotations) (download) (as text)
Thu Jun 23 03:11:18 2011 UTC (12 years, 9 months ago) by notanpe
File MIME type: text/x-chdr
File size: 2546 byte(s)
From john-1.7.8
1 /*
2 * This file is part of John the Ripper password cracker,
3 * Copyright (c) 1996-2002,2005,2006,2008,2010,2011 by Solar Designer
4 */
5
6 /*
7 * Architecture specific parameters for x86 with SSE2.
8 */
9
10 #ifndef _JOHN_ARCH_H
11 #define _JOHN_ARCH_H
12
13 #define ARCH_WORD long
14 #define ARCH_SIZE 4
15 #define ARCH_BITS 32
16 #define ARCH_BITS_LOG 5
17 #define ARCH_BITS_STR "32"
18 #define ARCH_LITTLE_ENDIAN 1
19 #define ARCH_INT_GT_32 0
20 #define ARCH_ALLOWS_UNALIGNED 1
21 #define ARCH_INDEX(x) ((unsigned int)(unsigned char)(x))
22
23 #if defined(__CYGWIN32__) || defined(__BEOS__)
24 #define OS_TIMER 0
25 #else
26 #define OS_TIMER 1
27 #endif
28 #define OS_FLOCK 1
29
30 #define CPU_DETECT 1
31 #define CPU_REQ 1
32 #define CPU_NAME "SSE2"
33 #ifndef CPU_FALLBACK
34 #define CPU_FALLBACK 0
35 #endif
36 #if CPU_FALLBACK
37 #define CPU_FALLBACK_BINARY "john-non-sse"
38 #endif
39
40 #define DES_ASM 1
41 #define DES_128K 0
42 #define DES_X2 1
43 #define DES_MASK 1
44 #define DES_SCALE 0
45 #define DES_EXTB 0
46 #define DES_COPY 1
47 #define DES_STD_ALGORITHM_NAME "48/64 4K MMX"
48 #define DES_BS 1
49 #if defined(__AVX__) && defined(__GNUC__)
50 /* Require gcc for AVX because DES_bs_all is aligned in a gcc-specific way */
51 #define DES_BS_ASM 0
52 #if 1
53 #define DES_BS_VECTOR 8
54 #if defined(__XOP__) && defined(__GNUC__)
55 /* Require gcc for 256-bit XOP because of __builtin_ia32_vpcmov_v8sf256() */
56 #undef DES_BS
57 #define DES_BS 3
58 #define DES_BS_ALGORITHM_NAME "256/256 BS XOP"
59 #else
60 #define DES_BS_ALGORITHM_NAME "256/256 BS AVX"
61 #endif
62 #else
63 #define DES_BS_VECTOR 4
64 #ifdef __XOP__
65 #undef DES_BS
66 #define DES_BS 3
67 #define DES_BS_ALGORITHM_NAME "128/128 BS XOP"
68 #else
69 #define DES_BS_ALGORITHM_NAME "128/128 BS AVX"
70 #endif
71 #endif
72 #elif defined(__SSE2__) && 0
73 #define DES_BS_ASM 0
74 #if 1
75 #define DES_BS_VECTOR 4
76 #define DES_BS_ALGORITHM_NAME "128/128 BS SSE2"
77 #elif 0
78 #define DES_BS_VECTOR 6
79 #define DES_BS_VECTOR_SIZE 8
80 #define DES_BS_ALGORITHM_NAME "128/128 BS SSE2 + 64/64 BS MMX"
81 #elif 0
82 #define DES_BS_VECTOR 5
83 #define DES_BS_VECTOR_SIZE 8
84 #define DES_BS_ALGORITHM_NAME "128/128 BS SSE2 + 32/32 BS"
85 #else
86 #define DES_BS_VECTOR 7
87 #define DES_BS_VECTOR_SIZE 8
88 #define DES_BS_ALGORITHM_NAME "128/128 BS SSE2 + 64/64 BS MMX + 32/32 BS"
89 #endif
90 #else
91 #define DES_BS_ASM 1
92 #define DES_BS_VECTOR 4
93 #define DES_BS_ALGORITHM_NAME "128/128 BS SSE2"
94 #endif
95 #define DES_BS_EXPAND 1
96
97 #define MD5_ASM 1
98 #define MD5_X2 0
99 #define MD5_IMM 1
100
101 #ifdef _OPENMP
102 #define BF_ASM 0
103 #define BF_X2 1
104 #else
105 #define BF_ASM 1
106 #define BF_X2 0
107 #endif
108 #define BF_SCALE 1
109
110 #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26