Debian Codegraph @

src/fcml_disp8_n.h

raw
1 /*
2 * FCML - Free Code Manipulation Library.
3 * Copyright (C) 2017 Slawomir Wojtasiak
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
18 * USA
19 */
20
21 #ifndef SRC_FCML_DISP8_N_H_
22 #define SRC_FCML_DISP8_N_H_
23
24 #include "fcml_common.h"
25
26 /**
27 * Decodes N size for disp8 * N displacement.
28 *
29 * If "input_size" is equal to 0 it means that input size is not available.
30 *
31 * Returns 0 if N is unknown.
32 */
33 fcml_uint32_t fcml_fn_d8n_calculate_n(fcml_uint32_t tuple_type,
34 fcml_bool evex_b, fcml_uint32_t input_size, fcml_uint32_t vector_len);
35
36 #endif /* SRC_FCML_DISP8_N_H_ */