1/*******************************************************************************
2 * Copyright 2020-2021 Intel Corporation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *******************************************************************************/
16
17#ifndef GPU_ZERO_PAD_ZERO_PAD_STRUCT_H
18#define GPU_ZERO_PAD_ZERO_PAD_STRUCT_H
19
20#define ZERO_PAD_MAX_STEP_SIZE 1536
21
22#ifdef IS_OCL_KERNEL
23#define ZERO_PAD_MASK_DATA_TYPE uchar
24#else
25#define ZERO_PAD_MASK_DATA_TYPE unsigned char
26#endif
27#define ZERO_PAD_MASK_DT_BITS (8 * sizeof(ZERO_PAD_MASK_DATA_TYPE))
28
29#define ZERO_PAD_MASK_SIZE (ZERO_PAD_MAX_STEP_SIZE / ZERO_PAD_MASK_DT_BITS)
30#define ZERO_PAD_BIT_MODE 0
31#define ZERO_PAD_LOOKUP_MODE 1
32
33typedef struct {
34 ZERO_PAD_MASK_DATA_TYPE mask[ZERO_PAD_MASK_SIZE];
35} zero_pad_mask_t;
36
37#endif
38