Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(77611)

Delta Between Two Patch Sets: Modules/_blake2/impl/blake2-config.h

Issue 26798: add BLAKE2 to hashlib
Left Patch Set: Created 3 years, 3 months ago
Right Patch Set: Created 2 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Modules/_blake2/impl/blake2b-round.h ('k') | Modules/_blake2/impl/blake2.h » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* 1 /*
2 BLAKE2 reference source code package - optimized C implementations 2 BLAKE2 reference source code package - optimized C implementations
3 3
4 Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under the 4 Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under the
5 terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at 5 terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at
6 your option. The terms of these licenses can be found at: 6 your option. The terms of these licenses can be found at:
7 7
8 - CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0 8 - CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0
9 - OpenSSL license : https://www.openssl.org/source/license.html 9 - OpenSSL license : https://www.openssl.org/source/license.html
10 - Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0 10 - Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0
11 11
12 More information about the BLAKE2 hash function can be found at 12 More information about the BLAKE2 hash function can be found at
13 https://blake2.net. 13 https://blake2.net.
14 */ 14 */
15 #pragma once 15 #pragma once
16 #ifndef __BLAKE2_CONFIG_H__ 16 #ifndef __BLAKE2_CONFIG_H__
17 #define __BLAKE2_CONFIG_H__ 17 #define __BLAKE2_CONFIG_H__
18 18
19 /* These don't work everywhere */ 19 /* These don't work everywhere */
20 #if defined(__SSE2__) 20 #if defined(__SSE2__) || defined(__x86_64__) || defined(__amd64__)
21 #define HAVE_SSE2 21 #define HAVE_SSE2
22 #endif 22 #endif
23 23
24 #if defined(__SSSE3__) 24 #if defined(__SSSE3__)
25 #define HAVE_SSSE3 25 #define HAVE_SSSE3
26 #endif 26 #endif
27 27
28 #if defined(__SSE4_1__) 28 #if defined(__SSE4_1__)
29 #define HAVE_SSE41 29 #define HAVE_SSE41
30 #endif 30 #endif
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 #ifdef HAVE_SSSE3 65 #ifdef HAVE_SSSE3
66 #define HAVE_SSE2 66 #define HAVE_SSE2
67 #endif 67 #endif
68 68
69 #if !defined(HAVE_SSE2) 69 #if !defined(HAVE_SSE2)
70 #error "This code requires at least SSE2." 70 #error "This code requires at least SSE2."
71 #endif 71 #endif
72 72
73 #endif 73 #endif
74 74
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+