Whamcloud - gitweb
4e76e7f06c775236fdee988fd6ab59b0abeae4b7
[fs/lustre-release.git] / libcfs / include / libcfs / user-crypto.h
1 /* GPL HEADER START
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 only,
7  * as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * General Public License version 2 for more details (a copy is included
13  * in the LICENSE file that accompanied this code).
14  *
15  * You should have received a copy of the GNU General Public License
16  * version 2 along with this program; If not, see http://www.gnu.org/licenses
17  *
18  * Please  visit http://www.xyratex.com/contact if you need additional
19  * information or have any questions.
20  *
21  * GPL HEADER END
22  */
23
24 /*
25  * Copyright 2012 Xyratex Technology Limited
26  *
27  * Copyright (c) 2012, Intel Corporation.
28  *
29  */
30
31 #if (defined i386) || (defined __amd64__)
32 unsigned int crc32_pclmul_le_16(unsigned char const *buffer, size_t len,
33                                 unsigned int crc32) __attribute__((regparm(3)));
34
35 unsigned int crc32_pclmul_le(unsigned int crc, unsigned char const *p,
36                              size_t len);
37
38 int crc32_pclmul_init(void);
39 #endif