blob: 830b7e735567aa69b8e4a6888ad9fee934072d93 [file] [log] [blame]
XNNPACK Teamb455b122019-09-27 18:10:33 -07001// Copyright (c) Facebook, Inc. and its affiliates.
2// All rights reserved.
3//
4// Copyright 2019 Google LLC
5//
6// This source code is licensed under the BSD-style license found in the
7// LICENSE file in the root directory of this source tree.
8
9#pragma once
10
11#include <stddef.h>
12#include <stdint.h>
13
14#include <xnnpack/params.h>
15#include <xnnpack/common.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21
22#define DECLARE_X8_LUT_UKERNEL_FUNCTION(fn_name) \
23 XNN_INTERNAL void fn_name( \
24 size_t n, \
25 const uint8_t* x, \
26 const uint8_t* t, \
27 uint8_t* y);
28
29DECLARE_X8_LUT_UKERNEL_FUNCTION(xnn_x8_lut_ukernel__scalar)
30
31
32#define DECLARE_U8_LUT32NORM_UKERNEL_FUNCTION(fn_name) \
33 XNN_INTERNAL void fn_name( \
34 size_t n, \
35 const uint8_t* x, \
36 const uint32_t* t, \
37 uint8_t* y);
38
39DECLARE_U8_LUT32NORM_UKERNEL_FUNCTION(xnn_u8_lut32norm_ukernel__scalar)
40
41
42#ifdef __cplusplus
Marat Dukhan80fc9322019-09-29 21:06:36 -070043} // extern "C"
XNNPACK Teamb455b122019-09-27 18:10:33 -070044#endif