1/*
2 * Copyright (c) 2016-2017, Intel Corporation
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met:
6 *
7 * * Redistributions of source code must retain the above copyright notice,
8 * this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of Intel Corporation nor the names of its contributors
13 * may be used to endorse or promote products derived from this software
14 * without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
20 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 * POSSIBILITY OF SUCH DAMAGE.
27 */
28
29/** \file
30 * \brief Teddy literal matcher: function declarations.
31 */
32
33#ifndef TEDDY_H_
34#define TEDDY_H_
35
36#include "hwlm/hwlm.h" // for hwlm_group_t
37#include "util/arch.h"
38
39struct FDR; // forward declaration from fdr_internal.h
40struct FDR_Runtime_Args;
41
42hwlm_error_t fdr_exec_teddy_msks1(const struct FDR *fdr,
43 const struct FDR_Runtime_Args *a,
44 hwlm_group_t control);
45
46hwlm_error_t fdr_exec_teddy_msks1_pck(const struct FDR *fdr,
47 const struct FDR_Runtime_Args *a,
48 hwlm_group_t control);
49
50hwlm_error_t fdr_exec_teddy_msks2(const struct FDR *fdr,
51 const struct FDR_Runtime_Args *a,
52 hwlm_group_t control);
53
54hwlm_error_t fdr_exec_teddy_msks2_pck(const struct FDR *fdr,
55 const struct FDR_Runtime_Args *a,
56 hwlm_group_t control);
57
58hwlm_error_t fdr_exec_teddy_msks3(const struct FDR *fdr,
59 const struct FDR_Runtime_Args *a,
60 hwlm_group_t control);
61
62hwlm_error_t fdr_exec_teddy_msks3_pck(const struct FDR *fdr,
63 const struct FDR_Runtime_Args *a,
64 hwlm_group_t control);
65
66hwlm_error_t fdr_exec_teddy_msks4(const struct FDR *fdr,
67 const struct FDR_Runtime_Args *a,
68 hwlm_group_t control);
69
70hwlm_error_t fdr_exec_teddy_msks4_pck(const struct FDR *fdr,
71 const struct FDR_Runtime_Args *a,
72 hwlm_group_t control);
73
74#if defined(HAVE_AVX2)
75
76hwlm_error_t fdr_exec_fat_teddy_msks1(const struct FDR *fdr,
77 const struct FDR_Runtime_Args *a,
78 hwlm_group_t control);
79
80hwlm_error_t fdr_exec_fat_teddy_msks1_pck(const struct FDR *fdr,
81 const struct FDR_Runtime_Args *a,
82 hwlm_group_t control);
83
84hwlm_error_t fdr_exec_fat_teddy_msks2(const struct FDR *fdr,
85 const struct FDR_Runtime_Args *a,
86 hwlm_group_t control);
87
88hwlm_error_t fdr_exec_fat_teddy_msks2_pck(const struct FDR *fdr,
89 const struct FDR_Runtime_Args *a,
90 hwlm_group_t control);
91
92hwlm_error_t fdr_exec_fat_teddy_msks3(const struct FDR *fdr,
93 const struct FDR_Runtime_Args *a,
94 hwlm_group_t control);
95
96hwlm_error_t fdr_exec_fat_teddy_msks3_pck(const struct FDR *fdr,
97 const struct FDR_Runtime_Args *a,
98 hwlm_group_t control);
99
100hwlm_error_t fdr_exec_fat_teddy_msks4(const struct FDR *fdr,
101 const struct FDR_Runtime_Args *a,
102 hwlm_group_t control);
103
104hwlm_error_t fdr_exec_fat_teddy_msks4_pck(const struct FDR *fdr,
105 const struct FDR_Runtime_Args *a,
106 hwlm_group_t control);
107
108#endif /* HAVE_AVX2 */
109
110#endif /* TEDDY_H_ */
111